Compare commits

..

No commits in common. 'c8-stream-5.32' and 'c9' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Module-CoreList-5.20211020.tar.gz
SOURCES/Module-CoreList-5.20210320.tar.gz

@ -1 +1 @@
95284de8ea6f473f9aa344a5a9b686d359796ba7 SOURCES/Module-CoreList-5.20211020.tar.gz
ae1b4a58ace3a3474c26b166ec2b2c449f4180fa SOURCES/Module-CoreList-5.20210320.tar.gz

@ -1,11 +1,8 @@
# Run optional test
%bcond_without perl_Module_CoreList_enables_optional_test
Name: perl-Module-CoreList
# Epoch to compete with perl.spec
Epoch: 1
Version: 5.20211020
Release: 1%{?dist}
Version: 5.20210320
Release: 3%{?dist}
Summary: What modules are shipped with versions of perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-CoreList
@ -28,10 +25,6 @@ BuildRequires: perl(List::Util)
BuildRequires: perl(version) >= 0.88
# Tests:
BuildRequires: perl(Test::More)
# Optional tests:
%if %{with perl_Module_CoreList_enables_optional_test} && !%{defined perl_bootstrap}
BuildRequires: perl(Test::Pod) >= 1.00
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(List::Util)
Requires: perl(version) >= 0.88
@ -56,19 +49,55 @@ Conflicts: perl-Module-CoreList < 1:5.20140914
This package provides a corelist(1) tool which can be used to query what
modules were shipped with given perl version.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: %{name}-tools = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}-%{version}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Module-CoreList-%{version}
# Help file to recognise the Perl scripts and normalize shebangs
for F in t/*.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
# Remove release tests
rm t/pod.t
perl -i -ne 'print $_ unless m{^t/pod\.t}' MANIFEST
%build
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/sh
unset PERL_CORE
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%{_fixperms} $RPM_BUILD_ROOT/*
%check
unset PERL_CORE
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
@ -81,36 +110,26 @@ make test
%{_bindir}/corelist
%{_mandir}/man1/corelist.*
%changelog
* Mon Oct 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20211020-1
- 5.20211020 bump
* Tue Sep 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210920-1
- 5.20210920 bump
* Mon Aug 23 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210820-1
- 5.20210820 bump
* Mon Aug 02 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210723-1
- 5.20210723 bump
%files tests
%{_libexecdir}/%{name}
* Tue Jun 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210620-1
- 5.20210620 bump
* Tue May 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210521-1
- 5.20210521 bump
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210520-1
- 5.20210520 bump
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:5.20210320-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Apr 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210420-1
- 5.20210420 bump
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:5.20210320-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Sun Mar 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210320-1
- 5.20210320 bump
* Mon Feb 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210220-1
- 5.20210220 bump
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.20210123-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jan 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20210123-1
- 5.20210123 bump

Loading…
Cancel
Save