1
--- output.orig.spec 2010-03-30 19:59:59.000000000 +0800
2
+++ output.spec 2010-03-30 20:01:23.000000000 +0800
3
@@ -14,6 +14,9 @@ License: BSD
4
URL: http://www.testpkg.org/
5
Source0: http://www.testpkg.org/testpkg-%{version}.tar.gz
6
Source100: testpkg.yaml
8
+Requires(preun): GConf2
9
+Requires(post): GConf2 >= 0.14
12
Sample package for spectacle testings, which will be used as
13
@@ -53,8 +56,26 @@ rm -rf %{buildroot}
20
+if [ "$1" -gt 1 ]; then
21
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
22
+ gconftool-2 --makefile-uninstall-rule \
23
+ %{_libdir}/*.schema \
28
+if [ "$1" -eq 0 ]; then
29
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
30
+ gconftool-2 --makefile-uninstall-rule \
31
+ %{_libdir}/*.schema \
36
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
37
+gconftool-2 --makefile-install-rule \
38
+ %{_libdir}/*.schema > /dev/null || :
42
@@ -63,6 +84,7 @@ rm -rf %{buildroot}
45
%defattr(-,root,root,-)