Blame SPECS/libaio.spec

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