source: projects/specs/trunk/p/perl-Test-MockModule/perl-Test-MockModule-vl.spec @ 5699

Revision 5699, 2.3 KB checked in by shaolin, 12 years ago (diff)
Line 
1%define pkgname Test-MockModule
2
3Name:           perl-%{pkgname}
4Version:        0.05
5Release:        1%{?_dist_release}
6Group:          Development/Libraries
7License:        Artistic or GPL+
8URL:            http://search.cpan.org/dist/Test-MockModule/
9Source0:        http://search.cpan.org/CPAN/authors/id/S/SI/SIMONFLK/Test-MockModule-%{version}.tar.gz
10BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12BuildArch:      noarch
13BuildRequires:  perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage)
14Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
15
16Vendor:         Project Vine
17Distribution:   Vine Linux
18Packager:       shaolin
19
20Summary:        Override subroutines in a module for unit testing
21
22%description
23%{summary}.
24
25%prep
26%setup -q -n Test-MockModule-%{version}
27
28%build
29%{__perl} Makefile.PL
30make
31
32%install
33rm -rf ${RPM_BUILD_ROOT}
34make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT}
35find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';'
36find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';'
37chmod -R u+w ${RPM_BUILD_ROOT}/*
38
39%check
40make test
41
42%clean
43rm -rf ${RPM_BUILD_ROOT}
44
45%files
46%defattr(-,root,root,-)
47%doc Changes README
48%{perl_sitelib}/Test/MockModule.pm
49%{_mandir}/man3/*.3*
50
51
52%changelog
53* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
54- initial build for Vine Linux
55
56* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
57- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
58
59* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
60- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
61
62* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
63- Rebuild for perl 5.10 (again)
64
65* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
66- rebuild for new perl
67
68* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
69- license tag fix
70
71* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
72- bump for fc6
73
74* Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
75- add missing BuildRequires
76
77* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
78- cleanups
79
80* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
81- Initial package for Fedora Extras
Note: See TracBrowser for help on using the repository browser.