1 | %define perl_bootstrap 1 |
---|
2 | |
---|
3 | Name: perl-Test-SubCalls |
---|
4 | Version: 1.09 |
---|
5 | Release: 4%{?_dist_release} |
---|
6 | Summary: Track the number of times subs are called |
---|
7 | |
---|
8 | Group: Development/Libraries |
---|
9 | License: GPL+ or Artistic |
---|
10 | URL: http://search.cpan.org/dist/Test-SubCalls/ |
---|
11 | Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildArch: noarch |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 |
---|
16 | BuildRequires: perl(Hook::LexWrap) >= 0.20 |
---|
17 | BuildRequires: perl(Test::Builder::Tester) >= 1.02 |
---|
18 | BuildRequires: perl(Test::More) >= 0.60 |
---|
19 | #BuildRequires: perl(Class::Inspector) |
---|
20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
21 | |
---|
22 | %if 0%{!?perl_bootstrap:1} |
---|
23 | # for improved tests |
---|
24 | BuildRequires: perl(Test::CPAN::Meta) >= 0.12 |
---|
25 | # FIXME: Fedora's Pod::Simple is outdated |
---|
26 | # BuildRequires: perl(Pod::Simple) >= 3.07 |
---|
27 | BuildRequires: perl(Pod::Simple) |
---|
28 | BuildRequires: perl(Test::Pod) >= 1.26 |
---|
29 | BuildRequires: perl(Test::MinimumVersion) >= 0.008 |
---|
30 | %endif |
---|
31 | |
---|
32 | Vendor: Project Vine |
---|
33 | Distribution: Vine Linux |
---|
34 | Packager: shaolin |
---|
35 | |
---|
36 | %description |
---|
37 | There are a number of different situations (like testing cacheing |
---|
38 | code) where you want to want to do a number of tests, and then verify |
---|
39 | that some underlying subroutine deep within the code was called a |
---|
40 | specific number of times. |
---|
41 | |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q -n Test-SubCalls-%{version} |
---|
45 | |
---|
46 | |
---|
47 | %build |
---|
48 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
49 | make %{?_smp_mflags} |
---|
50 | |
---|
51 | |
---|
52 | %install |
---|
53 | rm -rf $RPM_BUILD_ROOT |
---|
54 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
55 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
56 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
57 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
58 | |
---|
59 | |
---|
60 | %check |
---|
61 | make test AUTOMATED_TESTING=1 |
---|
62 | |
---|
63 | |
---|
64 | %clean |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | |
---|
67 | |
---|
68 | %files |
---|
69 | %defattr(-,root,root,-) |
---|
70 | %doc Changes LICENSE README |
---|
71 | %{perl_vendorlib}/Test/ |
---|
72 | %{_mandir}/man3/*.3pm* |
---|
73 | |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.09-4 |
---|
77 | - rebuilt with perl 5.16.3 |
---|
78 | |
---|
79 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-3 |
---|
80 | - rebuild |
---|
81 | |
---|
82 | * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-2 |
---|
83 | - undefine perl_bootstrap this time |
---|
84 | |
---|
85 | * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1 |
---|
86 | - initial build for Vine Linux |
---|
87 | |
---|
88 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-7 |
---|
89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
90 | |
---|
91 | * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.09-6 |
---|
92 | - Perl mass rebuild |
---|
93 | |
---|
94 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-5 |
---|
95 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
96 | |
---|
97 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4 |
---|
98 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
99 | |
---|
100 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3 |
---|
101 | - Mass rebuild with perl-5.12.0 |
---|
102 | |
---|
103 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-2 |
---|
104 | - rebuild against perl 5.10.1 |
---|
105 | |
---|
106 | * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-1 |
---|
107 | - update to new upstream release |
---|
108 | |
---|
109 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-3 |
---|
110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
111 | |
---|
112 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-2 |
---|
113 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
114 | |
---|
115 | * Mon Oct 05 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1 |
---|
116 | - Upstream update. |
---|
117 | - Activate AUTOMATED_TESTING. |
---|
118 | |
---|
119 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-3 |
---|
120 | - Rebuild for perl 5.10 (again) |
---|
121 | |
---|
122 | * Sat Jan 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-2 |
---|
123 | - rebuild for new perl |
---|
124 | |
---|
125 | * Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-1 |
---|
126 | - bump to 1.07 |
---|
127 | - license fix |
---|
128 | |
---|
129 | * Fri May 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1 |
---|
130 | - Update to 1.06. |
---|
131 | |
---|
132 | * Tue Apr 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1 |
---|
133 | - First build. |
---|