[5311] | 1 | Summary: A Power Manager for MATE |
---|
| 2 | Name: mate-power-manager |
---|
[6172] | 3 | Version: 1.2.1 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
[5311] | 5 | Source0: %{name}-%{version}.tar.xz |
---|
| 6 | License: GPLv2 |
---|
[5316] | 7 | Group: Applications/System |
---|
[5311] | 8 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
| 9 | |
---|
| 10 | BuildRequires: mate-common |
---|
| 11 | BuildRequires: mate-doc-utils |
---|
| 12 | BuildRequires: mate-conf-devel |
---|
| 13 | BuildRequires: libmatekeyring-devel |
---|
| 14 | BuildRequires: libmatenotify-devel |
---|
| 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 |
---|
| 21 | BuildRequires: upower-devel |
---|
| 22 | BuildRequires: popt-devel |
---|
| 23 | BuildRequires: gtk-doc |
---|
| 24 | BuildRequires: autoconf |
---|
| 25 | BuildRequires: automake |
---|
| 26 | |
---|
| 27 | Requires(post,pre,preun): mate-conf |
---|
| 28 | Requires(post,postun): desktop-file-utils |
---|
| 29 | |
---|
| 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: Takemikaduchi |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | MATE Power Manager is a MATE session daemon that acts as a policy agent on top of |
---|
| 39 | UPower, which requires fairly new versions of the kernel and udev. |
---|
| 40 | MATE Power Manager listens for system events and responds with user-configurable actions. |
---|
| 41 | |
---|
| 42 | MATE Power Manager comes in three main parts: |
---|
| 43 | |
---|
| 44 | - mate-power-manager: the manager daemon itself |
---|
| 45 | - mate-power-preferences: the control panel program, for configuration |
---|
| 46 | - mate-power-statistics: the statistics graphing program |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %build |
---|
| 54 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 55 | %configure \ |
---|
| 56 | --libexecdir=%{_libexecdir}/mate \ |
---|
| 57 | --disable-static \ |
---|
| 58 | --disable-scrollkeeper |
---|
| 59 | |
---|
| 60 | %{__make} %{?_smp_mflags} |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %install |
---|
| 64 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 65 | |
---|
| 66 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 67 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 68 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 69 | |
---|
| 70 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 71 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 72 | |
---|
| 73 | %find_lang %{name} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 78 | |
---|
| 79 | %post |
---|
| 80 | /sbin/ldconfig |
---|
| 81 | |
---|
| 82 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 83 | |
---|
| 84 | SCHEMAS=" \ |
---|
| 85 | mate-power-manager.schemas" |
---|
| 86 | for S in $SCHEMAS; do |
---|
| 87 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 88 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
| 89 | |
---|
| 90 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 91 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 92 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 93 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 94 | fi |
---|
| 95 | |
---|
| 96 | %pre |
---|
| 97 | if [ "$1" -gt 1 ]; then |
---|
| 98 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 99 | |
---|
| 100 | SCHEMAS=" \ |
---|
| 101 | mate-power-manager.schemas" |
---|
| 102 | for S in $SCHEMAS; do |
---|
| 103 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 104 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 105 | fi |
---|
| 106 | |
---|
| 107 | %preun |
---|
| 108 | if [ "$1" -eq 0 ]; then |
---|
| 109 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 110 | |
---|
| 111 | SCHEMAS=" \ |
---|
| 112 | mate-power-manager.schemas" |
---|
| 113 | for S in $SCHEMAS; do |
---|
| 114 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 115 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 116 | fi |
---|
| 117 | |
---|
| 118 | %postun |
---|
| 119 | /sbin/ldconfig |
---|
| 120 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 121 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 122 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 123 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 124 | fi |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | %files -f %{name}.lang |
---|
| 128 | %defattr(-,root,root,-) |
---|
| 129 | %doc COPYING ChangeLog NEWS README |
---|
| 130 | %{_sysconfdir}/mateconf/schemas/mate-power-manager.schemas |
---|
| 131 | %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop |
---|
| 132 | %{_bindir}/mate-power-bugreport.sh |
---|
| 133 | %{_bindir}/mate-power-manager |
---|
| 134 | %{_bindir}/mate-power-preferences |
---|
| 135 | %{_bindir}/mate-power-statistics |
---|
| 136 | %{_libdir}/matecomponent/servers/*.server |
---|
| 137 | %{_libexecdir}/mate/mate-brightness-applet |
---|
| 138 | %{_libexecdir}/mate/mate-inhibit-applet |
---|
| 139 | %{_sbindir}/mate-power-backlight-helper |
---|
| 140 | %{_datadir}/applications/mate-power-preferences.desktop |
---|
| 141 | %{_datadir}/applications/mate-power-statistics.desktop |
---|
| 142 | %{_datadir}/dbus-1/services/mate-power-manager.service |
---|
| 143 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 144 | %{_datadir}/mate/help/mate-power-manager |
---|
| 145 | %{_datadir}/mate-2.0/ui/*.xml |
---|
| 146 | %{_datadir}/%{name} |
---|
| 147 | %{_datadir}/omf/mate-power-manager |
---|
| 148 | %{_datadir}/polkit-1/actions/org.mate.power.policy |
---|
| 149 | %{_mandir}/man1/*.1.gz |
---|
| 150 | |
---|
| 151 | |
---|
| 152 | %changelog |
---|
[6172] | 153 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[5316] | 156 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 157 | - change category |
---|
| 158 | |
---|
[5311] | 159 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 160 | - initial build for Vine Linux |
---|
| 161 | |
---|