|
@@ -1,12 +1,13 @@
|
|
|
Summary: Linux-native asynchronous I/O access library
|
|
|
Name: libaio
|
|
|
-Version: 0.3.106
|
|
|
-Release: 4%{?_dist_release}
|
|
|
+Version: 0.3.110
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
License: LGPLv2+
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
+Patch1: libaio-install-to-destdir-slash-usr.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x ppc ppc64 ppc64pseries ppc64iseries alpha alphaev6
|
|
@@ -30,6 +31,8 @@ for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
|
|
|
|
|
|
%prep
|
|
|
%setup -q -a 0
|
|
|
+%patch1 -p0 -b .install-to-destdir-slash-usr
|
|
|
+%patch1 -p1 -b .install-to-destdir-slash-usr
|
|
|
mv %{name}-%{version} compat-%{name}-%{version}
|
|
|
|
|
|
%build
|
|
@@ -48,10 +51,10 @@ 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
|
|
|
+make destdir=$RPM_BUILD_ROOT prefix=/ libdir=/%{_lib} usrlibdir=%{_libdir} \
|
|
|
+ includedir=%{_includedir} install
|
|
|
|
|
|
+find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|
|
|
|
|
%clean
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
@@ -61,17 +64,17 @@ make install prefix=$RPM_BUILD_ROOT/usr \
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
|
-%defattr(-,root,root)
|
|
|
%attr(0755,root,root) %{_libdir}/libaio.so.*
|
|
|
%doc COPYING TODO
|
|
|
|
|
|
%files devel
|
|
|
-%defattr(-,root,root)
|
|
|
%attr(0644,root,root) %{_includedir}/*
|
|
|
%attr(0755,root,root) %{_libdir}/libaio.so
|
|
|
-%attr(0644,root,root) %{_libdir}/libaio.a
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Oct 28 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.110-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.106-4
|
|
|
- rebuild with VineSeed environment
|
|
|
|