[5699] | 1 | %define pkgname Test-MockModule |
---|
| 2 | |
---|
| 3 | Name: perl-%{pkgname} |
---|
| 4 | Version: 0.05 |
---|
[5798] | 5 | Release: 2%{?_dist_release} |
---|
[5699] | 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}-%{release}-root-%(%{__id_u} -n) |
---|
| 11 | |
---|
| 12 | BuildArch: noarch |
---|
| 13 | BuildRequires: perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage) |
---|
| 14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 15 | |
---|
| 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | Packager: shaolin |
---|
| 19 | |
---|
| 20 | Summary: 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 |
---|
[5798] | 29 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
[5699] | 30 | make |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 34 | make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} |
---|
| 35 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';' |
---|
| 36 | find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 37 | chmod -R u+w ${RPM_BUILD_ROOT}/* |
---|
| 38 | |
---|
| 39 | %check |
---|
| 40 | make test |
---|
| 41 | |
---|
| 42 | %clean |
---|
| 43 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 44 | |
---|
| 45 | %files |
---|
| 46 | %defattr(-,root,root,-) |
---|
| 47 | %doc Changes README |
---|
[5798] | 48 | %{perl_vendorlib}/Test/MockModule.pm |
---|
[5699] | 49 | %{_mandir}/man3/*.3* |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %changelog |
---|
[5798] | 53 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-2 |
---|
| 54 | - rebuild |
---|
| 55 | |
---|
[5699] | 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 |
---|