123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- Summary: A Power Manager for MATE
- Name: mate-power-manager
- Version: 1.1.0
- Release: 2%{?_dist_release}
- Source0: %{name}-%{version}.tar.xz
- License: GPLv2
- Group: Applications/System
- URL: https://matsusoft.com.ar/projects/mate/
- BuildRequires: mate-common
- BuildRequires: mate-doc-utils
- BuildRequires: mate-conf-devel
- BuildRequires: libmatekeyring-devel
- BuildRequires: libmatenotify-devel
- BuildRequires: mate-panel-devel
- BuildRequires: gtk2-devel
- BuildRequires: dbus-glib-devel
- BuildRequires: libcanberra-devel
- BuildRequires: libwnck-devel
- BuildRequires: unique-devel
- BuildRequires: upower-devel
- BuildRequires: popt-devel
- BuildRequires: gtk-doc
- BuildRequires: autoconf
- BuildRequires: automake
- Requires(post,pre,preun): mate-conf
- Requires(post,postun): desktop-file-utils
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: Takemikaduchi
- %description
- MATE Power Manager is a MATE session daemon that acts as a policy agent on top of
- UPower, which requires fairly new versions of the kernel and udev.
- MATE Power Manager listens for system events and responds with user-configurable actions.
- MATE Power Manager comes in three main parts:
- - mate-power-manager: the manager daemon itself
- - mate-power-preferences: the control panel program, for configuration
- - mate-power-statistics: the statistics graphing program
- %prep
- %setup -q
- %build
- (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
- %configure \
- --libexecdir=%{_libexecdir}/mate \
- --disable-static \
- --disable-scrollkeeper
- %{__make} %{?_smp_mflags}
- %install
- %{__rm} -rf ${RPM_BUILD_ROOT}
- export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
- %{__make} install DESTDIR=${RPM_BUILD_ROOT}
- unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
- find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
- find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
- %find_lang %{name}
- %clean
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %post
- /sbin/ldconfig
- export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
- SCHEMAS=" \
- mate-power-manager.schemas"
- for S in $SCHEMAS; do
- echo %{_sysconfdir}/mateconf/schemas/$S; done \
- | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
- update-desktop-database %{_datadir}/applications >& /dev/null ||:
- touch --no-create %{_datadir}/icons/hicolor
- if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
- fi
- %pre
- if [ "$1" -gt 1 ]; then
- export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
- SCHEMAS=" \
- mate-power-manager.schemas"
- for S in $SCHEMAS; do
- echo %{_sysconfdir}/mateconf/schemas/$S; done \
- | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
- fi
- %preun
- if [ "$1" -eq 0 ]; then
- export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
- SCHEMAS=" \
- mate-power-manager.schemas"
- for S in $SCHEMAS; do
- echo %{_sysconfdir}/mateconf/schemas/$S; done \
- | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
- fi
- %postun
- /sbin/ldconfig
- update-desktop-database %{_datadir}/applications >& /dev/null ||:
- touch --no-create %{_datadir}/icons/hicolor
- if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
- fi
- %files -f %{name}.lang
- %defattr(-,root,root,-)
- %doc COPYING ChangeLog NEWS README
- %{_sysconfdir}/mateconf/schemas/mate-power-manager.schemas
- %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
- %{_bindir}/mate-power-bugreport.sh
- %{_bindir}/mate-power-manager
- %{_bindir}/mate-power-preferences
- %{_bindir}/mate-power-statistics
- %{_libdir}/matecomponent/servers/*.server
- %{_libexecdir}/mate/mate-brightness-applet
- %{_libexecdir}/mate/mate-inhibit-applet
- %{_sbindir}/mate-power-backlight-helper
- %{_datadir}/applications/mate-power-preferences.desktop
- %{_datadir}/applications/mate-power-statistics.desktop
- %{_datadir}/dbus-1/services/mate-power-manager.service
- %{_datadir}/icons/hicolor/*/*/*
- %{_datadir}/mate/help/mate-power-manager
- %{_datadir}/mate-2.0/ui/*.xml
- %{_datadir}/%{name}
- %{_datadir}/omf/mate-power-manager
- %{_datadir}/polkit-1/actions/org.mate.power.policy
- %{_mandir}/man1/*.1.gz
- %changelog
- * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
- - change category
- * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
- - initial build for Vine Linux
|