diff --git a/.cvsignore b/.cvsignore index 4ff388f..70cffa8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1 @@ -libaio-0.3.99.tar.gz -libaio-0.3.100.tar.gz -libaio-0.3.101.tar.gz -libaio-0.3.102.tar.gz +libaio-0.3.103.tar.gz diff --git a/libaio.spec b/libaio.spec index bed0114..085165a 100644 --- a/libaio.spec +++ b/libaio.spec @@ -1,8 +1,8 @@ Name: libaio -Version: 0.3.102 -Release: 1 +Version: 0.3.103 +Release: 4 Summary: Linux-native asynchronous I/O access library -Copyright: LGPL +License: LGPL Group: System Environment/Libraries Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-root @@ -27,18 +27,30 @@ This package provides header files to include and libraries to link with for the Linux-native asynchronous I/O facility ("async I/O", or "aio"). %prep -%setup +%setup -a 0 +mv %{name}-%{version} compat-%{name}-%{version} %build +# A library with a soname of 1.0.0 was inadvertantly released. This +# build process builds a version of the library with the broken soname in +# the compat-libaio-0.3.103 directory, and then builds the library again +# with the correct soname. +cd compat-%{name}-%{version} +make soname='libaio.so.1.0.0' libname='libaio.so.1.0.0' +cd .. make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - +cd compat-%{name}-%{version} +install -D -m 755 src/libaio.so.1.0.0 \ + $RPM_BUILD_ROOT/%{_libdir}/libaio.so.1.0.0 +cd .. make install prefix=$RPM_BUILD_ROOT/usr \ libdir=$RPM_BUILD_ROOT/%{_libdir} \ root=$RPM_BUILD_ROOT + %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT @@ -58,6 +70,11 @@ make install prefix=$RPM_BUILD_ROOT/usr \ %attr(0644,root,root) %{_libdir}/libaio.a %changelog +* Mon Feb 14 2005 Jeff Moyer - 0.3.103-4 +- Build the library twice. Once with the old SONAME and once with the new + one. This fixes the wrong SONAME problem by keeping a library around with + the wrong name (libaio.so.1.0.0) and generating a new one (libaio.so.1.0.1). + * Thu Oct 14 2004 Jeff Moyer - 0.3.102-1 - update to 102. Fixes build errors on s390: - S390 asm had a bug; I forgot to update the clobber list. Lucky for me, diff --git a/sources b/sources index a2bfba0..57b5f12 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a3dc49212b83439db29644fca8866d4c libaio-0.3.102.tar.gz +39b466795914a4fbef32bc48e0929f9a libaio-0.3.103.tar.gz