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