9d95fa
Name: libaio
9d95fa
Version: 0.3.111
9d95fa
Release: 13%{?dist}
9d95fa
Summary: Linux-native asynchronous I/O access library
9d95fa
License: LGPLv2+
9d95fa
Source: http://releases.pagure.org/libaio/libaio-0.3.111.tar.gz
9d95fa
9d95fa
Patch1: libaio-install-to-destdir-slash-usr.patch
9d95fa
Patch2: libaio-remove-nostartfiles-nostdlib-from-build-flags.patch
9d95fa
9d95fa
BuildRequires: gcc
9d95fa
BuildRequires: make
9d95fa
9d95fa
%description
9d95fa
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
9d95fa
richer API and capability set than the simple POSIX async I/O facility.
9d95fa
This library, libaio, provides the Linux-native API for async I/O.
9d95fa
The POSIX async I/O facility requires this library in order to provide
9d95fa
kernel-accelerated async I/O capabilities, as do applications which
9d95fa
require the Linux-native async I/O API.
9d95fa
9d95fa
%define libdir /%{_lib}
9d95fa
%define usrlibdir %{_prefix}/%{_lib}
9d95fa
9d95fa
%package devel
9d95fa
Summary: Development files for Linux-native asynchronous I/O access
9d95fa
Requires: %{name}%{?_isa} = %{version}-%{release}
9d95fa
9d95fa
%description devel
9d95fa
This package provides header files to include and libraries to link with
9d95fa
for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
9d95fa
9d95fa
%prep
9d95fa
%setup -q -a 0
9d95fa
%patch1 -p0 -b .install-to-destdir-slash-usr
9d95fa
%patch1 -p1 -b .install-to-destdir-slash-usr
9d95fa
%patch2 -p0 -b .nostdlib
9d95fa
%patch2 -p1 -b .nostdlib
9d95fa
mv %{name}-%{version} compat-%{name}-%{version}
9d95fa
9d95fa
%build
9d95fa
# This package uses ASMs to implement symbol versioning and is thus
9d95fa
# incompatible with LTO
9d95fa
%define _lto_cflags %{nil}
9d95fa
9d95fa
# A library with a soname of 1.0.0 was inadvertantly released.  This
9d95fa
# build process builds a version of the library with the broken soname in
9d95fa
# the compat-libaio-0.3.103 directory, and then builds the library again
9d95fa
# with the correct soname.
9d95fa
%set_build_flags
9d95fa
cd compat-%{name}-%{version}
9d95fa
make soname='libaio.so.1.0.0' libname='libaio.so.1.0.0'
9d95fa
cd ..
9d95fa
make
9d95fa
9d95fa
%install
9d95fa
cd compat-%{name}-%{version}
9d95fa
install -D -m 755 src/libaio.so.1.0.0 \
9d95fa
  $RPM_BUILD_ROOT/%{usrlibdir}/libaio.so.1.0.0
9d95fa
cd ..
9d95fa
make destdir=$RPM_BUILD_ROOT prefix=/ libdir=%{libdir} usrlibdir=%{usrlibdir} \
9d95fa
	includedir=%{_includedir} install
9d95fa
9d95fa
find %{buildroot} -name '*.a' -delete
9d95fa
9d95fa
%ldconfig_scriptlets
9d95fa
9d95fa
%files
9d95fa
%license COPYING
9d95fa
%attr(0755,root,root) %{usrlibdir}/libaio.so.*
9d95fa
9d95fa
%files devel
9d95fa
%attr(0644,root,root) %{_includedir}/*
9d95fa
%attr(0755,root,root) %{usrlibdir}/libaio.so
9d95fa
9d95fa
%changelog
9d95fa
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.111-13
9d95fa
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9d95fa
  Related: rhbz#1991688
9d95fa
9d95fa
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.111-12
9d95fa
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9d95fa
9d95fa
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-11
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9d95fa
9d95fa
* Fri Aug 07 2020 Jeff Law <law@redhat.com> - 0.3.111-10
9d95fa
- Disable LTO
9d95fa
9d95fa
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-9
9d95fa
- Second attempt - Rebuilt for
9d95fa
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9d95fa
9d95fa
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-8
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9d95fa
9d95fa
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-7
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9d95fa
9d95fa
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-6
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9d95fa
9d95fa
* Wed Mar 13 2019 Paolo Bonzini <pbonzini@redhat.com> - 0.3.111-5
9d95fa
- Pass in the distro-provided CFLAGS and LFLAGS. (Jeff Moyer)
9d95fa
- Get rid of -nostartfiles -nostdlib (Jeff Moyer)
9d95fa
- Resolves: rhbz#1630578
9d95fa
9d95fa
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-4
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9d95fa
9d95fa
* Tue Jul 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.111-3
9d95fa
- Spec cleanup
9d95fa
9d95fa
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-2
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9d95fa
9d95fa
* Wed Mar 07 2018 Jeff Moyer <jmoyer@redhat.com> - 0.3.111-1
9d95fa
- import 0.3.111, which adds support for preadv2,pwritev2, riscv (Jeff Moyer)
9d95fa
9d95fa
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-11
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9d95fa
9d95fa
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.110-10
9d95fa
- Switch to %%ldconfig_scriptlets
9d95fa
9d95fa
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-9
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9d95fa
9d95fa
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-8
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9d95fa
9d95fa
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-7
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9d95fa
9d95fa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-6
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9d95fa
9d95fa
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.110-5
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9d95fa
9d95fa
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.110-4
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9d95fa
9d95fa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.110-3
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9d95fa
9d95fa
* Wed Mar  5 2014 Jeff Moyer <jmoyer@redhat.com> - 0.3.110-2
9d95fa
- Rebase to 0.3.110 which adds support for aarch64 and other arches (Jeff Moyer)
9d95fa
- Move to /usr
9d95fa
- Resolves: bz#969680
9d95fa
9d95fa
* Tue Mar 4  2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.3.109-9
9d95fa
- Initial aarch64 compatibility patch.
9d95fa
9d95fa
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-8
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9d95fa
9d95fa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-7
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9d95fa
9d95fa
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-6
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9d95fa
9d95fa
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-5
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9d95fa
9d95fa
* Mon Apr 04 2011 Dennis Gilmore <dennis@ausil.us> - 0.3.109-4
9d95fa
-patch in sparc support 
9d95fa
9d95fa
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-3
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9d95fa
9d95fa
* Tue Jan 19 2010 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-2
9d95fa
- Get rid of the static library. (Bug 556059)
9d95fa
9d95fa
* Fri Oct  9 2009 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-1
9d95fa
- Pull in upstream .109 to get ARM architecture support.
9d95fa
- Remove the broken sparc patch;  it should go upstream first.
9d95fa
9d95fa
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.107-9
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9d95fa
9d95fa
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.107-8
9d95fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9d95fa
9d95fa
* Tue Jan 20 2009 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-7
9d95fa
- Fix the install to / patch.
9d95fa
9d95fa
* Wed Oct 01 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.107-6
9d95fa
- add patch with sparc support
9d95fa
9d95fa
* Wed Oct 01 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.107-5
9d95fa
- remove ExclusiveArch line
9d95fa
9d95fa
* Wed Sep  3 2008 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-4
9d95fa
- Install to / instead of /usr for early users of libaio (Jeff Moyer)
9d95fa
- Resolves: bz#459158
9d95fa
9d95fa
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3.107-3
9d95fa
- fix license tag
9d95fa
9d95fa
* Thu Jun 05 2008 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-2
9d95fa
- Update to the latest upstream which adds eventfd support and fixes broken
9d95fa
  test cases.  (Rusty Russell)
9d95fa
9d95fa
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.106-4.2
9d95fa
- Autorebuild for GCC 4.3
9d95fa
9d95fa
* Mon Jul 17 2006 Jeff Moyer <jmoyer@redhat.com> - 0.3.106-3.2
9d95fa
- rebuild
9d95fa
9d95fa
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-3.1
9d95fa
- rebuild
9d95fa
9d95fa
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 0.3.106-3
9d95fa
- rebuild for -devel deps
9d95fa
9d95fa
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-2.2
9d95fa
- bump again for double-long bug on ppc(64)
9d95fa
9d95fa
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-2.1
9d95fa
- rebuilt for new gcc4.1 snapshot and glibc changes
9d95fa
9d95fa
* Wed Jan 04 2006 Jeff Moyer <jmoyer@redhat.com> - 0.3.106-2
9d95fa
- Update to the latest sources, which contain the following change:
9d95fa
  Add a .proc directive for the ia64_aio_raw_syscall macro.  This sounds a lot
9d95fa
  like the previous entry, but that one fixed the __ia64_raw_syscall macro,
9d95fa
  located in syscall-ia64.h.  This macro is in raw_syscall.c, which pretty much
9d95fa
  only exists for ia64.  This bug prevented the package from building with
9d95fa
  newer version of gcc.
9d95fa
9d95fa
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
9d95fa
- rebuilt
9d95fa
9d95fa
* Fri Apr  1 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.104-2
9d95fa
- Add Alpha architecture support.  (Sergey Tikhonov <tsv@solvo.ru>)
9d95fa
9d95fa
* Wed Mar 16 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.103-6
9d95fa
- Rebuild with gcc 4.
9d95fa
9d95fa
* Mon Feb 14 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.103-4
9d95fa
- Build the library twice.  Once with the old SONAME and once with the new
9d95fa
  one.  This fixes the wrong SONAME problem by keeping a library around with
9d95fa
  the wrong name (libaio.so.1.0.0) and generating a new one (libaio.so.1.0.1).
9d95fa
9d95fa
* Thu Oct 14 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.102-1
9d95fa
- update to 102.  Fixes build errors on s390:
9d95fa
  - S390 asm had a bug; I forgot to update the clobber list.  Lucky for me,
9d95fa
    newer compilers complain about such things.
9d95fa
  - Also update the s390 asm to look more like the new kernel variants.
9d95fa
9d95fa
* Wed Oct 13 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.101-1
9d95fa
- update to 101.  Fixes bz 133253 -  libaio backwards compatibility severely
9d95fa
  broken.
9d95fa
9d95fa
* Tue Sep 14 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.100-1
9d95fa
- update to 100.  Fixes bz 129910.  Add pseries and iseries to
9d95fa
  exclusivearch.
9d95fa
9d95fa
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
9d95fa
- rebuilt
9d95fa
9d95fa
* Tue Mar 30 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.99-2
9d95fa
- Apparently the 0.3.93 patch was not meant for 0.3.96.  Backed it out.
9d95fa
9d95fa
* Tue Mar 30 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.99-1
9d95fa
- Fix compat calls.
9d95fa
- make library .so.1.0.0 and make symlinks properly.
9d95fa
- Fix header file for inclusion in c++ code.
9d95fa
9d95fa
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.98-2
9d95fa
- bah.  fix version nr in changelog.
9d95fa
9d95fa
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.98-1
9d95fa
- fix compiler warnings.
9d95fa
9d95fa
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.97-2
9d95fa
- make srpm was using rpm to do a build.  changed that to use rpmbuild if
9d95fa
  it exists, and fallback to rpm if it doesn't.
9d95fa
9d95fa
* Tue Feb 24 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.97-1
9d95fa
- Use libc syscall(2) instead of rolling our own calling mechanism.  This 
9d95fa
  change is inspired due to a failure to build with newer gcc, since clobber 
9d95fa
  lists were wrong.
9d95fa
- Add -fpic to the CFLAGS for all architectures.  Should address bz #109457.
9d95fa
- change a #include from <linux/types.h> to <sys/types.h>.  Fixes a build
9d95fa
  issue on s390.
9d95fa
9d95fa
* Wed Jul  9 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
9d95fa
- fix paths on lib64 arches
9d95fa
9d95fa
* Wed Jun 18 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.96-2
9d95fa
- optimization in io_getevents from Arjan van de Ven in 0.3.96-1
9d95fa
- deal with ia64 in 0.3.96-2
9d95fa
9d95fa
* Wed May 28 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.95-1
9d95fa
- ppc bugfix from Julie DeWandel
9d95fa
9d95fa
* Tue May 20 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.94-1
9d95fa
- symbol versioning fix from Ulrich Drepper
9d95fa
9d95fa
* Mon Jan 27 2003 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- bump to 0.3.93-3 for rebuild.
9d95fa
9d95fa
* Mon Dec 16 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- libaio 0.3.93 test release
9d95fa
- add powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
9d95fa
- add s/390 support from Arnd Bergmann <arnd@bergmann-dalldorf.de>
9d95fa
9d95fa
* Fri Sep 13 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- libaio 0.3.92 test release
9d95fa
- build on x86-64
9d95fa
9d95fa
* Thu Sep 12 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- libaio 0.3.91 test release
9d95fa
- build on ia64
9d95fa
- remove libredhat-kernel from the .spec file
9d95fa
9d95fa
* Thu Sep  5 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- libaio 0.3.90 test release
9d95fa
9d95fa
* Mon Apr 29 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- add requires initscripts >= 6.47-1 to get boot time libredhat-kernel 
9d95fa
  linkage correct.
9d95fa
- typo fix
9d95fa
9d95fa
* Thu Apr 25 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- make /usr/lib/libredhat-kernel.so point to /lib/libredhat-kernel.so.1.0.0
9d95fa
9d95fa
* Mon Apr 15 2002 Tim Powers <timp@redhat.com>
9d95fa
- make the post scriptlet not use /bin/sh
9d95fa
9d95fa
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- add /lib/libredhat-kernel* to %%files.
9d95fa
9d95fa
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- make the dummy install as /lib/libredhat-kernel.so.1.0.0 so 
9d95fa
  that ldconfig will link against it if no other is installed.
9d95fa
9d95fa
* Tue Jan 22 2002 Benjamin LaHaise <bcrl@redhat.com>
9d95fa
- add io_getevents
9d95fa
9d95fa
* Tue Jan 22 2002 Michael K. Johnson <johnsonm@redhat.com>
9d95fa
- Make linker happy with /usr/lib symlink for libredhat-kernel.so
9d95fa
9d95fa
* Mon Jan 21 2002 Michael K. Johnson <johnsonm@redhat.com>
9d95fa
- Added stub library
9d95fa
9d95fa
* Sun Jan 20 2002 Michael K. Johnson <johnsonm@redhat.com>
9d95fa
- Initial packaging