|
|
@ -1,17 +1,15 @@
|
|
|
|
# Run prefork and optional test
|
|
|
|
# Run prefork optional test
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
%{bcond_without perl_Module_ScanDeps_enables_prefork}
|
|
|
|
%{bcond_without perl_Module_ScanDeps_enables_prefork}
|
|
|
|
%{bcond_without perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%{bcond_with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
%{bcond_with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
%{bcond_with perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Module-ScanDeps
|
|
|
|
Name: perl-Module-ScanDeps
|
|
|
|
Summary: Recursively scan Perl code for dependencies
|
|
|
|
Summary: Recursively scan Perl code for dependencies
|
|
|
|
Version: 1.37
|
|
|
|
Version: 1.30
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: https://metacpan.org/release/Module-ScanDeps
|
|
|
|
URL: https://metacpan.org/release/Module-ScanDeps
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -42,7 +40,6 @@ BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(FileHandle)
|
|
|
|
BuildRequires: perl(FileHandle)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
# Getopt::Long not used by tests
|
|
|
|
# Getopt::Long not used by tests
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
|
|
|
# Storable is optional and not used by tests
|
|
|
|
# Storable is optional and not used by tests
|
|
|
|
# subs not used by tests
|
|
|
|
# subs not used by tests
|
|
|
@ -52,18 +49,14 @@ BuildRequires: perl(version)
|
|
|
|
# VMS::Filespec never used
|
|
|
|
# VMS::Filespec never used
|
|
|
|
# Tests:
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(autouse)
|
|
|
|
BuildRequires: perl(autouse)
|
|
|
|
BuildRequires: perl(AutoLoader)
|
|
|
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
BuildRequires: perl(IPC::Run3) >= 0.048
|
|
|
|
|
|
|
|
BuildRequires: perl(less)
|
|
|
|
BuildRequires: perl(less)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(Net::FTP)
|
|
|
|
BuildRequires: perl(Net::FTP)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
# Optional tests:
|
|
|
|
# Optional tests:
|
|
|
|
%if %{with perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
# Cycle: perl-Module-ScanDeps → perl-prefork → perl-Perl-MinimumVersion
|
|
|
|
# Cycle: perl-Module-ScanDeps → perl-prefork → perl-Perl-MinimumVersion
|
|
|
@ -73,7 +66,7 @@ BuildRequires: perl(Module::Pluggable)
|
|
|
|
BuildRequires: perl(prefork)
|
|
|
|
BuildRequires: perl(prefork)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
%endif
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
Requires: perl(B)
|
|
|
|
Requires: perl(B)
|
|
|
|
Requires: perl(DynaLoader)
|
|
|
|
Requires: perl(DynaLoader)
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
@ -85,47 +78,14 @@ Recommends: perl(Digest::MD5)
|
|
|
|
Recommends: perl(Storable)
|
|
|
|
Recommends: perl(Storable)
|
|
|
|
Suggests: perl(CPANPLUS::Backend)
|
|
|
|
Suggests: perl(CPANPLUS::Backend)
|
|
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_libexecdir}/%{name}/t/data
|
|
|
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Utils\\)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This module scans potential modules used by perl programs and returns a
|
|
|
|
This module scans potential modules used by perl programs and returns a
|
|
|
|
hash reference. Its keys are the module names as they appear in %%INC (e.g.
|
|
|
|
hash reference. Its keys are the module names as they appear in %%INC (e.g.
|
|
|
|
Test/More.pm). The values are hash references.
|
|
|
|
Test/More.pm). The values are hash references.
|
|
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
Requires: perl(AutoLoader)
|
|
|
|
|
|
|
|
Requires: perl(autouse)
|
|
|
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
|
|
|
Requires: perl(if)
|
|
|
|
|
|
|
|
Requires: perl(less)
|
|
|
|
|
|
|
|
Requires: perl(Net::FTP)
|
|
|
|
|
|
|
|
# Optional tests:
|
|
|
|
|
|
|
|
%if %{with perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
|
|
|
Requires: perl(Module::Pluggable)
|
|
|
|
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
|
|
|
|
Requires: perl(prefork)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n Module-ScanDeps-%{version}
|
|
|
|
%setup -q -n Module-ScanDeps-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# Help file to recognise the Perl scripts
|
|
|
|
|
|
|
|
for F in `find t -name *.t -o -name *.pl`; do
|
|
|
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
|
|
|
%{make_build}
|
|
|
@ -134,27 +94,7 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_install}
|
|
|
|
%{make_install}
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libexecdir}/%{name}/t/0-pod.t
|
|
|
|
|
|
|
|
perl -i -pe 's{ "-Mblib",}{}' %{buildroot}%{_libexecdir}/%{name}/t/19-autosplit.t
|
|
|
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Some 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -165,78 +105,13 @@ make test
|
|
|
|
%{_mandir}/man1/scandeps.pl.1*
|
|
|
|
%{_mandir}/man1/scandeps.pl.1*
|
|
|
|
%{_mandir}/man3/Module::ScanDeps.3pm*
|
|
|
|
%{_mandir}/man3/Module::ScanDeps.3pm*
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 21 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-1
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-5
|
|
|
|
- Resolves: RHEL-68426
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- 1.37 bump; Fix CVE-2024-10224
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.35-5
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.35-4
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.35-4
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.35-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.35-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.35-1
|
|
|
|
|
|
|
|
- 1.35 bump (rhbz#2248014)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.34-2
|
|
|
|
|
|
|
|
- Add test BR perl(AutoLoader) (rhbz#2242265)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 25 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.34-1
|
|
|
|
|
|
|
|
- 1.34 bump (rhbz#2240459)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 09 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.33-1
|
|
|
|
|
|
|
|
- 1.33 bump (rhbz#2229212)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.32-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 14 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.32-1
|
|
|
|
|
|
|
|
- 1.32 bump (rhbz#2219879)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-8
|
|
|
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-7
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 21 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-6
|
|
|
|
|
|
|
|
- Add build-condition for optional tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-3
|
|
|
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-2
|
|
|
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-1
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-4
|
|
|
|
- 1.31 bump
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-3
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|