# We need to patch the test suite if we have an old version of Test::More %global old_test_more %(perl -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.88 ? 1 : 0;' 2>/dev/null || echo 0) Name: perl-Test-CheckChanges Summary: Check that the Changes file matches the distribution Version: 0.14 Release: 19%{?dist} License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-CheckChanges/ Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAM/Test-CheckChanges-%{version}.tar.gz Patch0: Test-CheckChanges-0.14-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Module Build BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Module Runtime BuildRequires: perl(Cwd) BuildRequires: perl(Carp) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Glob) BuildRequires: perl(File::Spec) BuildRequires: perl(Module::Build::Version) BuildRequires: perl(Test::Builder) # Test Suite BuildRequires: perl(English) BuildRequires: perl(Test::More) # Optional Tests BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.00 %if "%{?rhel}" != "5" BuildRequires: perl(Perl::Critic::Policy::NamingConventions::Capitalization) BuildRequires: perl(Perl::Critic::Policy::ValuesAndExpressions::ProhibitMagicNumbers) BuildRequires: perl(Test::Perl::Critic) %endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Module::Build::Version) %description This module checks that your Changes file has an entry for the current version of the Module being tested. The version information for the distribution being tested is taken out of the Build data, or if that is not found, out of the Makefile. It then attempts to open, in order, a file with the name Changes or CHANGES. The Changes file is then parsed for version numbers. If one and only one of the version numbers matches, the test passes; otherwise the test fails. A message with the current version is printed if the test passes; otherwise diagnostic messages are printed to help explain the failure. %prep %setup -q -n Test-CheckChanges-%{version} # Patch test suite to work with old Test::More versions %if %{old_test_more} %patch0 -p1 %endif %build perl Build.PL --installdirs=vendor ./Build %install rm -rf %{buildroot} ./Build install --destdir=%{buildroot} --create_packlist=0 %{_fixperms} %{buildroot} %check TEST_AUTHOR=1 ./Build test %clean rm -rf %{buildroot} %files %doc Changes README examples/ %{perl_vendorlib}/Test/ %{_mandir}/man3/Test::CheckChanges.3pm* %changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.14-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jun 06 2017 Jitka Plesnikova - 0.14-18 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.14-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon May 16 2016 Jitka Plesnikova - 0.14-16 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.14-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.14-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.14-13 - Perl 5.22 rebuild * Fri Aug 29 2014 Jitka Plesnikova - 0.14-12 - Perl 5.20 rebuild * Thu Aug 28 2014 Paul Howarth - 0.14-11 - Specify all dependencies (#1134856) - Drop %%defattr, redundant since rpm 4.4 * 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 * Wed Jul 31 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 * Wed Jun 20 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 * Wed Jul 20 2011 Petr Sabata - 0.14-3 - Perl mass rebuild * Fri May 6 2011 Paul Howarth - 0.14-2 - Sanitize for Fedora submission * Fri May 6 2011 Paul Howarth - 0.14-1 - Initial RPM version