[packages/test/uninstall-order: 1/3] Test for links

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


commit 1fb6b9dcb5b326ceaf8f9d8dc800161f72294e8f
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Mar 20 14:36:16 2014 +0000

    Test for links

 test.spec | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/test.spec b/test.spec
index 0b09819..cfb8f1b 100644
--- a/test.spec
+++ b/test.spec
@@ -14,14 +14,48 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 testing something
 
+%package sub
+Summary: subpackage
+
+%description sub
+Subpackage
+
+%package sub2
+Summary: subpackage
+
+%description sub2
+Subpackage
+
+%define var1 foo
+%define var2 %{var1}
+%define var1 bar
+
 %prep
 %setup -qcT
+echo %{var1} %{var2}
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT
+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
 
 %clean
 
 %files
 %defattr(644,root,root,755)
+%dir /dir
+/dir/file2
+
+%files sub
+%defattr(644,root,root,755)
+/dir/file
+
+%files sub2
+%defattr(644,root,root,755)
+/dir/link
+
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list