packages: reglookup/reglookup.spec - versioned soname

adamg adamg at pld-linux.org
Mon Jun 20 22:36:45 CEST 2011


Author: adamg                        Date: Mon Jun 20 20:36:45 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- versioned soname

---- Files affected:
packages/reglookup:
   reglookup.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/reglookup/reglookup.spec
diff -u packages/reglookup/reglookup.spec:1.4 packages/reglookup/reglookup.spec:1.5
--- packages/reglookup/reglookup.spec:1.4	Mon Jun 20 18:48:07 2011
+++ packages/reglookup/reglookup.spec	Mon Jun 20 22:36:40 2011
@@ -9,6 +9,7 @@
 Source0:	http://projects.sentinelchicken.org/data/downloads/%{name}-src-%{version}.tar.gz
 # Source0-md5:	1fb1eea7435d368a91ade8c4016b5be6
 Patch0:		%{name}-paths.patch
+Patch1:		%{name}-soname.patch
 URL:		http://projects.sentinelchicken.org/reglookup/
 BuildRequires:	rpmbuild(macros) >= 1.385
 BuildRequires:	scons
@@ -88,6 +89,7 @@
 %prep
 %setup -q -n %{name}-src-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %scons
@@ -107,11 +109,19 @@
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+# fix soname
+mv $RPM_BUILD_ROOT%{_libdir}/libregfi.so{,.%{version}}
+ln -sf libregfi.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libregfi.so.1
+ln -sf libregfi.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libregfi.so
+
 %py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
@@ -119,10 +129,12 @@
 
 %files libs
 %defattr(644,root,root,755)
-%{_libdir}/*.so
+%attr(755,root,root) %{_libdir}/*.so.*.*.*
+%attr(755,root,root) %{_libdir}/*.so.1
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so
 %{_includedir}/regfi
 
 %files static
@@ -141,6 +153,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2011/06/20 20:36:40  adamg
+- versioned soname
+
 Revision 1.4  2011/06/20 16:48:07  adamg
 - updated to 1.0.0
 - switched to scons
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/reglookup/reglookup.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list