[mate-power-manager] Initial import

leigh123linux leigh123linux at fedoraproject.org
Fri Oct 19 16:10:47 UTC 2012


commit 9c4865e954dfecfec0e79247a86e0e226fc5099e
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Fri Oct 19 17:10:43 2012 +0100

    Initial import

 .gitignore              |    1 +
 mate-power-manager.spec |  116 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4084163 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mate-power-manager-1.4.0.tar.xz
diff --git a/mate-power-manager.spec b/mate-power-manager.spec
new file mode 100644
index 0000000..6a55a78
--- /dev/null
+++ b/mate-power-manager.spec
@@ -0,0 +1,116 @@
+Name:           mate-power-manager
+Version:        1.4.0
+Release:        2%{?dist}
+Summary:        MATE power management service
+
+License:        GPLv2+
+URL:            http://pub.mate-desktop.org
+Source0:        http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
+
+BuildRequires: mate-panel-devel
+BuildRequires: popt-devel
+BuildRequires: mate-doc-utils
+BuildRequires: desktop-file-utils
+BuildRequires: cairo-devel
+BuildRequires: libcanberra-devel
+BuildRequires: libmatenotify-devel
+BuildRequires: upower-devel
+BuildRequires: unique-devel
+BuildRequires: glib2-devel
+BuildRequires: rarian-compat
+BuildRequires: mate-conf-devel
+BuildRequires: gtk2-devel
+BuildRequires: dbus-glib-devel
+BuildRequires: mate-control-center-devel
+BuildRequires: mate-common
+BuildRequires: mate-keyring-devel
+
+Requires: dbus-x11
+
+Requires(pre): mate-conf
+Requires(preun): mate-conf
+Requires(post): mate-conf
+       
+
+%description
+MATE Power Manager uses the information and facilities provided by UPower
+displaying icons and handling user callbacks in an interactive MATE session.
+
+%prep
+%setup -q
+NOCONFIGURE=1 ./autogen.sh
+
+
+%build
+%configure \
+        --disable-static \
+        --disable-scrollkeeper \
+        --enable-applets
+
+make V=1 %{?_smp_mflags}
+
+
+%install
+export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+make install DESTDIR=$RPM_BUILD_ROOT
+unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+
+desktop-file-install --delete-original             \
+  --remove-category=MATE                           \
+  --add-category=X-Mate                            \
+  --dir $RPM_BUILD_ROOT%{_datadir}/applications    \
+  $RPM_BUILD_ROOT%{_datadir}/applications/mate-*.desktop
+
+%find_lang %{name} --with-gnome
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%mateconf_schema_upgrade mate-power-manager
+
+
+%pre
+%mateconf_schema_prepare mate-power-manager
+
+%preun
+%mateconf_schema_remove mate-power-manager
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files  -f %{name}.lang
+%doc AUTHORS COPYING README
+%{_bindir}/*
+%{_sbindir}/*
+%{_sysconfdir}/mateconf/schemas/mate-*.schemas
+%{_sysconfdir}/xdg/autostart/mate-*.desktop
+%{_datadir}/applications/mate-*.desktop
+%{_datadir}/dbus-1/services/mate-power-manager.service
+%{_datadir}/mate-power-manager/
+%{_datadir}/icons/hicolor/*/apps/mate-*.*
+%{_datadir}/polkit-1/actions/org.mate.power.policy
+%{_datadir}/mate/help/mate-power-manager/
+%{_datadir}/mate-2.0/ui/MATE_BrightnessApplet.xml
+%{_datadir}/mate-2.0/ui/MATE_InhibitApplet.xml
+%{_libdir}/matecomponent/servers/MATE_BrightnessApplet.server
+%{_libdir}/matecomponent/servers/MATE_InhibitApplet.server
+%{_libexecdir}/mate-brightness-applet
+%{_libexecdir}/mate-inhibit-applet
+%{_mandir}/man1/*.1.*
+
+
+%changelog
+* Fri Oct 19 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.4.0-2
+- add V=1 to make command
+- add mate-conf requires and remove mate-icon-theme
+
+* Fri Oct 19 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.4.0-1
+- Initial build
+
diff --git a/sources b/sources
index e69de29..e176e87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4c073efb67474ee87ab60eb5d891748e  mate-power-manager-1.4.0.tar.xz


More information about the scm-commits mailing list