Blame SPECS/perl-Test-SubCalls.spec

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