[11012] | 1 | %define major_ver 1.18 |
---|
[11423] | 2 | %define ver %{major_ver}.1 |
---|
[11012] | 3 | %define rel 1 |
---|
| 4 | |
---|
[5311] | 5 | Summary: A Power Manager for MATE |
---|
| 6 | Name: mate-power-manager |
---|
[11012] | 7 | Version: %{ver} |
---|
| 8 | Release: %{rel}%{?_dist_release} |
---|
[5311] | 9 | License: GPLv2 |
---|
[5316] | 10 | Group: Applications/System |
---|
[6679] | 11 | URL: http://mate-desktop.org/ |
---|
[5311] | 12 | |
---|
[11012] | 13 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
[8962] | 14 | |
---|
[9724] | 15 | # patch for Vine |
---|
[9797] | 16 | Patch1002: mate-power-manager-1.12.0-vine-settings.patch |
---|
[9724] | 17 | |
---|
[5311] | 18 | BuildRequires: mate-common |
---|
[7697] | 19 | BuildRequires: libnotify-devel |
---|
[9552] | 20 | BuildRequires: mate-desktop-devel |
---|
[5311] | 21 | BuildRequires: mate-panel-devel |
---|
[11012] | 22 | BuildRequires: gtk3-devel |
---|
[5311] | 23 | BuildRequires: dbus-glib-devel |
---|
[11012] | 24 | BuildRequires: libcanberra-gtk3-devel |
---|
| 25 | BuildRequires: libwnck3-devel |
---|
[8962] | 26 | BuildRequires: upower-devel |
---|
[5311] | 27 | BuildRequires: popt-devel |
---|
[8359] | 28 | BuildRequires: libgnome-keyring-devel |
---|
[8962] | 29 | BuildRequires: yelp-tools |
---|
[5311] | 30 | BuildRequires: gtk-doc |
---|
| 31 | BuildRequires: autoconf |
---|
| 32 | BuildRequires: automake |
---|
| 33 | |
---|
[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 |
---|
[10898] | 41 | Packager: Takemikaduchi, iwaim |
---|
[5311] | 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 | %patch1002 -p1 -b .vine |
---|
[5311] | 59 | |
---|
| 60 | %build |
---|
[8962] | 61 | NOCONFIGURE=1 ./autogen.sh |
---|
[5311] | 62 | %configure \ |
---|
| 63 | --libexecdir=%{_libexecdir}/mate \ |
---|
[7697] | 64 | --disable-static |
---|
[5311] | 65 | |
---|
| 66 | %{__make} %{?_smp_mflags} |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %install |
---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 71 | |
---|
| 72 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 73 | |
---|
| 74 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 75 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 76 | |
---|
| 77 | %find_lang %{name} |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 82 | |
---|
| 83 | %post |
---|
| 84 | /sbin/ldconfig |
---|
| 85 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 86 | touch --no-create %{_datadir}/icons/hicolor |
---|
[7697] | 87 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
[5311] | 88 | |
---|
| 89 | %postun |
---|
| 90 | /sbin/ldconfig |
---|
[7697] | 91 | if [ $1 -eq 0 ]; then |
---|
| 92 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 93 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 94 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 95 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
[5311] | 96 | fi |
---|
| 97 | |
---|
[7697] | 98 | %posttrans |
---|
| 99 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
[5311] | 100 | |
---|
[7697] | 101 | |
---|
[5311] | 102 | %files -f %{name}.lang |
---|
| 103 | %defattr(-,root,root,-) |
---|
| 104 | %doc COPYING ChangeLog NEWS README |
---|
| 105 | %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop |
---|
| 106 | %{_bindir}/mate-power-manager |
---|
| 107 | %{_bindir}/mate-power-preferences |
---|
| 108 | %{_bindir}/mate-power-statistics |
---|
| 109 | %{_libexecdir}/mate/mate-brightness-applet |
---|
| 110 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
| 111 | %{_sbindir}/mate-power-backlight-helper |
---|
| 112 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
| 113 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
[7697] | 114 | %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service |
---|
| 115 | %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service |
---|
[9552] | 116 | %{_datadir}/dbus-1/services/org.mate.PowerManager.service |
---|
[7697] | 117 | %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml |
---|
[5311] | 118 | %{_datadir}/icons/hicolor/*/*/* |
---|
[8359] | 119 | %{_datadir}/help/* |
---|
[7697] | 120 | %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet |
---|
| 121 | %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet |
---|
[5311] | 122 | %{_datadir}/%{name} |
---|
| 123 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
| 124 | %{_mandir}/man1/*.1.gz |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | %changelog |
---|
[11423] | 128 | * Thu Jan 18 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.1-1 |
---|
| 129 | - update to 1.18.1 |
---|
| 130 | |
---|
[11012] | 131 | * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
| 132 | - update to 1.18.0 |
---|
| 133 | - move to GTK3+ |
---|
| 134 | - drop BR: mate-doc-utils, unique-devel |
---|
| 135 | - drop use-vine-sleep-helper patch (Patch1001) |
---|
| 136 | |
---|
[10963] | 137 | * Sun Mar 26 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.2-1 |
---|
| 138 | - update to 1.16.2 |
---|
| 139 | |
---|
[10898] | 140 | * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
| 141 | - new upstream release |
---|
| 142 | - update use-vine-sleep-helper.patch (Patch1001) |
---|
| 143 | - update Packager |
---|
| 144 | |
---|
[10255] | 145 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
| 146 | - new upstream release |
---|
| 147 | |
---|
[9842] | 148 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
| 149 | - new upstream release |
---|
| 150 | |
---|
[9797] | 151 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 152 | - new upstream release |
---|
| 153 | - update Patch1001 (mate-power-manager-1.12.0-use-vine-sleep-helper.patch) |
---|
| 154 | - update Patch1002 (mate-power-manager-1.12.0-vine-settings.patch) |
---|
| 155 | |
---|
[9726] | 156 | * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[9724] | 159 | * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-3 |
---|
| 160 | - add Patch1001 (mate-power-manager-1.10.1-use-vine-sleep-helper.patch) |
---|
| 161 | - add Patch1002 (mate-power-manager-1.10.1-vine-settings.patch) |
---|
| 162 | - add Requires: vine-sleep-helper |
---|
| 163 | |
---|
[9705] | 164 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-2 |
---|
| 165 | - remove BuildRequires: libmatekeyring-devel |
---|
| 166 | |
---|
[9667] | 167 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1 |
---|
| 168 | - new upstream release |
---|
| 169 | |
---|
[9552] | 170 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
| 171 | - new upstream release |
---|
| 172 | - remove Patch0 (mate-power-manager_dbus_interface_keyboard_backlight_controls.patch) |
---|
| 173 | - add BuildRequires: mate-desktop-devel |
---|
| 174 | |
---|
[9120] | 175 | * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1 |
---|
| 176 | - new upstream release |
---|
| 177 | - remove Patch1-5 |
---|
| 178 | |
---|
[8962] | 179 | * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2 |
---|
| 180 | - change BuildRequires: upower-devel instead of libupower09-devel |
---|
| 181 | - add BuildRequires: yelp-tools |
---|
| 182 | - add Patch0-5 from fedora |
---|
| 183 | |
---|
[8359] | 184 | * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 185 | - new upstream release |
---|
| 186 | - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool |
---|
| 187 | - remove BuildRequires: upower-devel |
---|
| 188 | |
---|
[8068] | 189 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
[7821] | 192 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
| 193 | - new upstream release |
---|
| 194 | |
---|
[7697] | 195 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
| 196 | - new upstream release |
---|
| 197 | - remove BuildRequires: mate-conf-devel, libmatenotify-devel |
---|
| 198 | - add BuildRequires: libnotify-devel |
---|
| 199 | |
---|
[6679] | 200 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
| 201 | - new upstream release |
---|
| 202 | |
---|
[6172] | 203 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
| 204 | - new upstream release |
---|
| 205 | |
---|
[5316] | 206 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 207 | - change category |
---|
| 208 | |
---|
[5311] | 209 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 210 | - initial build for Vine Linux |
---|
| 211 | |
---|