[5700] | 1 | %define pkgname Test-MockObject |
---|
| 2 | |
---|
| 3 | Name: perl-%{pkgname} |
---|
[9004] | 4 | Version: 1.20140408 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[5700] | 6 | Summary: Perl extension for emulating troublesome interfaces |
---|
| 7 | |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: Artistic or GPL+ |
---|
| 10 | URL: http://search.cpan.org/dist/Test-MockObject/ |
---|
| 11 | Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/Test-MockObject-%{version}.tar.gz |
---|
[9004] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[5700] | 13 | |
---|
| 14 | BuildArch: noarch |
---|
| 15 | BuildRequires: perl(CGI) |
---|
[9004] | 16 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 |
---|
[5700] | 17 | BuildRequires: perl(Test::Exception) |
---|
[9004] | 18 | BuildRequires: perl(Test::More) >= 0.98 |
---|
| 19 | BuildRequires: perl(Test::Warn) >= 0.23 |
---|
[5700] | 20 | BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) |
---|
[9004] | 21 | BuildRequires: perl(UNIVERSAL::can) >= 1.20110617 |
---|
| 22 | BuildRequires: perl(UNIVERSAL::isa) >= 1.20110614 |
---|
[5700] | 23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 24 | |
---|
| 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
| 27 | Packager: shaolin |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | Test::MockObject is a highly polymorphic testing object, capable of |
---|
| 31 | looking like all sorts of objects. This makes white-box testing much |
---|
| 32 | easier, as you can concentrate on what the code being tested sends to |
---|
| 33 | and receives from the mocked object, instead of worrying about faking |
---|
| 34 | up your own data. (Another option is not to test difficult things. |
---|
| 35 | Now you have no excuse.) |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q -n Test-MockObject-%{version} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %build |
---|
[9004] | 43 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 44 | make %{?_smp_mflags} |
---|
[5700] | 45 | |
---|
| 46 | |
---|
| 47 | %install |
---|
[9004] | 48 | make pure_install DESTDIR=%{buildroot} |
---|
| 49 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 50 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
[5798] | 51 | %{_fixperms} %{buildroot}/* |
---|
[5700] | 52 | |
---|
| 53 | |
---|
| 54 | %check |
---|
[9004] | 55 | PERL_RUN_ALL_TESTS=1 make test |
---|
[5700] | 56 | |
---|
| 57 | %clean |
---|
[5798] | 58 | rm -rf %{buildroot} |
---|
[5700] | 59 | |
---|
| 60 | |
---|
| 61 | %files |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %doc Changes README |
---|
[5798] | 64 | %{perl_vendorlib}/Test/*.pm |
---|
| 65 | %dir %{perl_vendorlib}/Test/MockObject |
---|
| 66 | %{perl_vendorlib}/Test/MockObject/*.pm |
---|
[5700] | 67 | %{_mandir}/man3/*.3pm* |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %changelog |
---|
[9004] | 71 | * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.20140408-1 |
---|
| 72 | - updated to 1.20140408 |
---|
| 73 | - build with perl 5.16.3 |
---|
| 74 | |
---|
[5798] | 75 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-2 |
---|
| 76 | - rebuild |
---|
| 77 | |
---|
[5700] | 78 | * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1 |
---|
| 79 | - initial package for Vine Linux |
---|
| 80 | |
---|
| 81 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-9 |
---|
| 82 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 83 | |
---|
| 84 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-8 |
---|
| 85 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 86 | |
---|
| 87 | * Thu Dec 09 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.09-7 |
---|
| 88 | - Add BR: perl(CGI) (Fix FTBFS: BZ 660972). |
---|
| 89 | |
---|
| 90 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-6 |
---|
| 91 | - Mass rebuild with perl-5.12.0 |
---|
| 92 | |
---|
| 93 | * Thu Feb 4 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-5 |
---|
| 94 | - 552253 merge review |
---|
| 95 | |
---|
| 96 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-4 |
---|
| 97 | - rebuild against perl 5.10.1 |
---|
| 98 | |
---|
| 99 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-3 |
---|
| 100 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 101 | |
---|
| 102 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-2 |
---|
| 103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 104 | |
---|
| 105 | * Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.09-1 |
---|
| 106 | - update to 1.09 |
---|
| 107 | |
---|
| 108 | * Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.08-2 |
---|
| 109 | - rebuild for new perl |
---|
| 110 | |
---|
| 111 | * Fri Jun 29 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-1 |
---|
| 112 | - Update to 1.08. |
---|
| 113 | |
---|
| 114 | * Thu Oct 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.07-1 |
---|
| 115 | - Update to 1.07. |
---|
| 116 | |
---|
| 117 | * Fri Apr 21 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1 |
---|
| 118 | - Update to 1.06. |
---|
| 119 | |
---|
| 120 | * Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.05-1 |
---|
| 121 | - Update to 1.05. |
---|
| 122 | |
---|
| 123 | * Thu Mar 30 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.04-1 |
---|
| 124 | - Update to 1.04. |
---|
| 125 | - Makefile.PL -> Build.PL. |
---|
| 126 | |
---|
| 127 | * Mon Mar 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1 |
---|
| 128 | - Update to 1.03. |
---|
| 129 | |
---|
| 130 | * Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.02-1 |
---|
| 131 | - Update to 1.02. |
---|
| 132 | |
---|
| 133 | * Fri Jul 15 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.00-1 |
---|
| 134 | - Update to 1.00. |
---|
| 135 | |
---|
| 136 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.15-3 |
---|
| 137 | - rebuilt |
---|
| 138 | |
---|
| 139 | * Tue Dec 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-2 |
---|
| 140 | - Build requires Test::Simple >= 0.44 (bug 2324). |
---|
| 141 | |
---|
| 142 | * Wed Dec 01 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-0.fdr.1 |
---|
| 143 | - Update to 0.15. |
---|
| 144 | |
---|
| 145 | * Tue May 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.14-0.fdr.1 |
---|
| 146 | - Update to 0.14. |
---|
| 147 | - Require perl >= 1:5.6.1 for vendor install dir support. |
---|
| 148 | - Use pure_install to avoid perllocal.pod workarounds. |
---|
| 149 | - Moved make test to section %%check. |
---|
| 150 | |
---|
| 151 | * Wed Nov 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.1 |
---|
| 152 | - First build. |
---|