perl-Test-MockObject-vl.spec 4.4 KB

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