spec cleanup and fixes

This commit is contained in:
Peter Robinson 2018-07-17 16:52:56 +01:00
parent 6463a635cb
commit 64573962c6

View File

@ -1,13 +1,14 @@
Name: libaio
Version: 0.3.111
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Linux-native asynchronous I/O access library
License: LGPLv2+
Group: System Environment/Libraries
Source: http://releases.pagure.org/libaio/libaio-0.3.111.tar.gz
Patch1: libaio-install-to-destdir-slash-usr.patch
BuildRequires: gcc
%description
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
richer API and capability set than the simple POSIX async I/O facility.
@ -21,8 +22,7 @@ require the Linux-native async I/O API.
%package devel
Summary: Development files for Linux-native asynchronous I/O access
Group: Development/System
Requires: libaio
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides header files to include and libraries to link with
@ -45,7 +45,6 @@ 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/%{usrlibdir}/libaio.so.1.0.0
@ -53,19 +52,22 @@ cd ..
make destdir=$RPM_BUILD_ROOT prefix=/ libdir=%{libdir} usrlibdir=%{usrlibdir} \
includedir=%{_includedir} install
find %{buildroot} -name '*.a' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -delete
%ldconfig_scriptlets
%files
%license COPYING
%attr(0755,root,root) %{usrlibdir}/libaio.so.*
%doc COPYING TODO
%files devel
%attr(0644,root,root) %{_includedir}/*
%attr(0755,root,root) %{usrlibdir}/libaio.so
%changelog
* Tue Jul 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.111-3
- Spec cleanup
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
@ -241,7 +243,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
- change a #include from <linux/types.h> to <sys/types.h>. Fixes a build
issue on s390.
* Wed Jul 7 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
* Wed Jul 9 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
- fix paths on lib64 arches
* Wed Jun 18 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.96-2
@ -262,7 +264,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
- add powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
- add s/390 support from Arnd Bergmann <arnd@bergmann-dalldorf.de>
* Fri Sep 12 2002 Benjamin LaHaise <bcrl@redhat.com>
* Fri Sep 13 2002 Benjamin LaHaise <bcrl@redhat.com>
- libaio 0.3.92 test release
- build on x86-64
@ -285,7 +287,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
* Mon Apr 15 2002 Tim Powers <timp@redhat.com>
- make the post scriptlet not use /bin/sh
* Sat Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
- add /lib/libredhat-kernel* to %%files.
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>