perl-Test-MockObject-vl.spec 4.7 KB

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