perl-Sub-Exporter-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Name: perl-Sub-Exporter
  2. Version: 0.982
  3. Release: 1%{?_dist_release}
  4. Summary: Sophisticated exporter for custom-built routines
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Sub-Exporter/
  8. Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
  10. BuildArch: noarch
  11. # Build
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. # Module
  14. BuildRequires: perl(Carp)
  15. BuildRequires: perl(Data::OptList) >= 0.1
  16. BuildRequires: perl(Package::Generator)
  17. BuildRequires: perl(Params::Util) >= 0.14
  18. BuildRequires: perl(Sub::Install) >= 0.92
  19. # Test suite
  20. BuildRequires: perl(Test::More)
  21. # Runtime
  22. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  23. Requires: perl(Package::Generator)
  24. %description
  25. Sub::Exporter provides a sophisticated alternative to Exporter.pm. It allows
  26. for renaming, currying/sub-generation, and other cool stuff.
  27. ACHTUNG! If you're not familiar with Exporter or exporting, read
  28. Sub::Exporter::Tutorial first!
  29. %prep
  30. %setup -q -n Sub-Exporter-%{version}
  31. # Fix shellbangs
  32. find t/ -type f -exec sed -i -e 's|^#!perl|#!/usr/bin/perl|' {} \;
  33. %build
  34. perl Makefile.PL INSTALLDIRS=vendor
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. make pure_install DESTDIR=%{buildroot}
  39. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  40. %{_fixperms} %{buildroot}
  41. %check
  42. make test
  43. %clean
  44. rm -rf %{buildroot}
  45. %files
  46. %defattr(-,root,root,-)
  47. %doc Changes README t/
  48. %dir %{perl_vendorlib}/Sub/
  49. %dir %{perl_vendorlib}/Sub/Exporter/
  50. %{perl_vendorlib}/Sub/Exporter.pm
  51. %{perl_vendorlib}/Sub/Exporter/Util.pm
  52. %doc %{perl_vendorlib}/Sub/Exporter/Cookbook.pod
  53. %doc %{perl_vendorlib}/Sub/Exporter/Tutorial.pod
  54. %{_mandir}/man3/Sub::Exporter.3pm*
  55. %{_mandir}/man3/Sub::Exporter::Cookbook.3pm*
  56. %{_mandir}/man3/Sub::Exporter::Tutorial.3pm*
  57. %{_mandir}/man3/Sub::Exporter::Util.3pm*
  58. %changelog
  59. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.982-1
  60. - initial build for Vine Linux
  61. * Sat Mar 3 2012 Paul Howarth <paul@city-fan.org> - 0.982-10
  62. - Explicitly require perl(Package::Generator)
  63. - Make %%files list more explicit
  64. - Mark POD files as %%doc
  65. - Use DESTDIR rather than PERL_INSTALL_ROOT
  66. - Don't need to remove empty directories from buildroot
  67. - Don't use macros for commands
  68. - Use tabs
  69. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-9
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  71. * Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.982-8
  72. - Perl mass rebuild
  73. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-7
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  75. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.982-6
  76. - Rebuild to fix problems with vendorarch/lib (#661697)
  77. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.982-5
  78. - Mass rebuild with perl-5.12.0
  79. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.982-4
  80. - Rebuild against perl 5.10.1
  81. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-3
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  83. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-2
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  85. * Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.982-1
  86. - Update to 0.982
  87. * Sun Oct 26 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.981-1
  88. - Update to 0.981
  89. * Thu Oct 23 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.980-1
  90. - Update to 0.980
  91. * Mon Jun 30 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.979-1
  92. - Update to 0.979
  93. - Drop BR's on: perl(Test::Pod::Coverage), perl(Test::Pod)
  94. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.978-2
  95. - Rebuild for perl 5.10 (again)
  96. * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.978-1
  97. - Update to 0.978
  98. - Fix license tag
  99. - Rebuild for new perl
  100. * Thu Aug 09 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.975-1
  101. - Update to 0.975
  102. * Fri Jun 01 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.974-1
  103. - Update to 0.974
  104. * Sat Dec 09 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.972-1
  105. - Update to 0.972
  106. * Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.970-2
  107. - Bump
  108. * Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.970-1
  109. - Specfile autogenerated by cpanspec 1.69.1