perl-Sub-Name-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Only need manual requires for "use base XXX;" prior to rpm 4.9
  2. %global rpm49 %(rpm --version | perl -pi -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e')
  3. Name: perl-Sub-Name
  4. Version: 0.05
  5. Release: 1%{?_dist_release}
  6. Summary: Name - or rename - a sub
  7. License: GPL+ or Artistic
  8. Group: Development/Libraries
  9. URL: http://search.cpan.org/dist/Sub-Name/
  10. Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Sub-Name-%{version}.tar.gz
  11. Patch0: Sub-Name-0.05-cpan50524.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
  13. BuildRequires: perl(base)
  14. BuildRequires: perl(DynaLoader)
  15. BuildRequires: perl(Exporter)
  16. BuildRequires: perl(ExtUtils::MakeMaker)
  17. BuildRequires: perl(strict)
  18. BuildRequires: perl(Test::More)
  19. BuildRequires: perl(warnings)
  20. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  21. %if ! %{rpm49}
  22. Requires: perl(DynaLoader)
  23. Requires: perl(Exporter)
  24. %endif
  25. # Don't "provide" private perl objects
  26. %{?perl_default_filter}
  27. %description
  28. This module allows one to "name" or rename subroutines, including anonymous
  29. ones.
  30. Note that this is mainly for aid in debugging; you still cannot call the sub
  31. by the new name (without some deep magic).
  32. %prep
  33. %setup -q -n Sub-Name-%{version}
  34. # Copy the contents of the %%DB::sub entry if it exists (CPAN RT#50524)
  35. %patch0 -p1
  36. %build
  37. perl Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}"
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf %{buildroot}
  41. make pure_install DESTDIR=%{buildroot}
  42. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  43. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  44. find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
  45. %{_fixperms} %{buildroot}
  46. %check
  47. make test
  48. %clean
  49. rm -rf %{buildroot}
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc Changes README
  53. %{perl_vendorarch}/auto/Sub/
  54. %{perl_vendorarch}/Sub/
  55. %{_mandir}/man3/Sub::Name.3pm*
  56. %changelog
  57. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
  58. - initial build for Vine Linux
  59. * Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 0.05-6
  60. - Add patch for CPAN RT#50524 (copy contents of %%DB::sub entry if it exists)
  61. - Reinstate compatibility with old distributions like EL-5
  62. - Add BuildRoot definition
  63. - Clean buildroot in %%install
  64. - Restore %%clean section
  65. - Restore %%defattr
  66. - Don't use + to terminate find -exec commands
  67. - Spec clean-up
  68. - Make %%files list more explicit
  69. - Use DESTDIR rather than PERL_INSTALL_ROOT
  70. - Don't use macros for commands
  71. - Use tabs
  72. - Add buildreqs for Perl core modules that might be dual-lived
  73. - Explicit requires for "use base XXX;" only required prior to rpm 4.9
  74. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-5
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  76. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.05-4
  77. - Perl mass rebuild
  78. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  80. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.05-2
  81. - Rebuild to fix problems with vendorarch/lib (#661697)
  82. * Sat Dec 18 2010 Iain Arnell <iarnell@gmail.com> - 0.05-1
  83. - Update to latest upstream version
  84. - Clean up spec for modern rpmbuild
  85. - BR perl(Test::More)
  86. - Requires perl(DynaLoader) and perl(Exporter)
  87. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-6
  88. - Mass rebuild with perl-5.12.0
  89. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.04-5
  90. - Rebuild against perl 5.10.1
  91. * Thu Aug 27 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-4
  92. - Filtering errant private provides
  93. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  95. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-2
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  97. * Sun Aug 03 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
  98. - Update to 0.04
  99. * Sat Mar 15 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.03-1
  100. - Update to 0.03
  101. * Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-5
  102. - Rebuild for new perl
  103. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.02-4.1
  104. - Autorebuild for GCC 4.3
  105. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-3.1
  106. - Correct license tag
  107. - Add BR: perl(ExtUtils::MakeMaker)
  108. * Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-3
  109. - Bump
  110. * Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-2
  111. - Bump
  112. * Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
  113. - Specfile autogenerated by cpanspec 1.69.1