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