Update to 1.10

- New upstream release 1.10
  - Switch packaging to Dist::Zilla, which makes the distribution installable
    again on perl 5.27.7 (CPAN RT#123867)
- This release by ETHER ⇒ update source URL
- Use %license where possible
- Enhance %description
- Drop EL-5 support
  - Drop legacy BuildRoot: and Group: tags
  - Drop redundant buildroot cleaning
epel9
Paul Howarth 7 years ago
parent 32dfa1293b
commit b2486bcdbc

1
.gitignore vendored

@ -1 +1,2 @@
Test-SubCalls-1.09.tar.gz Test-SubCalls-1.09.tar.gz
/Test-SubCalls-1.10.tar.gz

@ -1,68 +1,79 @@
Name: perl-Test-SubCalls Name: perl-Test-SubCalls
Version: 1.09 Version: 1.10
Release: 31%{?dist} Release: 1%{?dist}
Summary: Track the number of times subs are called Summary: Track the number of times subs are called
Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-SubCalls/ URL: http://search.cpan.org/dist/Test-SubCalls/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-SubCalls-%{version}.tar.gz
# Fix building on Perl without "." in @INC, CPAN RT#120411
Patch0: Test-SubCalls-1.09-inc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Cwd) BuildRequires: perl%{?fedora:-interpreter}
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.80 BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Hook::LexWrap) >= 0.20 BuildRequires: perl(Hook::LexWrap) >= 0.20
BuildRequires: perl(lib) BuildRequires: perl(strict)
BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester) >= 1.02
BuildRequires: perl(Test::More) >= 0.42 BuildRequires: perl(Test::More) >= 0.42
# Release tests include circular dependencies, so don't do them when bootstrapping: BuildRequires: perl(vars)
# Test::MinimumVersion -> Perl::MinimumVersion -> perl-PPI (needs Test::SubCalls to build) # Test Suite
%if 0%{!?perl_bootstrap:1} BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Pod::Simple) >= 3.07 BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::CPAN::Meta) # Optional Tests
BuildRequires: perl(Test::MinimumVersion) >= 0.008 BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Test::Pod) >= 1.26 # Dependencies
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
There is a number of different situations (like testing caching code) where There are a number of different situations (like testing caching code) where
you want to do a number of tests, and then verify that some underlying you want to want to do a number of tests, and then verify that some underlying
subroutine deep within the code was called a specific number of times. subroutine deep within the code was called a specific number of times. This
module provides a number of functions for doing testing in this way, in
association with your normal Test::More (or similar) test scripts.
%prep %prep
%setup -q -n Test-SubCalls-%{version} %setup -q -n Test-SubCalls-%{version}
%patch0 -p0
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=%{buildroot}
make pure_install DESTDIR=$RPM_BUILD_ROOT find %{buildroot} -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %{_fixperms} -c %{buildroot}
%{_fixperms} $RPM_BUILD_ROOT
%check %check
make test %{!?perl_bootstrap:AUTOMATED_TESTING=1} make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%doc Changes LICENSE README %if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/Test/ %{perl_vendorlib}/Test/
%{_mandir}/man3/Test::SubCalls.3pm* %{_mandir}/man3/Test::SubCalls.3*
%changelog %changelog
* Tue Jan 2 2018 Paul Howarth <paul@city-fan.org> - 1.10-1
- Update to 1.10
- Switch packaging to Dist::Zilla, which makes the distribution installable
again on perl 5.27.7 (CPAN RT#123867)
- This release by ETHER ⇒ update source URL
- Use %%license where possible
- Enhance %%description
- Drop EL-5 support
- Drop legacy BuildRoot: and Group: tags
- Drop redundant buildroot cleaning
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-31 * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
@ -158,7 +169,7 @@ rm -rf $RPM_BUILD_ROOT
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4 * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
- 661697 rebuild for fixing problems with vendorach/lib - Rebuild to fix problems with vendorarch/lib (#661697)
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3 * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0

@ -1 +1 @@
975a9fe8d93ef0298fc1bca8f03166e1 Test-SubCalls-1.09.tar.gz SHA512 (Test-SubCalls-1.10.tar.gz) = 67c64eeb9dbf7ed2f5fd4461316ee44cba4f503c6b822a5fb8c3f100c3d4de7ac09058afc0cdf355549829d8e412d1919bc64a1f3030f16f38775b029936a4f9

Loading…
Cancel
Save