SPECS (rpath): test.spec - for rpath stripping testing

glen glen at pld-linux.org
Wed Jun 11 16:52:11 CEST 2008


Author: glen                         Date: Wed Jun 11 14:52:11 2008 GMT
Module: SPECS                         Tag: rpath
---- Log message:
- for rpath stripping testing

---- Files affected:
SPECS:
   test.spec (1.16.4.85 -> 1.16.4.85.2.1) 

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.16.4.85 SPECS/test.spec:1.16.4.85.2.1
--- SPECS/test.spec:1.16.4.85	Sat Apr 26 15:46:24 2008
+++ SPECS/test.spec	Wed Jun 11 16:52:04 2008
@@ -1,32 +1,36 @@
 # $Revision$, $Date$
-Summary:	University of Cambridge Mail Transfer Agent
-Name:		deptest
+Summary:	test path stripping
+Name:		t-rpath
 Version:	4.69
 Release:	3
 Epoch:		2
 License:	GPL
 Group:		Networking/Daemons
-Requires:	%%{runtimedep}
-Conflicts:	%%{runtimeconflict}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Smail like Mail Transfer Agent with single configuration file.
+%{summary}
 
 %prep
 %setup -qcT
+cat <<'EOF'> test.c
+int main() { return 1; }
+EOF
+
+%build
+%{__cc} -shared test.c -o libtest.so -Wl,-rpath,'$ORIGIN'
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/test
-install -d $RPM_BUILD_ROOT/test/aa
+install -d $RPM_BUILD_ROOT%{_libdir}
+install libtest.so $RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-/test
+%{_libdir}/libtest.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -34,23 +38,6 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.16.4.85  2008-04-26 13:46:24  glen
-- release 3
-
-Revision 1.16.4.84  2008-03-27 15:59:29  glen
-- df test
-
-Revision 1.16.4.83  2008-03-27 15:57:49  glen
-- loginfo test
-
-Revision 1.16.4.82  2008-03-26 21:50:11  glen
-- test
-
-Revision 1.16.4.81  2008-03-26 21:47:55  glen
-- df test
-
-Revision 1.16.4.80  2008-03-24 21:23:40  glen
-- triggers work as expected
+Revision 1.16.4.85.2.1  2008-06-11 14:52:04  glen
+- for rpath stripping testing
 
-Revision 1.16.4.79  2008-03-19 21:43:57  glen
-- test spec for bug 120
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/test.spec?r1=1.16.4.85&r2=1.16.4.85.2.1&f=u



More information about the pld-cvs-commit mailing list