Name: perl-File-CheckTree Version: 4.42 Release: 320%{?dist} Summary: Run many file-test checks on a tree License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/File-CheckTree Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/File-CheckTree-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Cwd) BuildRequires: perl(deprecate) BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(if) # Tests: BuildRequires: perl(overload) BuildRequires: perl(Test::More) # Optional tests: # Test::EOL not used # Test::Pod 1.41 not used Requires: perl(deprecate) %description File::CheckTree::validate() routine takes a single multi-line string consisting of directives, each containing a file name plus a file test to try on it. (The file test may also be a "cd", causing subsequent relative file names to be interpreted relative to that directory.) After the file test you may put || die to make it a fatal error if the file test fails. The default is || warn. The file test may optionally have a "!' prepended to test for the opposite condition. If you do a cd and then list some relative file names, you may want to indent them slightly for readability. If you supply your own die() or warn() message, you can use $file to interpolate the file name. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n File-CheckTree-%{version} # Help generators to recognize Perl scripts for F in $(find t/ -name '*.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} # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} # Remove author tests. rm -f %{buildroot}%{_libexecdir}/%{name}/t/release* # CheckTree.pm for tests cp -a lib %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %{_fixperms} %{buildroot}/* %check unset RELEASE_TESTING make test %files %license LICENSE %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 4.42-320 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 4.42-319 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 4.42-318 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 4.42-317 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 15 2022 Michal Josef Špaček - 4.42-316 - Package tests - Simplify build and install phases - Update license to SPDX format * Fri Jul 22 2022 Fedora Release Engineering - 4.42-315 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 4.42-314 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 4.42-313 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 4.42-312 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 4.42-311 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 4.42-310 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 4.42-309 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 4.42-308 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 4.42-307 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 4.42-306 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 4.42-305 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 4.42-304 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Petr Pisar - 4.42-303 - Modernize the spec file * Thu Jun 28 2018 Jitka Plesnikova - 4.42-302 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 4.42-301 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.42-300 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 4.42-299 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.42-298 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 4.42-297 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 4.42-296 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 4.42-295 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 4.42-294 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 4.42-293 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 4.42-292 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 4.42-291 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Petr Pisar - 4.42-290 - Increase release to favour standalone package * Fri Jul 12 2013 Petr Pisar - 4.42-3 - Perl 5.18 rebuild * Tue May 28 2013 Petr Pisar - 4.42-2 - Correct typo in dependencies * Fri Feb 08 2013 Petr Pisar 4.42-1 - Specfile autogenerated by cpanspec 1.78.