Name: perl-CPAN-Plugin-Sysdeps Version: 0.70 Release: 4%{?dist} Summary: CPAN client plugin for installing system dependencies License: GPL+ or Artistic URL: https://metacpan.org/release/CPAN-Plugin-Sysdeps Source0: https://cpan.metacpan.org/authors/id/S/SR/SREZIC/CPAN-Plugin-Sysdeps-%{version}.tar.gz # Prevent a build script from accidental execution in an author mode Patch0: CPAN-Plugin-Sysdeps-0.66-Disable-probing-for-an-author-mode.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) # Run-time: # dnf not used at tests BuildRequires: perl(constant) # CPAN::Distribution not used at tests BuildRequires: perl(Data::Dumper) # Getopt::Long not used at tests BuildRequires: perl(IPC::Open3) BuildRequires: perl(List::Util) BuildRequires: perl(Symbol) BuildRequires: perl(warnings) BuildRequires: rpm # Optional run-time: BuildRequires: perl(Hash::Util) # sudo not used at tests # Tests: # CPAN::Distribution || CPAN BuildRequires: perl(CPAN::Distribution) BuildRequires: perl(Exporter) BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: perl(Test::More) BuildRequires: perl(vars) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: dnf Requires: perl(Data::Dumper) Suggests: perl(Hash::Util) Requires: perl(IPC::Open3) Requires: perl(Symbol) Requires: rpm Recommends: sudo # Filter private modules %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(TestUtil\\) %description CPAN::Plugin::Sysdeps is a plugin for CPAN Perl module to install non-CPAN dependencies automatically. Currently, the list of required system dependencies is maintained in a static data structure in CPAN::Plugin::Sysdeps::Mapping. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness # CPAN::Distribution || CPAN Requires: perl(CPAN::Distribution) %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n CPAN-Plugin-Sysdeps-%{version} %patch0 -p1 # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh unset CPAN_PLUGIN_SYSDEPS_DEBUG PERL_CPAN_SYSDEPS_UV_UTIL_NATIVE cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check unset CPAN_PLUGIN_SYSDEPS_DEBUG PERL_CPAN_SYSDEPS_UV_UTIL_NATIVE export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %doc Changes README.md %{_bindir}/cpan-sysdeps %{perl_vendorlib}/* %{_mandir}/man1/cpan-sysdeps.1* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.70-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.70-3 - Perl 5.36 rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.70-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 15 2021 Petr Pisar - 0.70-1 - 0.70 bump * Wed Sep 01 2021 Petr Pisar - 0.69-1 - 0.69 bump - Package the tests * Thu Jul 22 2021 Fedora Release Engineering - 0.68-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.68-3 - Perl 5.34 rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.68-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 21 2020 Petr Pisar - 0.68-1 - 0.68 bump * Mon Dec 14 2020 Jitka Plesnikova - 0.67-1 - 0.67 bump * Fri Oct 23 2020 Petr Pisar 0.66-1 - Specfile autogenerated by cpanspec 1.78.