packages (RPM_SYMLINK): test/test.spec - test for symlink mystery

glen glen at pld-linux.org
Sun Jan 8 22:51:11 CET 2012


Author: glen                         Date: Sun Jan  8 21:51:11 2012 GMT
Module: packages                      Tag: RPM_SYMLINK
---- Log message:
- test for symlink mystery

---- Files affected:
packages/test:
   test.spec (1.16.4.69.2.4.2.1 -> 1.16.4.69.2.4.2.1.4.1) 

---- Diffs:

================================================================
Index: packages/test/test.spec
diff -u packages/test/test.spec:1.16.4.69.2.4.2.1 packages/test/test.spec:1.16.4.69.2.4.2.1.4.1
--- packages/test/test.spec:1.16.4.69.2.4.2.1	Mon Mar 23 20:37:24 2009
+++ packages/test/test.spec	Sun Jan  8 22:51:06 2012
@@ -1,45 +1,36 @@
 # $Revision$, $Date$
-%bcond_without	pkg1	# build the "first" package
-%bcond_with	pkg2	# build the "second" package
-
-%if %{with pkg2}
-# disable pkg1 if pkg2 is built
-%undefine	with_pkg1
-%endif
-Summary:	triggertest
-Name:		triggers
-Version:	4
-Release:	%{?with_pkg1:1}%{?with_pkg2:4}
+Summary:	rpm symlins test
+Name:		rpm-symlinks
+Version:	1
+Release:	1
 License:	GPL
+URL:	http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-January/022402.html
 Group:		Applications/System
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_prefix	/tmp/%{name}
+
 %description
-This package should be never installed.
+why is my symlink gone????
 
 %prep
 %setup -qcT
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_prefix}
+ln -s /etc/fstab $RPM_BUILD_ROOT%{_prefix}/fstablink
+
+touch $RPM_BUILD_ROOT%{_prefix}/testfile
+ln -s testfile $RPM_BUILD_ROOT%{_prefix}/testlink
 
-%if %{with pkg2}
-%triggerpostun -- %{name} < 2
-echo "%{name}-%{version}-%{release} postun on %{name} < 2"
-
-%triggerpostun -- %{name} < 3
-echo "%{name}-%{version}-%{release} postun on %{name} < 3"
-
-%triggerpostun -- %{name} < 4
-echo "%{name}-%{version}-%{release} postun on %{name} < 4"
-%endif
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%{_prefix}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -47,6 +38,6 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.16.4.69.2.4.2.1  2009/03/23 19:37:24  glen
-- spec for triggers
+Revision 1.16.4.69.2.4.2.1.4.1  2012/01/08 21:51:06  glen
+- test for symlink mystery
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/test/test.spec?r1=1.16.4.69.2.4.2.1&r2=1.16.4.69.2.4.2.1.4.1&f=u



More information about the pld-cvs-commit mailing list