[mate-power-manager] update spec file for git snapshot

Wolfgang Ulbrich raveit65 at fedoraproject.org
Wed Jul 24 14:08:33 UTC 2013


commit 4800ea8fb4b2412d8ec705d071eb927bad868b02
Author: raveit65 <chat-to-me at raveit.de>
Date:   Wed Jul 24 16:08:19 2013 +0200

    update spec file for git snapshot

 mate-power-manager.spec |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)
---
diff --git a/mate-power-manager.spec b/mate-power-manager.spec
index d343d10..f49d0ce 100644
--- a/mate-power-manager.spec
+++ b/mate-power-manager.spec
@@ -1,10 +1,16 @@
+%global _internal_version  2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9
+
 Name:          mate-power-manager
 Version:       1.6.1
-Release:       3%{?dist}
+Release:       4.git%{_internal_version}%{?dist}
 Summary:       MATE power management service
 License:       GPLv2+
 URL:           http://pub.mate-desktop.org
-Source0:       http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
+
+# To generate tarball
+# for git
+# wget http://git.mate-desktop.org/%%{name}/snapshot/%{name}-%%{_internal_version} -O %%{name}-%%{version}.git%%{_internal_version}.tar.gz
+Source0: http://raveit65.fedorapeople.org/Mate/git-upsream/%{name}-%{version}.git%{_internal_version}.tar.gz
 
 BuildRequires: cairo-devel
 BuildRequires: dbus-glib-devel
@@ -31,7 +37,7 @@ BuildRequires: xmlto
 # not sure if ConsoleKit itself is enough, but let's be on the safe-side
 # need to keep this until we can confirm migration to systemd-logind/upower
 # works 100% -- rex
-Requires: ConsoleKit-x11
+#Requires: ConsoleKit-x11
 
 %description
 MATE Power Manager uses the information and facilities provided by UPower
@@ -39,7 +45,8 @@ displaying icons and handling user callbacks in an interactive MATE session.
 
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{_internal_version}
+NOCONFIGURE=1 ./autogen.sh
 
 %build
 %configure \
@@ -55,13 +62,17 @@ make %{?_smp_mflags} V=1
 
 %install
 make DESTDIR=%{buildroot} install
-%find_lang %{name} --all-name
 
 desktop-file-install                               \
      --delete-original                             \
      --dir=%{buildroot}%{_datadir}/applications    \
 %{buildroot}%{_datadir}/applications/*.desktop
 
+# remove needless gsettings convert file to avoid slow session start
+rm -f  %{buildroot}%{_datadir}/MateConf/gsettings/mate-power-manager.convert
+
+%find_lang %{name}
+
 
 %post
 /bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
@@ -102,9 +113,15 @@ fi
 %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
 %{_libexecdir}/mate-brightness-applet
 %{_libexecdir}/mate-inhibit-applet
-%{_datadir}/MateConf/gsettings/mate-power-manager.convert
+
 
 %changelog
+* Thu Jul 18 2013 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.1-4.git2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9
+- update to latest git snapshot
+- http://git.mate-desktop.org/mate-power-manager/commit/?id=2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9
+- fix suspend on lid close issue without consolekit, rhbz 972881
+- remove needless gsettings convert file
+
 * Thu Jun 20 2013 Rex Dieter <rdieter at fedoraproject.org> 1.6.1-3
 - Requires: ConsoleKit-x11 (#972881)
 


More information about the scm-commits mailing list