[guake/el6] Update for EL6

Pierre-YvesChibon pingou at fedoraproject.org
Wed Nov 9 13:35:42 UTC 2011


commit 80ff5c1dcbc933d2866e0afe31f0b3808a6b7567
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Wed Nov 9 14:35:35 2011 +0100

    Update for EL6

 guake.spec |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/guake.spec b/guake.spec
index bd92e7d..b17d061 100644
--- a/guake.spec
+++ b/guake.spec
@@ -1,6 +1,6 @@
 Name:           guake
 Version:        0.4.2
-Release:        3%{?dist}
+Release:        4{?dist}
 Summary:        Drop-down terminal for GNOME
 
 Group:          Applications/System
@@ -9,16 +9,6 @@ URL:            http://www.guake.org/
 Source0:        http://guake.org/files/%{name}-%{version}.tar.gz
 Patch0:        0001-Retrieve-port-as-int.patch
 
-# Not used here -- official release --
-#Source0:        %{name}-%{version}.20090321git.tar.gz
-# Source generated from
-# git clone git://repos.guake-terminal.org/guake
-# cd guake
-# ./autogen.sh
-# cd ../
-# tar zcvf guake-0.3.1.20090321git.tar.gz guake/
-# ---------------------------------------------
-
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  python-devel gtk2-devel gettext desktop-file-utils perl(XML::Parser) GConf2-devel
@@ -72,16 +62,23 @@ rm -f %{buildroot}%{_libdir}/%{name}/globalhotkeys.la
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-%gconf_schema_prepare %{name}
+if [ "$1" -gt 1 ] ; then
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-uninstall-rule \
+%{_sysconfdir}/gconf/schemas/[NAME] .schemas >/dev/null || :
+fi
 
 %post
-%gconf_schema_upgrade %{name}
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+%{_sysconfdir}/gconf/schemas/[NAME] .schemas > /dev/null || :
 
 %preun
-%gconf_schema_remove %{name}
-
-%posttrans
-killall -HUP gconfd-2 > /dev/null || :
+if [ "$1" -eq 0 ] ; then
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-uninstall-rule \
+%{_sysconfdir}/gconf/schemas/[NAME] .schemas > /dev/null || :
+fi
 
 %files -f %{name}.lang
 %defattr(-,root,root,-)
@@ -99,6 +96,9 @@ killall -HUP gconfd-2 > /dev/null || :
 %{_sysconfdir}/xdg/autostart/%{name}.desktop
 
 %changelog
+* Wed Nov 09 2011 Pierre-Yves Chibon <pingou at pingoured.fr> - 0.4.2-4
+- Update the spec file to build on EL6
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list