Name: perl-POSIX-2008 Version: 0.24 Release: 2%{?dist} Summary: Perl interface to POSIX.1-2008 # COPYING: WTFPL text # lib/POSIX/2008.pod: WTFPL # ppport.h: GPL-1.0-or-later OR Artistic-1.0-Perl License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND WTFPL URL: https://metacpan.org/release/POSIX-2008 Source0: https://cpan.metacpan.org/authors/id/C/CG/CGPAN/POSIX-2008-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.9 BuildRequires: perl(Config) BuildRequires: perl(Devel::PPPort) BuildRequires: perl(ExtUtils::Constant) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Fcntl) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(lib) BuildRequires: perl(MIME::Base64) BuildRequires: perl(sigtrap) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Makefile.PL loads ./lib/POSIX/2008.pm without XSLoader BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(IO::Dir) BuildRequires: perl(IO::File) # Run-time: BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(bigrat) BuildRequires: perl(constant) BuildRequires: perl(Cwd) BuildRequires: perl(Errno) BuildRequires: perl(File::Path) BuildRequires: perl(integer) BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) Requires: perl(XSLoader) %description POSIX::2008 Perl module contains many of the interfaces specified by POSIX.1-2008 that the core POSIX Perl module withholds or implements differently. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n POSIX-2008-%{version} # Unbundle ppport.h perl -MDevel::PPPort \ -e 'Devel::PPPort::WriteFile() or die "Could not generate ppport.h: $!"' # Correct file modes chmod a+x t/*.t %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \ OPTIMIZE="$RPM_OPT_FLAGS" VERBOSE=1 %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/bash set -e # t/02_at.t writes into CWD DIR=$(mktemp -d) cp -a %{_libexecdir}/%{name}/* "$DIR" pushd "$DIR" prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -r "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license COPYING %doc Changes README %dir %{perl_vendorarch}/auto/POSIX %{perl_vendorarch}/auto/POSIX/2008 %dir %{perl_vendorarch}/POSIX %{perl_vendorarch}/POSIX/2008.* %{_mandir}/man3/POSIX::2008.* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 14 2024 Petr Pisar - 0.24-1 - 0.24 bump * Mon Jun 10 2024 Jitka Plesnikova - 0.23-2 - Perl 5.40 rebuild * Tue Jan 30 2024 Petr Pisar - 0.23-1 - 0.23 bump * Thu Jan 25 2024 Fedora Release Engineering - 0.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 20 2023 Petr Pisar - 0.21-1 - 0.21 bump * Mon Jul 24 2023 Petr Pisar - 0.20-1 - 0.20 bump * Fri Jul 21 2023 Fedora Release Engineering - 0.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.19-2 - Perl 5.38 rebuild * Mon Jul 10 2023 Petr Pisar - 0.19-1 - 0.19 bump * Fri Jun 02 2023 Petr Pisar - 0.18-1 - 0.18 bump - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 0.16-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.16-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.16-12 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.16-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.16-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.16-9 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.16-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.16-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.16-6 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.16-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.16-3 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Dec 04 2018 Petr Pisar 0.16-1 - Specfile autogenerated by cpanspec 1.78.