SPECS: libaio.spec - move libaio to /%{_lib}; rel 2

glen glen at pld-linux.org
Thu Oct 25 18:56:08 CEST 2007


Author: glen                         Date: Thu Oct 25 16:56:08 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- move libaio to /%{_lib}; rel 2

---- Files affected:
SPECS:
   libaio.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/libaio.spec
diff -u SPECS/libaio.spec:1.5 SPECS/libaio.spec:1.6
--- SPECS/libaio.spec:1.5	Mon Sep 10 01:12:43 2007
+++ SPECS/libaio.spec	Thu Oct 25 18:56:02 2007
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia
 Name:		libaio
 Version:	0.3.106
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		Libraries
 # http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/
@@ -66,6 +66,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/%{_lib}
 
 %{__make} install \
 	prefix=$RPM_BUILD_ROOT%{_prefix} \
@@ -79,6 +80,11 @@
 install man/io*.3 $RPM_BUILD_ROOT%{_mandir}/man3
 install man/lio*.3 $RPM_BUILD_ROOT%{_mandir}/man3
 
+# move to /%{_lib}, for multipath-tools
+SONAME=$(basename $RPM_BUILD_ROOT%{_libdir}/libaio.so.*.*)
+ln -sf /%{_lib}/${SONAME} $RPM_BUILD_ROOT%{_libdir}/libaio.so
+mv -f $RPM_BUILD_ROOT%{_libdir}/libaio.so.*.* $RPM_BUILD_ROOT/%{_lib}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -88,7 +94,7 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog TODO
-%attr(755,root,root) %{_libdir}/libaio.so.*.*.*
+%attr(755,root,root) /%{_lib}/libaio.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
@@ -108,6 +114,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007/10/25 16:56:02  glen
+- move libaio to /%{_lib}; rel 2
+
 Revision 1.5  2007/09/09 23:12:43  qboosh
 - resolve manuals conflict with man-pages and glibc-devel-doc
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libaio.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list