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

Revision 5798, 2.4 KB checked in by shaolin, 12 years ago (diff)
  • rebuild
Line 
1%define pkgname Test-MockModule
2
3Name:           perl-%{pkgname}
4Version:        0.05
5Release:        2%{?_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 INSTALLDIRS=vendor
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_vendorlib}/Test/MockModule.pm
49%{_mandir}/man3/*.3*
50
51
52%changelog
53* Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-2
54- rebuild
55
56* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
57- initial build for Vine Linux
58
59* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
60- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
61
62* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
63- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
64
65* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
66- Rebuild for perl 5.10 (again)
67
68* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
69- rebuild for new perl
70
71* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
72- license tag fix
73
74* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
75- bump for fc6
76
77* Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
78- add missing BuildRequires
79
80* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
81- cleanups
82
83* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
84- Initial package for Fedora Extras
Note: See TracBrowser for help on using the repository browser.