371d15
Name: libaio
371d15
Version: 0.3.109
371d15
Release: 13%{?dist}
371d15
Summary: Linux-native asynchronous I/O access library
371d15
License: LGPLv2+
371d15
Group:  System Environment/Libraries
371d15
Source: http://git.fedorahosted.org/cgit/libaio.git/snapshot/%{name}-%{version}.tar.gz
371d15
BuildRoot: %{_tmppath}/%{name}-root
371d15
Patch1: libaio-install-to-slash.patch
371d15
Patch2: libaio-add-arm64-support.patch
371d15
Patch3: libaio-arm64-fix-test-case-16.patch
371d15
371d15
%description
371d15
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
371d15
richer API and capability set than the simple POSIX async I/O facility.
371d15
This library, libaio, provides the Linux-native API for async I/O.
371d15
The POSIX async I/O facility requires this library in order to provide
371d15
kernel-accelerated async I/O capabilities, as do applications which
371d15
require the Linux-native async I/O API.
371d15
371d15
%define libdir /%{_lib}
371d15
%define usrlibdir %{_prefix}/%{_lib}
371d15
371d15
%package devel
371d15
Summary: Development files for Linux-native asynchronous I/O access
371d15
Group: Development/System
371d15
Requires: %{name}%{?_isa} = %{version}-%{release}
371d15
371d15
%description devel
371d15
This package provides header files to include and libraries to link with
371d15
for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
371d15
371d15
%prep
371d15
%setup -a 0
371d15
%patch1 -p1 -b .install-to-slash
371d15
%patch2 -p0 -b .add-arm64-support
371d15
%patch2 -p1 -b .add-arm64-support
371d15
%patch3 -p0 -b .arm64-fix-testcase-16
371d15
%patch3 -p1 -b .arm64-fix-testcase-16
371d15
mv %{name}-%{version} compat-%{name}-%{version}
371d15
371d15
%build
371d15
# A library with a soname of 1.0.0 was inadvertantly released.  This
371d15
# build process builds a version of the library with the broken soname in
371d15
# the compat-libaio-0.3.103 directory, and then builds the library again
371d15
# with the correct soname.
371d15
cd compat-%{name}-%{version}
371d15
make soname='libaio.so.1.0.0' libname='libaio.so.1.0.0'
371d15
cd ..
371d15
make
371d15
371d15
%install
371d15
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
371d15
cd compat-%{name}-%{version}
371d15
install -D -m 755 src/libaio.so.1.0.0 \
371d15
  $RPM_BUILD_ROOT/%{libdir}/libaio.so.1.0.0
371d15
cd ..
371d15
make destdir=$RPM_BUILD_ROOT prefix=/ libdir=%{libdir} usrlibdir=%{usrlibdir} \
371d15
	includedir=%{_includedir} install
371d15
371d15
%clean
371d15
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
371d15
371d15
%post -p /sbin/ldconfig
371d15
371d15
%postun -p /sbin/ldconfig
371d15
371d15
%files
371d15
%defattr(-,root,root)
371d15
%attr(0755,root,root) %{libdir}/libaio.so.*
371d15
%doc COPYING TODO
371d15
371d15
%files devel
371d15
%defattr(-,root,root)
371d15
%attr(0644,root,root) %{_includedir}/*
371d15
%attr(0755,root,root) %{usrlibdir}/libaio.so*
371d15
%exclude %{_libdir}/libaio.a
371d15
371d15
%changelog
371d15
* Fri Aug 29 2014 Jeff Moyer <jmoyer@redhat.com> 0.3.109-13
371d15
- Merge aarch64 branch into the main tree
371d15
- Resolves: bz#1026429
371d15
371d15
* Thu Mar 13 2014 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-12.2
371d15
- Get rid of sparc support (we don't build it) (Jeff Moyer)
371d15
- Implement proper support for aarch64 (Jeff Moyer)
371d15
- Resolves: bz#1026429
371d15
371d15
* Tue Feb 4 2014 Brendan Conoboy <blc@redhat.com> - 0.3.109-12.1
371d15
- Marcin's initial aarch64 compatibility patch.
371d15
371d15
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.109-12
371d15
- Mass rebuild 2014-01-24
371d15
371d15
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.109-11
371d15
- Mass rebuild 2013-12-27
371d15
371d15
* Mon Dec  2 2013 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-10
371d15
- Un-revert the RHEL-specific changes. (Jeff Moyer)
371d15
- Make devel sub-package depend on specific ver-rel (Jeff Moyer)
371d15
- Resolves: bz#905462
371d15
371d15
* Tue Nov 13 2012 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-8
371d15
- Change the source location to the new upstream on fedorahosted
371d15
- import a new tarball from the new source
371d15
371d15
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-6
371d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
371d15
371d15
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-5
371d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
371d15
371d15
* Mon Apr 04 2011 Dennis Gilmore <dennis@ausil.us> - 0.3.109-4
371d15
-patch in sparc support 
371d15
371d15
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.109-3
371d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
371d15
371d15
* Tue Jan 19 2010 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-2
371d15
- Get rid of the static library. (Bug 556059)
371d15
371d15
* Fri Oct  9 2009 Jeff Moyer <jmoyer@redhat.com> - 0.3.109-1
371d15
- Pull in upstream .109 to get ARM architecture support.
371d15
- Remove the broken sparc patch;  it should go upstream first.
371d15
371d15
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.107-9
371d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
371d15
371d15
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.107-8
371d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
371d15
371d15
* Tue Jan 20 2009 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-7
371d15
- Fix the install to / patch.
371d15
371d15
* Wed Oct 01 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.107-6
371d15
- add patch with sparc support
371d15
371d15
* Wed Oct 01 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.107-5
371d15
- remove ExclusiveArch line
371d15
371d15
* Wed Sep  3 2008 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-4
371d15
- Install to / instead of /usr for early users of libaio (Jeff Moyer)
371d15
- Resolves: bz#459158
371d15
371d15
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3.107-3
371d15
- fix license tag
371d15
371d15
* Thu Jun 05 2008 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-2
371d15
- Update to the latest upstream which adds eventfd support and fixes broken
371d15
  test cases.  (Rusty Russell)
371d15
371d15
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.106-4.2
371d15
- Autorebuild for GCC 4.3
371d15
371d15
* Mon Jul 17 2006 Jeff Moyer <jmoyer@redhat.com> - 0.3.106-3.2
371d15
- rebuild
371d15
371d15
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-3.1
371d15
- rebuild
371d15
371d15
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 0.3.106-3
371d15
- rebuild for -devel deps
371d15
371d15
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-2.2
371d15
- bump again for double-long bug on ppc(64)
371d15
371d15
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.3.106-2.1
371d15
- rebuilt for new gcc4.1 snapshot and glibc changes
371d15
371d15
* Wed Jan 04 2006 Jeff Moyer <jmoyer@redhat.com> - 0.3.106-2
371d15
- Update to the latest sources, which contain the following change:
371d15
  Add a .proc directive for the ia64_aio_raw_syscall macro.  This sounds a lot
371d15
  like the previous entry, but that one fixed the __ia64_raw_syscall macro,
371d15
  located in syscall-ia64.h.  This macro is in raw_syscall.c, which pretty much
371d15
  only exists for ia64.  This bug prevented the package from building with
371d15
  newer version of gcc.
371d15
371d15
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
371d15
- rebuilt
371d15
371d15
* Fri Apr  1 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.104-2
371d15
- Add Alpha architecture support.  (Sergey Tikhonov <tsv@solvo.ru>)
371d15
371d15
* Wed Mar 16 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.103-6
371d15
- Rebuild with gcc 4.
371d15
371d15
* Mon Feb 14 2005 Jeff Moyer <jmoyer@redhat.com> - 0.3.103-4
371d15
- Build the library twice.  Once with the old SONAME and once with the new
371d15
  one.  This fixes the wrong SONAME problem by keeping a library around with
371d15
  the wrong name (libaio.so.1.0.0) and generating a new one (libaio.so.1.0.1).
371d15
371d15
* Thu Oct 14 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.102-1
371d15
- update to 102.  Fixes build errors on s390:
371d15
  - S390 asm had a bug; I forgot to update the clobber list.  Lucky for me,
371d15
    newer compilers complain about such things.
371d15
  - Also update the s390 asm to look more like the new kernel variants.
371d15
371d15
* Wed Oct 13 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.101-1
371d15
- update to 101.  Fixes bz 133253 -  libaio backwards compatibility severely
371d15
  broken.
371d15
371d15
* Tue Sep 14 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.100-1
371d15
- update to 100.  Fixes bz 129910.  Add pseries and iseries to
371d15
  exclusivearch.
371d15
371d15
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
371d15
- rebuilt
371d15
371d15
* Tue Mar 30 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.99-2
371d15
- Apparently the 0.3.93 patch was not meant for 0.3.96.  Backed it out.
371d15
371d15
* Tue Mar 30 2004 Jeff Moyer <jmoyer@redhat.com> - 0.3.99-1
371d15
- Fix compat calls.
371d15
- make library .so.1.0.0 and make symlinks properly.
371d15
- Fix header file for inclusion in c++ code.
371d15
371d15
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.98-2
371d15
- bah.  fix version nr in changelog.
371d15
371d15
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.98-1
371d15
- fix compiler warnings.
371d15
371d15
* Thu Feb 26 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.97-2
371d15
- make srpm was using rpm to do a build.  changed that to use rpmbuild if
371d15
  it exists, and fallback to rpm if it doesn't.
371d15
371d15
* Tue Feb 24 2004 Jeff Moyer <jmoyer@redhat.com> 0.3.97-1
371d15
- Use libc syscall(2) instead of rolling our own calling mechanism.  This 
371d15
  change is inspired due to a failure to build with newer gcc, since clobber 
371d15
  lists were wrong.
371d15
- Add -fpic to the CFLAGS for all architectures.  Should address bz #109457.
371d15
- change a #include from <linux/types.h> to <sys/types.h>.  Fixes a build
371d15
  issue on s390.
371d15
371d15
* Wed Jul  7 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
371d15
- fix paths on lib64 arches
371d15
371d15
* Wed Jun 18 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.96-2
371d15
- optimization in io_getevents from Arjan van de Ven in 0.3.96-1
371d15
- deal with ia64 in 0.3.96-2
371d15
371d15
* Wed May 28 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.95-1
371d15
- ppc bugfix from Julie DeWandel
371d15
371d15
* Tue May 20 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.94-1
371d15
- symbol versioning fix from Ulrich Drepper
371d15
371d15
* Mon Jan 27 2003 Benjamin LaHaise <bcrl@redhat.com>
371d15
- bump to 0.3.93-3 for rebuild.
371d15
371d15
* Mon Dec 16 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- libaio 0.3.93 test release
371d15
- add powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
371d15
- add s/390 support from Arnd Bergmann <arnd@bergmann-dalldorf.de>
371d15
371d15
* Fri Sep 12 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- libaio 0.3.92 test release
371d15
- build on x86-64
371d15
371d15
* Thu Sep 12 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- libaio 0.3.91 test release
371d15
- build on ia64
371d15
- remove libredhat-kernel from the .spec file
371d15
371d15
* Thu Sep  5 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- libaio 0.3.90 test release
371d15
371d15
* Mon Apr 29 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- add requires initscripts >= 6.47-1 to get boot time libredhat-kernel 
371d15
  linkage correct.
371d15
- typo fix
371d15
371d15
* Thu Apr 25 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- make /usr/lib/libredhat-kernel.so point to /lib/libredhat-kernel.so.1.0.0
371d15
371d15
* Mon Apr 15 2002 Tim Powers <timp@redhat.com>
371d15
- make the post scriptlet not use /bin/sh
371d15
371d15
* Sat Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- add /lib/libredhat-kernel* to %files.
371d15
371d15
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- make the dummy install as /lib/libredhat-kernel.so.1.0.0 so 
371d15
  that ldconfig will link against it if no other is installed.
371d15
371d15
* Tue Jan 22 2002 Benjamin LaHaise <bcrl@redhat.com>
371d15
- add io_getevents
371d15
371d15
* Tue Jan 22 2002 Michael K. Johnson <johnsonm@redhat.com>
371d15
- Make linker happy with /usr/lib symlink for libredhat-kernel.so
371d15
371d15
* Mon Jan 21 2002 Michael K. Johnson <johnsonm@redhat.com>
371d15
- Added stub library
371d15
371d15
* Sun Jan 20 2002 Michael K. Johnson <johnsonm@redhat.com>
371d15
- Initial packaging