perl-Test-SubCalls-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. %define perl_bootstrap 1
  2. Name: perl-Test-SubCalls
  3. Version: 1.09
  4. Release: 4%{?_dist_release}
  5. Summary: Track the number of times subs are called
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://search.cpan.org/dist/Test-SubCalls/
  9. Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
  13. BuildRequires: perl(Hook::LexWrap) >= 0.20
  14. BuildRequires: perl(Test::Builder::Tester) >= 1.02
  15. BuildRequires: perl(Test::More) >= 0.60
  16. #BuildRequires: perl(Class::Inspector)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. %if 0%{!?perl_bootstrap:1}
  19. # for improved tests
  20. BuildRequires: perl(Test::CPAN::Meta) >= 0.12
  21. # FIXME: Fedora's Pod::Simple is outdated
  22. # BuildRequires: perl(Pod::Simple) >= 3.07
  23. BuildRequires: perl(Pod::Simple)
  24. BuildRequires: perl(Test::Pod) >= 1.26
  25. BuildRequires: perl(Test::MinimumVersion) >= 0.008
  26. %endif
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. Packager: shaolin
  30. %description
  31. There are a number of different situations (like testing cacheing
  32. code) where you want to want to do a number of tests, and then verify
  33. that some underlying subroutine deep within the code was called a
  34. specific number of times.
  35. %prep
  36. %setup -q -n Test-SubCalls-%{version}
  37. %build
  38. %{__perl} Makefile.PL INSTALLDIRS=vendor
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  43. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  44. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  45. chmod -R u+w $RPM_BUILD_ROOT/*
  46. %check
  47. make test AUTOMATED_TESTING=1
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc Changes LICENSE README
  53. %{perl_vendorlib}/Test/
  54. %{_mandir}/man3/*.3pm*
  55. %changelog
  56. * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.09-4
  57. - rebuilt with perl 5.16.3
  58. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-3
  59. - rebuild
  60. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-2
  61. - undefine perl_bootstrap this time
  62. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1
  63. - initial build for Vine Linux
  64. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-7
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  66. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.09-6
  67. - Perl mass rebuild
  68. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-5
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  70. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
  71. - 661697 rebuild for fixing problems with vendorach/lib
  72. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3
  73. - Mass rebuild with perl-5.12.0
  74. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-2
  75. - rebuild against perl 5.10.1
  76. * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-1
  77. - update to new upstream release
  78. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-3
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  80. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-2
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  82. * Mon Oct 05 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
  83. - Upstream update.
  84. - Activate AUTOMATED_TESTING.
  85. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-3
  86. - Rebuild for perl 5.10 (again)
  87. * Sat Jan 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-2
  88. - rebuild for new perl
  89. * Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-1
  90. - bump to 1.07
  91. - license fix
  92. * Fri May 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1
  93. - Update to 1.06.
  94. * Tue Apr 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
  95. - First build.