Compare commits

...

No commits in common. "c8-stream-5.3" and "c9s" have entirely different histories.

12 changed files with 183 additions and 4 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

50
.gitignore vendored
View File

@ -1 +1,49 @@
SOURCES/ExtUtils-MakeMaker-7.42.tar.gz
/ExtUtils-MakeMaker-6.62.tar.gz
/ExtUtils-MakeMaker-6.63_02.tar.gz
/ExtUtils-MakeMaker-6.64.tar.gz
/ExtUtils-MakeMaker-6.66.tar.gz
/ExtUtils-MakeMaker-6.68.tar.gz
/ExtUtils-MakeMaker-6.72.tar.gz
/ExtUtils-MakeMaker-6.74.tar.gz
/ExtUtils-MakeMaker-6.76.tar.gz
/ExtUtils-MakeMaker-6.78.tar.gz
/ExtUtils-MakeMaker-6.80.tar.gz
/ExtUtils-MakeMaker-6.82.tar.gz
/ExtUtils-MakeMaker-6.84.tar.gz
/ExtUtils-MakeMaker-6.86.tar.gz
/ExtUtils-MakeMaker-6.88.tar.gz
/ExtUtils-MakeMaker-6.90.tar.gz
/ExtUtils-MakeMaker-6.92.tar.gz
/ExtUtils-MakeMaker-6.94.tar.gz
/ExtUtils-MakeMaker-6.96.tar.gz
/ExtUtils-MakeMaker-6.98.tar.gz
/ExtUtils-MakeMaker-7.00.tar.gz
/ExtUtils-MakeMaker-7.02.tar.gz
/ExtUtils-MakeMaker-7.04.tar.gz
/ExtUtils-MakeMaker-7.06.tar.gz
/ExtUtils-MakeMaker-7.08.tar.gz
/ExtUtils-MakeMaker-7.10.tar.gz
/ExtUtils-MakeMaker-7.12.tar.gz
/ExtUtils-MakeMaker-7.14.tar.gz
/ExtUtils-MakeMaker-7.16.tar.gz
/ExtUtils-MakeMaker-7.18.tar.gz
/ExtUtils-MakeMaker-7.22.tar.gz
/ExtUtils-MakeMaker-7.24.tar.gz
/ExtUtils-MakeMaker-7.26.tar.gz
/ExtUtils-MakeMaker-7.28.tar.gz
/ExtUtils-MakeMaker-7.30.tar.gz
/ExtUtils-MakeMaker-7.32.tar.gz
/ExtUtils-MakeMaker-7.34.tar.gz
/ExtUtils-MakeMaker-7.36.tar.gz
/ExtUtils-MakeMaker-7.38.tar.gz
/ExtUtils-MakeMaker-7.40.tar.gz
/ExtUtils-MakeMaker-7.42.tar.gz
/ExtUtils-MakeMaker-7.44.tar.gz
/ExtUtils-MakeMaker-7.46.tar.gz
/ExtUtils-MakeMaker-7.48.tar.gz
/ExtUtils-MakeMaker-7.50.tar.gz
/ExtUtils-MakeMaker-7.52.tar.gz
/ExtUtils-MakeMaker-7.54.tar.gz
/ExtUtils-MakeMaker-7.56.tar.gz
/ExtUtils-MakeMaker-7.58.tar.gz
/ExtUtils-MakeMaker-7.60.tar.gz

View File

@ -1 +1 @@
0441553dc10430917382f132be3dfa167d77a030 SOURCES/ExtUtils-MakeMaker-7.42.tar.gz
73e0fccfca7189cb10ad8b9f83f08fd535953f55 ExtUtils-MakeMaker-7.60.tar.gz

View File

@ -5,8 +5,8 @@
Name: perl-%{cpan_name}
Epoch: 2
Version: 7.42
Release: 1%{?dist}
Version: 7.60
Release: 3%{?dist}
Summary: Create a module Makefile
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{cpan_name}
@ -127,6 +127,13 @@ Recommends: gcc
# Do not export private redefinitions
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DynaLoader|ExtUtils::MakeMaker::_version\\)
# Filter modules bundled for tests
%global __requires_exclude %{__requires_exclude}|^perl\\(MY)\s*$
%global __requires_exclude %{__requires_exclude}|^perl\\(TieIn)\s*$
%global __requires_exclude %{__requires_exclude}|^perl\\(TieOut)\s*$
%global __requires_exclude %{__requires_exclude}|^perl\\(MakeMaker::Test.*)\s*$
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%description
This utility is designed to write a Makefile for an extension module from a
Makefile.PL. It is based on the Makefile.SH model provided by Andy
@ -161,6 +168,28 @@ other modules but that do not need full-featured ExtUtils::MakeMaker. The
issue with ExtUtils::MakeMaker is it pulls in Perl header files and that
is an overkill for small subroutines.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(CPAN::Meta) >= 2.143240
Requires: perl(Encode)
Requires: perl(File::Spec)
Requires: perl(Parse::CPAN::Meta) >= 1.4414
Requires: perl(Pod::Man)
Requires: perl(version)
%if %{with perl_ExtUtils_MakeMaker_enables_optional_test}
# Optional tests
Requires: perl-devel
Requires: perl(B)
Requires: perl(ExtUtils::CBuilder)
Requires: perl(PerlIO)
%endif
%description tests
Tests from %{name}-%{version}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n ExtUtils-MakeMaker-%{version}
%patch0 -p1
@ -178,15 +207,52 @@ perl -i -ne 'print $_ unless m{^lib/ExtUtils/MakeMaker/version(?:/|\.pm)}' MANIF
rm -rf lib/ExtUtils/MakeMaker/Locale.pm
perl -i -ne 'print $_ unless m{^lib/ExtUtils/MakeMaker/Locale\.pm}' MANIFEST
%if !%{with perl_ExtUtils_MakeMaker_enables_optional_test}
# Remove optional tests
rm t/02-xsdynamic.t t/03-xsstatic.t
perl -i -ne 'print $_ unless m{^t/02-xsdynamic\.t}' MANIFEST
perl -i -ne 'print $_ unless m{^t/03-xsstatic\.t}' MANIFEST
perl -i -ne 'print $_ unless m{^t/unicode\.t}' MANIFEST
%endif
# Help file to recognise the Perl scripts and normalize shebangs
for F in `find t -name *.t`; do
if head -1 "$F" | grep -q -e '^#!.*perl' ; then
perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F"
else
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
fi
chmod +x "$F"
done
%build
BUILDING_AS_PACKAGE=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install}
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# Lots of tests write into temporary files/directories. The easiest solution
# is to copy the tests into a writable directory and execute them from there.
DIR=$(mktemp -d)
pushd "$DIR"
cp -a %{_libexecdir}/%{name}/* ./
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -rf "$DIR"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%{_fixperms} $RPM_BUILD_ROOT/*
%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
@ -212,7 +278,60 @@ make test
%{perl_vendorlib}/ExtUtils/MM/Utils.pm
%{_mandir}/man3/ExtUtils::MM::Utils.*
%files tests
%{_libexecdir}/%{name}
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2:7.60-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:7.60-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Fri Feb 19 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.60-1
- 7.60 bump
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.58-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Dec 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.58-1
- 7.58 bump
* Fri Nov 20 2020 Petr Pisar <ppisar@redhat.com> - 2:7.56-1
- 7.56 bump
* Fri Nov 13 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.54-1
- 7.54 bump
* Thu Nov 05 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.52-1
- 7.52 bump
* Thu Oct 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.50-1
- 7.50 bump
* Tue Oct 06 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.48-1
- 7.48 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.46-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.46-2
- Perl 5.32 re-rebuild of bootstrapped packages
* Tue Jun 23 2020 Petr Pisar <ppisar@redhat.com> - 2:7.46-1
- 7.46 bump
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.44-456
- Increase release to favour standalone package
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.44-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 15 2020 Petr Pisar <ppisar@redhat.com> - 2:7.44-1
- 7.44 bump
* Wed Dec 18 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:7.42-1
- 7.42 bump

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ExtUtils-MakeMaker-7.60.tar.gz) = 7e099d58f567f058b2cbae72ea2b1380e6fd7c7bab12c8756f11fe51cb6c50aac4313362f6726fd1abe45fec9ff94355666ecd80320bc3f9722659ebd3ae769e

5
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Upstream tests
component: perl-ExtUtils-MakeMaker
require: perl-ExtUtils-MakeMaker-tests
test: /usr/libexec/perl-ExtUtils-MakeMaker/test