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