[5311] | 1 | Summary: A Power Manager for MATE |
---|
| 2 | Name: mate-power-manager |
---|
[9842] | 3 | Version: 1.12.1 |
---|
[9726] | 4 | Release: 1%{?_dist_release} |
---|
[5311] | 5 | License: GPLv2 |
---|
[5316] | 6 | Group: Applications/System |
---|
[6679] | 7 | URL: http://mate-desktop.org/ |
---|
[5311] | 8 | |
---|
[9797] | 9 | Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz |
---|
[8962] | 10 | |
---|
[9724] | 11 | # patch for Vine |
---|
[9797] | 12 | Patch1001: mate-power-manager-1.12.0-use-vine-sleep-helper.patch |
---|
| 13 | Patch1002: mate-power-manager-1.12.0-vine-settings.patch |
---|
[9724] | 14 | |
---|
[5311] | 15 | BuildRequires: mate-common |
---|
| 16 | BuildRequires: mate-doc-utils |
---|
[7697] | 17 | BuildRequires: libnotify-devel |
---|
[9552] | 18 | BuildRequires: mate-desktop-devel |
---|
[5311] | 19 | BuildRequires: mate-panel-devel |
---|
| 20 | BuildRequires: gtk2-devel |
---|
| 21 | BuildRequires: dbus-glib-devel |
---|
| 22 | BuildRequires: libcanberra-devel |
---|
| 23 | BuildRequires: libwnck-devel |
---|
| 24 | BuildRequires: unique-devel |
---|
[8962] | 25 | BuildRequires: upower-devel |
---|
[5311] | 26 | BuildRequires: popt-devel |
---|
[8359] | 27 | BuildRequires: libgnome-keyring-devel |
---|
[8962] | 28 | BuildRequires: yelp-tools |
---|
[5311] | 29 | BuildRequires: gtk-doc |
---|
| 30 | BuildRequires: autoconf |
---|
| 31 | BuildRequires: automake |
---|
| 32 | |
---|
[9724] | 33 | Requires: vine-sleep-helper |
---|
[7697] | 34 | Requires(posttrans,postun): glib2 |
---|
[5311] | 35 | Requires(post,postun): desktop-file-utils |
---|
| 36 | |
---|
| 37 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 38 | |
---|
| 39 | Vendor: Project Vine |
---|
| 40 | Distribution: Vine Linux |
---|
| 41 | Packager: Takemikaduchi |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %description |
---|
| 45 | MATE Power Manager is a MATE session daemon that acts as a policy agent on top of |
---|
| 46 | UPower, which requires fairly new versions of the kernel and udev. |
---|
| 47 | MATE Power Manager listens for system events and responds with user-configurable actions. |
---|
| 48 | |
---|
| 49 | MATE Power Manager comes in three main parts: |
---|
| 50 | |
---|
| 51 | - mate-power-manager: the manager daemon itself |
---|
| 52 | - mate-power-preferences: the control panel program, for configuration |
---|
| 53 | - mate-power-statistics: the statistics graphing program |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q |
---|
[9724] | 58 | %patch1001 -p1 -b .vine |
---|
| 59 | %patch1002 -p1 -b .vine |
---|
[5311] | 60 | |
---|
| 61 | %build |
---|
[8962] | 62 | NOCONFIGURE=1 ./autogen.sh |
---|
[5311] | 63 | %configure \ |
---|
| 64 | --libexecdir=%{_libexecdir}/mate \ |
---|
[7697] | 65 | --disable-static |
---|
[5311] | 66 | |
---|
| 67 | %{__make} %{?_smp_mflags} |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %install |
---|
| 71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 72 | |
---|
| 73 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 74 | |
---|
| 75 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 76 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 77 | |
---|
| 78 | %find_lang %{name} |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %clean |
---|
| 82 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 83 | |
---|
| 84 | %post |
---|
| 85 | /sbin/ldconfig |
---|
| 86 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 87 | touch --no-create %{_datadir}/icons/hicolor |
---|
[7697] | 88 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
[5311] | 89 | |
---|
| 90 | %postun |
---|
| 91 | /sbin/ldconfig |
---|
[7697] | 92 | if [ $1 -eq 0 ]; then |
---|
| 93 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 94 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 95 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 96 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
[5311] | 97 | fi |
---|
| 98 | |
---|
[7697] | 99 | %posttrans |
---|
| 100 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
[5311] | 101 | |
---|
[7697] | 102 | |
---|
[5311] | 103 | %files -f %{name}.lang |
---|
| 104 | %defattr(-,root,root,-) |
---|
| 105 | %doc COPYING ChangeLog NEWS README |
---|
| 106 | %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop |
---|
| 107 | %{_bindir}/mate-power-manager |
---|
| 108 | %{_bindir}/mate-power-preferences |
---|
| 109 | %{_bindir}/mate-power-statistics |
---|
| 110 | %{_libexecdir}/mate/mate-brightness-applet |
---|
| 111 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
| 112 | %{_sbindir}/mate-power-backlight-helper |
---|
[7697] | 113 | %{_datadir}/MateConf/gsettings/mate-power-manager.convert |
---|
[5311] | 114 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
| 115 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
[7697] | 116 | %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service |
---|
| 117 | %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service |
---|
[9552] | 118 | %{_datadir}/dbus-1/services/org.mate.PowerManager.service |
---|
[7697] | 119 | %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml |
---|
[5311] | 120 | %{_datadir}/icons/hicolor/*/*/* |
---|
[8359] | 121 | %{_datadir}/help/* |
---|
[7697] | 122 | %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet |
---|
| 123 | %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet |
---|
[5311] | 124 | %{_datadir}/%{name} |
---|
| 125 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
| 126 | %{_mandir}/man1/*.1.gz |
---|
| 127 | |
---|
| 128 | |
---|
| 129 | %changelog |
---|
[9842] | 130 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
| 131 | - new upstream release |
---|
| 132 | |
---|
[9797] | 133 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 134 | - new upstream release |
---|
| 135 | - update Patch1001 (mate-power-manager-1.12.0-use-vine-sleep-helper.patch) |
---|
| 136 | - update Patch1002 (mate-power-manager-1.12.0-vine-settings.patch) |
---|
| 137 | |
---|
[9726] | 138 | * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
[9724] | 141 | * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-3 |
---|
| 142 | - add Patch1001 (mate-power-manager-1.10.1-use-vine-sleep-helper.patch) |
---|
| 143 | - add Patch1002 (mate-power-manager-1.10.1-vine-settings.patch) |
---|
| 144 | - add Requires: vine-sleep-helper |
---|
| 145 | |
---|
[9705] | 146 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-2 |
---|
| 147 | - remove BuildRequires: libmatekeyring-devel |
---|
| 148 | |
---|
[9667] | 149 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[9552] | 152 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
| 153 | - new upstream release |
---|
| 154 | - remove Patch0 (mate-power-manager_dbus_interface_keyboard_backlight_controls.patch) |
---|
| 155 | - add BuildRequires: mate-desktop-devel |
---|
| 156 | |
---|
[9120] | 157 | * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1 |
---|
| 158 | - new upstream release |
---|
| 159 | - remove Patch1-5 |
---|
| 160 | |
---|
[8962] | 161 | * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2 |
---|
| 162 | - change BuildRequires: upower-devel instead of libupower09-devel |
---|
| 163 | - add BuildRequires: yelp-tools |
---|
| 164 | - add Patch0-5 from fedora |
---|
| 165 | |
---|
[8359] | 166 | * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 167 | - new upstream release |
---|
| 168 | - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool |
---|
| 169 | - remove BuildRequires: upower-devel |
---|
| 170 | |
---|
[8068] | 171 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
[7821] | 174 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[7697] | 177 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
| 178 | - new upstream release |
---|
| 179 | - remove BuildRequires: mate-conf-devel, libmatenotify-devel |
---|
| 180 | - add BuildRequires: libnotify-devel |
---|
| 181 | |
---|
[6679] | 182 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
| 183 | - new upstream release |
---|
| 184 | |
---|
[6172] | 185 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
| 186 | - new upstream release |
---|
| 187 | |
---|
[5316] | 188 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 189 | - change category |
---|
| 190 | |
---|
[5311] | 191 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 192 | - initial build for Vine Linux |
---|
| 193 | |
---|