perl-Test-ClassAPI-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Name: perl-Test-ClassAPI
  2. Version: 1.06
  3. Release: 1%{?_dist_release}
  4. Summary: Provides basic first-pass API testing for large class trees
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Test-ClassAPI/
  8. Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-ClassAPI-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  11. BuildArch: noarch
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Config::Tiny) >= 2.00
  14. BuildRequires: perl(Class::Inspector) >= 1.12
  15. BuildRequires: perl(File::Spec) >= 0.83
  16. # Explictly required by lib/Test/ClassAPI.pm
  17. BuildRequires: perl(Params::Util) >= 1.00
  18. %if !%{defined perl_bootstrap}
  19. # For improved tests
  20. BuildRequires: perl(Test::Pod)
  21. # For improved tests
  22. BuildRequires: perl(Test::CPAN::Meta) >= 0.12
  23. BuildRequires: perl(Pod::Simple) >= 3.07
  24. BuildRequires: perl(Test::MinimumVersion) >= 0.008
  25. %endif
  26. %description
  27. Provides basic first-pass API testing for large class trees.
  28. For many APIs with large numbers of classes, it can be very useful to be
  29. able to do a quick once-over to make sure that classes, methods, and
  30. inheritance is correct, before doing more comprehensive testing.
  31. This module aims to provide such a capability.
  32. %prep
  33. %setup -q -n Test-ClassAPI-%{version}
  34. %build
  35. %{__perl} Makefile.PL INSTALLDIRS=vendor
  36. make %{?_smp_mflags}
  37. %install
  38. rm -rf %{buildroot}
  39. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  40. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  41. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  42. chmod -R u+w %{buildroot}/*
  43. %clean
  44. rm -rf %{buildroot}
  45. %check
  46. %if !%{defined perl_bootstrap}
  47. # remove until fix of Perl::MinimalVersion and version.pm
  48. rm -rf t/99_pmv.t
  49. make test AUTOMATED_TESTING=1
  50. %endif
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc Changes LICENSE
  54. %{perl_vendorlib}/Test
  55. %{_mandir}/man3/*
  56. %changelog
  57. * Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.06-1
  58. - initial build for Vine Linux
  59. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-10
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  61. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.06-9
  62. - Perl mass rebuild
  63. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.06-8
  64. - Perl mass rebuild
  65. * Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.06-7
  66. - rebuild with Perl 5.14.1
  67. - use perl_bootstrap macro
  68. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-6
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  70. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.06-5
  71. - 661697 rebuild for fixing problems with vendorach/lib
  72. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.06-4
  73. - Mass rebuild with perl-5.12.0
  74. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.06-3
  75. - rebuild against perl 5.10.1
  76. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-2
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  78. * Mon Jul 20 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.06-1
  79. - Upstream update.
  80. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-4
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  82. * Tue Sep 16 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.05-3
  83. - Reflect perl(Test::CPAN::Meta) >= 0.12 finally being available in Fedora.
  84. * Tue Aug 26 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.05-2
  85. - Bump release.
  86. * Tue Aug 26 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.05-1
  87. - Upstream update.
  88. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.04-4
  89. - Rebuild for perl 5.10 (again)
  90. * Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.04-3
  91. - rebuild for new perl
  92. * Thu Sep 06 2007 Ralf Corsépius <rc040203@freenet.de> - 1.04-2
  93. - Update license tag.
  94. * Mon Mar 12 2007 Ralf Corsépius <rc040203@freenet.de> - 1.04-1
  95. - Upstream update.
  96. - BR: perl(ExtUtils::MakeMaker).
  97. * Fri Feb 16 2007 Ralf Corsépius <rc040203@freenet.de> - 1.03-1
  98. - Upstream update.
  99. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.02-4
  100. - Mass rebuild.
  101. * Wed Mar 01 2006 Ralf Corsépius <rc040203@freenet.de> - 1.02-3
  102. - Rebuild for perl-5.8.8.
  103. * Tue Sep 14 2005 Ralf Corsepius <rc040203@freenet.de> - 1.02-2
  104. - New %%summary.
  105. - Extend %%description.
  106. - Don't put README into %%doc (Redundant to man page).
  107. * Tue Sep 13 2005 Ralf Corsepius <rc040203@freenet.de> - 1.02-1
  108. - Spec file cleanup.
  109. - FE submission.
  110. * Wed Jun 22 2005 Ralf Corsepius <ralf@links2linux.de> - 1.02-0.pm.0
  111. - Initial packman version.