[packages/test/uninstall-order: 2/3] test packages not dependent on each other

draenog draenog at pld-linux.org
Thu Mar 20 15:51:50 CET 2014


commit 3e9e4cb6b15256b06a5b5b1d39ab6e9ce0501fc9
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Mar 20 14:41:26 2014 +0000

    test packages not dependent on each other

 test.spec | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/test.spec b/test.spec
index cfb8f1b..2a27457 100644
--- a/test.spec
+++ b/test.spec
@@ -42,14 +42,18 @@ install -d $RPM_BUILD_ROOT/dir
 touch $RPM_BUILD_ROOT/dir/file
 touch $RPM_BUILD_ROOT/dir/file2
 cd $RPM_BUILD_ROOT/dir
-ln -s file link
+
+%preun sub
+echo "sub script"
+
+%preun sub2
+echo "sub2 script"
 
 %clean
 
 %files
 %defattr(644,root,root,755)
 %dir /dir
-/dir/file2
 
 %files sub
 %defattr(644,root,root,755)
@@ -57,5 +61,5 @@ ln -s file link
 
 %files sub2
 %defattr(644,root,root,755)
-/dir/link
+/dir/file2
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/test.git/commitdiff/2e997e903ac38b98ce0b8c016907b04b0f7bf227



More information about the pld-cvs-commit mailing list