perl-Test-SubCalls-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. %define perl_bootstrap 1
  2. Name: perl-Test-SubCalls
  3. Version: 1.10
  4. Release: 1%{?_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)
  13. BuildRequires: perl(Hook::LexWrap)
  14. BuildRequires: perl(Test::Builder::Tester)
  15. BuildRequires: perl(Test::More)
  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)
  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)
  25. BuildRequires: perl(Test::MinimumVersion)
  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. %license LICENSE
  53. %doc Changes README
  54. %{perl_vendorlib}/Test/
  55. %{_mandir}/man3/*.3pm*
  56. %changelog
  57. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.10-1
  58. - new upstream release.
  59. - rebuilt with perl-5.26.
  60. * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.09-4
  61. - rebuilt with perl 5.16.3
  62. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-3
  63. - rebuild
  64. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-2
  65. - undefine perl_bootstrap this time
  66. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1
  67. - initial build for Vine Linux
  68. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-7
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  70. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.09-6
  71. - Perl mass rebuild
  72. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-5
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  74. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
  75. - 661697 rebuild for fixing problems with vendorach/lib
  76. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3
  77. - Mass rebuild with perl-5.12.0
  78. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-2
  79. - rebuild against perl 5.10.1
  80. * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-1
  81. - update to new upstream release
  82. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-3
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  84. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-2
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  86. * Sun Oct 05 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
  87. - Upstream update.
  88. - Activate AUTOMATED_TESTING.
  89. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-3
  90. - Rebuild for perl 5.10 (again)
  91. * Sat Jan 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-2
  92. - rebuild for new perl
  93. * Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-1
  94. - bump to 1.07
  95. - license fix
  96. * Fri May 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1
  97. - Update to 1.06.
  98. * Tue Apr 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
  99. - First build.