source: projects/specs/trunk/p/perl-Test-SubCalls/perl-Test-SubCalls-vl.spec @ 5744

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