~ubuntu-branches/ubuntu/quantal/spectacle/quantal

« back to all changes in this revision

Viewing changes to tests/specify_cases/test-filesparsing_preserve_versioned_ones/output.p

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-08-08 20:01:42 UTC
  • Revision ID: james.westby@ubuntu.com-20100808200142-q09anvq02isk4o6n
Tags: upstream-0.18+git19+4768025
ImportĀ upstreamĀ versionĀ 0.18+git19+4768025

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
+Requires(pre): GConf2
 
8
+Requires(preun): GConf2
 
9
+Requires(post): GConf2 >= 0.14
 
10
 
 
11
 %description
 
12
 Sample package for spectacle testings, which will be used as
 
13
@@ -53,8 +56,26 @@ rm -rf %{buildroot}
 
14
 # >> install post
 
15
 # << install post
 
16
 
 
17
-
 
18
-
 
19
+%pre
 
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 \
 
24
+    > /dev/null || :
 
25
+fi
 
26
+
 
27
+%preun
 
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 \
 
32
+    > /dev/null || :
 
33
+fi
 
34
+
 
35
+%post
 
36
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
37
+gconftool-2 --makefile-install-rule \
 
38
+    %{_libdir}/*.schema  > /dev/null || :
 
39
 
 
40
 
 
41
 
 
42
@@ -63,6 +84,7 @@ rm -rf %{buildroot}
 
43
 
 
44
 %files
 
45
 %defattr(-,root,root,-)
 
46
+%{_libdir}/*.schema
 
47
 # >> files
 
48
 # << files
 
49