SPECS (rpath): test.spec - try when $ORIGIN doesn't fit

glen glen at pld-linux.org
Thu Jun 12 23:34:32 CEST 2008


Author: glen                         Date: Thu Jun 12 21:34:32 2008 GMT
Module: SPECS                         Tag: rpath
---- Log message:
- try when $ORIGIN doesn't fit

---- Files affected:
SPECS:
   test.spec (1.16.4.85.2.3 -> 1.16.4.85.2.4) 

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.16.4.85.2.3 SPECS/test.spec:1.16.4.85.2.4
--- SPECS/test.spec:1.16.4.85.2.3	Thu Jun 12 12:37:51 2008
+++ SPECS/test.spec	Thu Jun 12 23:34:27 2008
@@ -18,19 +18,23 @@
 EOF
 
 %build
-%{__cc} -shared test.c -o libtest.so -Wl,-rpath,'$ORIGIN:/opt/%{_lib}:/lib/../%{_lib}/modules'
+%{__cc} -shared test.c -o libtest.so -Wl,-rpath,'$ORIGIN:/opt/%{_lib}:/lib/../%{_lib}/modules:/%{_lib}' -lz
+%{__cc} -shared test.c -o libtest2.so -Wl,-rpath,'$ORIGIN'
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_libdir}
 install libtest.so $RPM_BUILD_ROOT%{_libdir}
+install -D libtest2.so $RPM_BUILD_ROOT%{_libdir}/ratherlongpath/libtest2.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_libdir}/libtest.so
+%attr(755,root,root) %{_libdir}/libtest.so
+%dir %{_libdir}/ratherlongpath
+%attr(755,root,root) %{_libdir}/ratherlongpath/libtest2.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -38,6 +42,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16.4.85.2.4  2008-06-12 21:34:27  glen
+- try when $ORIGIN doesn't fit
+
 Revision 1.16.4.85.2.3  2008-06-12 10:37:51  glen
 - add ../../blah paths
 
================================================================

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



More information about the pld-cvs-commit mailing list