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