PLD-doc: devel-hints-en.txt - shared libraries packaging.

pawelz pawelz at pld-linux.org
Wed Jan 27 01:12:30 CET 2010


Author: pawelz                       Date: Wed Jan 27 00:12:29 2010 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
- shared libraries packaging.

---- Files affected:
PLD-doc:
   devel-hints-en.txt (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: PLD-doc/devel-hints-en.txt
diff -u PLD-doc/devel-hints-en.txt:1.35 PLD-doc/devel-hints-en.txt:1.36
--- PLD-doc/devel-hints-en.txt:1.35	Sun Oct  5 02:35:02 2008
+++ PLD-doc/devel-hints-en.txt	Wed Jan 27 01:12:24 2010
@@ -408,6 +408,22 @@
 be created in the %post script, keeping in mind to grant them correct
 permissions.
 
+%files section for shared libraries:
+Consider an example library 'libexample.so.1.0.2' with SONAME
+'libexample.so.1'. Correct %files sections should contain following lines:
+
+%files
+%attr(755,root,root) %{_libdir}/libexample.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libexample.so.1
+
+%files devel
+%attr(755,root,root) %{_libdir}/libexample.so
+
+trailing wildcards in the name of first file must not match symlinks. This is
+why there are two asterisks.
+SONAME symlink should be marked as %ghost, because this file is being created
+by ldconfig in %post scriptlet.
+
 *.desktop files
 
 Applications' main *.desktop files always get placed in %{_desktopdir}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/devel-hints-en.txt?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list