# work around upstream versioning being decimal rather than v-string %global upstream_version 4.34 %global extraversion %{nil} %if "%{upstream_version}%{extraversion}" != "%{upstream_version}" Provides: perl(IO::AIO) = %{upstream_version}%{extraversion} %endif Name: perl-IO-AIO Version: %{upstream_version}%{extraversion} Release: 3%{?dist} Summary: Asynchronous Input/Output License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/IO-AIO/ Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/IO-AIO-%{upstream_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl >= 3:5.8.2 %if 0%{?fedora} > 6 || 0%{?rhel} > 5 BuildRequires: perl-devel BuildRequires: perl-generators %endif BuildRequires: perl(Canary::Stability) >= 2001 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(common::sense) BuildRequires: perl(Exporter) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(Fcntl) BuildRequires: perl(File::Temp) BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: perl(POSIX) BuildRequires: perl(strict) BuildRequires: perl(Test) BuildRequires: perl(vars) # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(XSLoader) %{?perl_default_filter} %description This module implements asynchronous I/O using whatever means your operating system supports. %prep %setup -q -n IO-AIO-%{upstream_version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot} # Remove script we don't want packaged rm %{buildroot}%{_bindir}/treescan %check make test %clean rm -rf %{buildroot} %files %if 0%{?_licensedir:1} %license COPYING %else %doc COPYING %endif %doc Changes README %{perl_vendorarch}/auto/IO/ %{perl_vendorarch}/IO/ %{_mandir}/man3/IO::AIO.3* %changelog * Sat Feb 11 2017 Fedora Release Engineering - 4.34-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 4.34-2 - Perl 5.24 rebuild * Tue May 3 2016 Paul Howarth - 4.34-1 - Update to 4.34 - def0.h was not properly generated during previous release, causing compile errors on various platforms - major/minor were accidentally switched - Removed duplicate definition of MAP_HUGETLB - Added (untested!) aio_fcntl, aio_ioctl requests - (libeio) Names set via prctl are truncated to 15 chars + nul, not 16, as manpages-dev originally claimed - Drop def0.h patch from previous release, no longer needed - Simplify find commands using -empty and -delete * Thu Feb 04 2016 Fedora Release Engineering - 4.33-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 18 2016 Paul Howarth - 4.33-1 - Update to 4.33 - Add IO::AIO::pipe2 function - Added support for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE constants - Added support for O_TMPFILE and O_PATH constants - Added support for MAP_FIXED, MAP_GROWSDOWN, MAP_32BIT, MAP_HUGETLB, MAP_STACK constants, whether they can be sensibly used or not - Use NO_INIT where applicable - Update libecb - Added stability canary support - Updated linux super magic table to 4.3.3 - Explicitly BR: perl-devel, needed for EXTERN.h - Add patch to support building on systems without MAP_STACK or MAP_32BIT * Thu Jun 18 2015 Fedora Release Engineering - 4.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 04 2015 Jitka Plesnikova - 4.32-2 - Perl 5.22 rebuild * Thu Feb 12 2015 Paul Howarth - 4.32-1 - Update to 4.32 - Replace off_t by STRLEN where appropriate; should not result in user-visible changes - Update ecb.h for C11 compatibility - Classify buildreqs by usage - Use %%license where possible * Wed Aug 27 2014 Jitka Plesnikova - 4.31-3 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 4.31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jun 10 2014 Paul Howarth - 4.31-1 - Update to 4.31 - Work around more 5.20 bugs * Sat Jun 07 2014 Fedora Release Engineering - 4.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 11 2014 Paul Howarth - 4.30-1 - Update to 4.3 - perl5porters broke Async::Interrupt, BDB, EV, IO::AIO and OpenCL without warning by switching the meaning of USE_SOCKETS_AS_HANDLES in 5.18 - Drop %%defattr, redundant since rpm 4.4 * Sat Jan 25 2014 Paul Howarth - 4.20-1 - Update to 4.2 (see Changes file for details) * Sat Aug 03 2013 Fedora Release Engineering - 4.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 18 2013 Petr Pisar - 4.15-5 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 4.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 4.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 12 2012 Petr Pisar - 4.15-2 - Perl 5.16 rebuild * Tue Apr 10 2012 Paul Howarth - 4.15-1 - Update to 4.15: - Always include linux/types.h for fiemap, for compatibility with ancient systems - Experimental support for IO::AIO::splice and ::tee (no aio_...) - Provide SEEK_HOLE and SEEK_DATA, if available - Work around (again!) an immensely stupid bug in RHEL, defining autoconf macros in linux system headers * Sat Apr 7 2012 Paul Howarth - 4.14-1 - Update to 4.14: - Fix stat structure usage on windows, which caused bogus stat results - (libeio) make readahead emulation behave more like actual readahead by never failing - New request aio_seek - New request aio_fiemap - Auto-generate the #ifdef/#define 0 blocks for symbols we export - BR:/R: Perl core modules that might be dual-lived - Don't need to remove empty directories from buildroot * Thu Feb 2 2012 Paul Howarth - 4.12-1 - Update to 4.12 (see Changes file for details) - INCOMPATIBLE CHANGE: fork is no longer supported (indeed, it never was); see FORK BEHAVIOUR in manpage for details - BR: perl(Carp) - Reinstate compatibility with old distributions such as EL-5 - Add back BuildRoot definition and cleaning - Use DESTDIR rather than PERL_INSTALL_ROOT - Don't use macros for commands - Use tabs * Fri Jan 13 2012 Fedora Release Engineering - 3.71-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jun 19 2011 Marcela Mašláňová - 3.71-3 - Perl mass rebuild * Thu Mar 10 2011 Paul Howarth - 3.71-2 - Spec cleanup - Use %%{?perl_default_filter} instead of our own custom provides filter * Wed Feb 9 2011 Ruben Kerkhof - 3.71-1 - Upstream released new version * Tue Feb 8 2011 Fedora Release Engineering - 3.65-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Dec 17 2010 Marcela Maslanova - 3.65-2 - Rebuild to fix problems with vendorarch/lib (#661697) * Thu Jun 24 2010 Ruben Kerkhof - 3.65-1 - Upstream released new version * Sun May 02 2010 Marcela Maslanova - 3.17-5 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 3.17-4 - Rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 3.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 3.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Dec 18 2008 Nicolas Chauvet - 3.17-1 - Update to 3.17 * Sun Nov 09 2008 Ruben Kerkhof - 3.16-1 - Upstream release new version * Mon Mar 03 2008 Tom "spot" Callaway - 2.51-2 - Rebuild for new perl (again) * Sat Feb 09 2008 Ruben Kerkhof - 2.51-1 - Sync with upstream * Thu Feb 7 2008 Tom "spot" Callaway - 2.33-2 - Rebuild for new perl * Sun May 13 2007 Ruben Kerkhof - 2.33-1 - Initial import