Name: perl-PPI-PowerToys Version: 0.14 Release: 42%{?dist} Summary: Handy collection of small PPI-based utilities License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/PPI-PowerToys Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/PPI-PowerToys-%{version}.tar.gz # Update Makefile.PL to not use Module::Install::DSL, CPAN RT#148301, proposed # to the upstream. Patch0: PPI-PowerToys-0.14-Remove-using-of-MI-DSL.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::Scripts) BuildRequires: perl(Module::Install::WriteAll) # Run-time: BuildRequires: perl(File::Find::Rule) >= 0.30 BuildRequires: perl(File::Find::Rule::Perl) >= 0.03 BuildRequires: perl(File::Spec) >= 0.80 BuildRequires: perl(Getopt::Long) >= 2.36 BuildRequires: perl(PPI::Document) >= 1.201 BuildRequires: perl(strict) BuildRequires: perl(vars) BuildRequires: perl(version) >= 0.74 BuildRequires: perl(warnings) # Tests only: BuildRequires: perl(blib) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(IPC::Run3) >= 0.034 BuildRequires: perl(PPI) BuildRequires: perl(Probe::Perl) >= 0.01 BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::Script) >= 1.03 # Remove underspecified dependecies %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\((File::Find::Rule|File::Find::Rule::Perl|File::Spec|Getopt::Long|IPC::Run3|PPI::Document|Probe::Perl|Test::More|Test::Script|version)\\)$ %description The PPI PowerToys are a small collection of utilities for working with Perl files, modules and distributions. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness Requires: perl(blib) Requires: perl(IPC::Run3) >= 0.034 Requires: perl(Probe::Perl) >= 0.01 Requires: perl(Test::More) >= 0.47 Requires: perl(Test::Script) >= 1.03 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n PPI-PowerToys-%{version} # Remove bundled libraries rm -r inc perl -i -ne 'print $_ unless m{^inc/}' MANIFEST # Remove tests which are always skipped for T in t/97_meta.t t/98_pod.t t/99_pmv.t; do rm "$T" perl -i -ne 'print $_ unless m{^\Q'"$T"'\E}' MANIFEST done chmod +x t/*.t %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 Makefile.PL t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/bash set -e # Especially t/03_show.t expects installed files in a working directory. Copy # or symlink them there. DIR=$(mktemp -d) cp -a %{_libexecdir}/%{name}/* "$DIR" mkdir -p "$DIR"/lib/PPI "$DIR"/script "$DIR"/blib/lib/auto "$DIR"/blib/arch ln -s %{perl_vendorlib}/PPI/PowerToys.pm "$DIR"/lib/PPI ln -s %{_bindir}/ppi_copyright "$DIR"/script ln -s %{_bindir}/ppi_version "$DIR"/script pushd "$DIR" prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -r "$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 %license LICENSE %doc Changes README %{_bindir}/ppi_* %{perl_vendorlib}/PPI* %{_mandir}/man3/PPI* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.14-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.14-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.14-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue May 09 2023 Jitka Plesnikova - 0.14-39 - Update Makefile.PL to not use Module::Install::DSL - Update license to SPDX format - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 0.14-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.14-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.14-36 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.14-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.14-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.14-33 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.14-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.14-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.14-30 - Perl 5.32 rebuild * Tue Mar 17 2020 Jitka Plesnikova - 0.14-29 - Add perl(blib) for tests * Thu Jan 30 2020 Fedora Release Engineering - 0.14-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.14-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.14-26 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.14-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.14-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 0.14-23 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.14-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.14-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 07 2017 Jitka Plesnikova - 0.14-20 - Perl 5.26 re-rebuild of bootstrapped packages * Tue Jun 06 2017 Petr Pisar - 0.14-19 - Modernize spec file * Mon Jun 05 2017 Jitka Plesnikova - 0.14-18 - Perl 5.26 rebuild * Thu May 18 2017 Jitka Plesnikova - 0.14-17 - Fix building on Perl without '.' in @INC * Sat Feb 11 2017 Fedora Release Engineering - 0.14-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon May 16 2016 Jitka Plesnikova - 0.14-15 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.14-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.14-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.14-12 - Perl 5.22 rebuild * Fri Aug 29 2014 Jitka Plesnikova - 0.14-11 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.14-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.14-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 29 2013 Petr Pisar - 0.14-8 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Petr Pisar - 0.14-5 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jul 25 2011 Marcela Mašláňová - 0.14-3 - add new filter for rpm 4.9 * Wed Jul 20 2011 Petr Sabata - 0.14-2 - Perl mass rebuild * Fri Jun 17 2011 Petr Pisar 0.14-1 - Specfile autogenerated by cpanspec 1.78. - Remove BuildRoot and defattr