Blame SPECS/perl-Test-SubCalls.spec

bdebd5
Name:           perl-Test-SubCalls
bdebd5
Version:        1.09
afcaed
Release:        14%{?dist}
bdebd5
Summary:        Track the number of times subs are called
bdebd5
Group:          Development/Libraries
bdebd5
License:        GPL+ or Artistic
bdebd5
URL:            http://search.cpan.org/dist/Test-SubCalls/
bdebd5
Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz
bdebd5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
bdebd5
BuildArch:      noarch
bdebd5
BuildRequires:  perl(Cwd)
bdebd5
BuildRequires:  perl(Exporter)
bdebd5
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
bdebd5
BuildRequires:  perl(File::Path)
bdebd5
BuildRequires:  perl(File::Spec) >= 0.80
bdebd5
BuildRequires:  perl(File::Spec::Functions)
bdebd5
BuildRequires:  perl(Hook::LexWrap) >= 0.20
bdebd5
BuildRequires:  perl(Test::Builder)
bdebd5
BuildRequires:  perl(Test::Builder::Tester) >= 1.02
bdebd5
BuildRequires:  perl(Test::More) >= 0.42
bdebd5
# Release tests include circular dependencies, so don't do them when bootstrapping:
bdebd5
# Test::MinimumVersion -> Perl::MinimumVersion -> perl-PPI (needs Test::SubCalls to build)
bdebd5
%if 0%{!?perl_bootstrap:1}
bdebd5
BuildRequires:  perl(Pod::Simple) >= 3.07
bdebd5
BuildRequires:  perl(Test::CPAN::Meta)
bdebd5
BuildRequires:  perl(Test::MinimumVersion) >= 0.008
bdebd5
BuildRequires:  perl(Test::Pod) >= 1.26
bdebd5
%endif
bdebd5
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
bdebd5
bdebd5
%description
bdebd5
There is a number of different situations (like testing caching code) where
bdebd5
you want to do a number of tests, and then verify that some underlying
bdebd5
subroutine deep within the code was called a specific number of times.
bdebd5
bdebd5
%prep
bdebd5
%setup -q -n Test-SubCalls-%{version}
bdebd5
bdebd5
%build
bdebd5
perl Makefile.PL INSTALLDIRS=vendor
bdebd5
make %{?_smp_mflags}
bdebd5
bdebd5
%install
bdebd5
rm -rf $RPM_BUILD_ROOT
bdebd5
make pure_install DESTDIR=$RPM_BUILD_ROOT
bdebd5
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
bdebd5
%{_fixperms} $RPM_BUILD_ROOT
bdebd5
bdebd5
%check
bdebd5
make test %{!?perl_bootstrap:AUTOMATED_TESTING=1}
bdebd5
bdebd5
%clean
bdebd5
rm -rf $RPM_BUILD_ROOT
bdebd5
bdebd5
%files
bdebd5
%doc Changes LICENSE README
bdebd5
%{perl_vendorlib}/Test/
bdebd5
%{_mandir}/man3/Test::SubCalls.3pm*
bdebd5
bdebd5
%changelog
afcaed
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.09-14
afcaed
- Mass rebuild 2013-12-27
afcaed
bdebd5
* Wed Nov 21 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-13
bdebd5
- Update description
bdebd5
bdebd5
* Wed Oct 24 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-12
bdebd5
- Specify all dependencies.
bdebd5
bdebd5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-11
bdebd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bdebd5
bdebd5
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.09-10
bdebd5
- Perl 5.16 re-rebuild of bootstrapped packages
bdebd5
bdebd5
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 1.09-9
bdebd5
- Perl 5.16 rebuild
bdebd5
bdebd5
* Thu Apr  5 2012 Paul Howarth <paul@city-fan.org> - 1.09-8
bdebd5
- Don't run the release tests when bootstrapping, to avoid circular build deps
bdebd5
- Sync buildreqs with upstream:
bdebd5
  - BR: perl(Exporter)
bdebd5
  - BR: perl(ExtUtils::MakeMaker) ≥ 6.42
bdebd5
  - BR: perl(File::Spec) ≥ 0.80
bdebd5
  - Bump perl(Pod::Simple) version requirement to at least 3.07
bdebd5
  - BR: perl(Test::Builder)
bdebd5
  - Drop perl(Test::More) version requirement to a minimum of 0.42
bdebd5
- Make %%files list more explicit
bdebd5
- Drop %%defattr, redundant since rpm 4.4
bdebd5
- Use %%{_fixperms} macro rather than our own chmod incantation
bdebd5
- Don't need to remove empty directories from the buildroot
bdebd5
- Use DESTDIR rather than PERL_INSTALL_ROOT
bdebd5
- Don't use macros for commands
bdebd5
bdebd5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-7
bdebd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bdebd5
bdebd5
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.09-6
bdebd5
- Perl mass rebuild
bdebd5
bdebd5
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-5
bdebd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bdebd5
bdebd5
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
bdebd5
- 661697 rebuild for fixing problems with vendorach/lib
bdebd5
bdebd5
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3
bdebd5
- Mass rebuild with perl-5.12.0
bdebd5
bdebd5
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-2
bdebd5
- rebuild against perl 5.10.1
bdebd5
bdebd5
* Wed Oct  7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-1
bdebd5
- update to new upstream release
bdebd5
bdebd5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-3
bdebd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bdebd5
bdebd5
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-2
bdebd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bdebd5
bdebd5
* Mon Oct 05 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
bdebd5
- Upstream update.
bdebd5
- Activate AUTOMATED_TESTING.
bdebd5
bdebd5
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-3
bdebd5
- Rebuild for perl 5.10 (again)
bdebd5
bdebd5
* Sat Jan 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-2
bdebd5
- rebuild for new perl
bdebd5
bdebd5
* Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-1
bdebd5
- bump to 1.07
bdebd5
- license fix
bdebd5
bdebd5
* Fri May 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1
bdebd5
- Update to 1.06.
bdebd5
bdebd5
* Tue Apr 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
bdebd5
- First build.