|
|
|
|
@ -1,24 +1,17 @@
|
|
|
|
|
# Run prefork and optional test
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
|
# Run prefork optional test
|
|
|
|
|
%{bcond_without perl_Module_ScanDeps_enables_prefork}
|
|
|
|
|
%{bcond_without perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
%else
|
|
|
|
|
%{bcond_with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
|
%{bcond_with perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-Module-ScanDeps
|
|
|
|
|
Summary: Recursively scan Perl code for dependencies
|
|
|
|
|
Version: 1.37
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/Module-ScanDeps
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
|
|
|
|
|
Version: 1.24
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
|
|
|
|
|
URL: http://search.cpan.org/dist/Module-ScanDeps/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
@ -37,12 +30,9 @@ BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(FileHandle)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
# Getopt::Long not used by tests
|
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
|
|
|
|
# Storable is optional and not used by tests
|
|
|
|
|
# subs not used by tests
|
|
|
|
|
@ -52,18 +42,11 @@ BuildRequires: perl(version)
|
|
|
|
|
# VMS::Filespec never used
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(autouse)
|
|
|
|
|
BuildRequires: perl(AutoLoader)
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
|
BuildRequires: perl(IPC::Run3) >= 0.048
|
|
|
|
|
BuildRequires: perl(less)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Net::FTP)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
|
# Optional tests:
|
|
|
|
|
%if %{with perl_Module_ScanDeps_enables_optional_tests}
|
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
|
|
|
|
|
# Cycle: perl-Module-ScanDeps → perl-prefork → perl-Perl-MinimumVersion
|
|
|
|
|
@ -73,88 +56,34 @@ BuildRequires: perl(Module::Pluggable)
|
|
|
|
|
BuildRequires: perl(prefork)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
Requires: perl(B)
|
|
|
|
|
Requires: perl(DynaLoader)
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Encode)
|
|
|
|
|
Requires: perl(File::Find)
|
|
|
|
|
Requires: perl(FindBin)
|
|
|
|
|
Requires: perl(Text::ParseWords)
|
|
|
|
|
Recommends: perl(Digest::MD5)
|
|
|
|
|
Recommends: perl(Storable)
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
%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
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
make pure_install DESTDIR=%{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
|
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
@ -165,137 +94,7 @@ make test
|
|
|
|
|
%{_mandir}/man1/scandeps.pl.1*
|
|
|
|
|
%{_mandir}/man3/Module::ScanDeps.3pm*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Nov 21 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-1
|
|
|
|
|
- Resolves: RHEL-68426
|
|
|
|
|
- 1.37 bump; Fix CVE-2024-10224
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.35-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- 1.31 bump
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-2
|
|
|
|
|
- Do not use optional perl(prefork) for ELN
|
|
|
|
|
|
|
|
|
|
* Thu Jan 14 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-1
|
|
|
|
|
- 1.30 bump
|
|
|
|
|
|
|
|
|
|
* Wed Aug 19 2020 Petr Pisar <ppisar@redhat.com> - 1.29-1
|
|
|
|
|
- 1.29 bump
|
|
|
|
|
|
|
|
|
|
* Thu Aug 06 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.28-1
|
|
|
|
|
- 1.28 bump
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-9
|
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-8
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Mar 12 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-7
|
|
|
|
|
- Add BRs: perl(less), perl(Carp)
|
|
|
|
|
- Use make_* macros
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-4
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-3
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 16 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-1
|
|
|
|
|
- 1.27 bump
|
|
|
|
|
|
|
|
|
|
* Fri Dec 14 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-1
|
|
|
|
|
- 1.26 bump
|
|
|
|
|
|
|
|
|
|
* Tue Aug 21 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-1
|
|
|
|
|
- 1.25 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.24-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-5
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-4
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.24-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|