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.10.tar.gz

@ -1,68 +1,79 @@
Name: perl-Test-SubCalls
Version: 1.09
Release: 31%{?dist}
Version: 1.10
Release: 1%{?dist}
Summary: Track the number of times subs are called
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-SubCalls/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/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)
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-SubCalls-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(Cwd)
BuildRequires: perl%{?fedora:-interpreter}
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Hook::LexWrap) >= 0.20
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester) >= 1.02
BuildRequires: perl(Test::More) >= 0.42
# Release tests include circular dependencies, so don't do them when bootstrapping:
# Test::MinimumVersion -> Perl::MinimumVersion -> perl-PPI (needs Test::SubCalls to build)
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Pod::Simple) >= 3.07
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::MinimumVersion) >= 0.008
BuildRequires: perl(Test::Pod) >= 1.26
%endif
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Test::Builder::Tester)
# Optional Tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
There is a number of different situations (like testing caching code) where
you 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.
There are a number of different situations (like testing caching code) where
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. 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
%setup -q -n Test-SubCalls-%{version}
%patch0 -p0
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} $RPM_BUILD_ROOT
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
make test %{!?perl_bootstrap:AUTOMATED_TESTING=1}
%clean
rm -rf $RPM_BUILD_ROOT
make test
%files
%doc Changes LICENSE README
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::SubCalls.3pm*
%{_mandir}/man3/Test::SubCalls.3*
%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
- 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
* 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
- 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