perl-Hook-LexWrap-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Name: perl-Hook-LexWrap
  2. Version: 0.22
  3. Release: 1%{?_dist_release}
  4. Summary: Lexically scoped subroutine wrappers
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Hook-LexWrap/
  8. Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Hook-LexWrap-%{version}.zip
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More), perl(Test::Pod)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: shaolin
  16. %description
  17. Hook::LexWrap allows you to install a pre- or post-wrapper (or both)
  18. around an existing subroutine. Unlike other modules that provide this
  19. capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap
  20. implements wrappers in such a way that the standard `caller' function
  21. works correctly within the wrapped subroutine.
  22. %prep
  23. %setup -q -n Hook-LexWrap-%{version}
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  30. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  31. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  32. chmod -R u+w $RPM_BUILD_ROOT/*
  33. %check
  34. make test
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc Changes README
  40. %{perl_vendorlib}/Hook/
  41. %{_mandir}/man3/*.3pm*
  42. %changelog
  43. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.22-1
  44. - initial build for Vine Linux
  45. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-9
  46. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  47. * Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.22-8
  48. - Perl mass rebuild
  49. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-7
  50. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  51. * Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-6
  52. - 661697 rebuild for fixing problems with vendorach/lib
  53. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-5
  54. - Mass rebuild with perl-5.12.0
  55. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.22-4
  56. - rebuild against perl 5.10.1
  57. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  59. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  61. * Sat Feb 21 2009 Ralf Corsepius <corsepiu@fedoraproject.org> - 0.22-1
  62. - Upstream update.
  63. - Reflect upstream having fixed CPAN RT#38892:
  64. Remove Hook-LexWrap-0.21-cpan-rt-38892.diff.
  65. - Reflect upstream having fixed permissions.
  66. * Mon Nov 10 2008 Paul Howarth <paul@city-fan.org> - 0.21-1
  67. - Update to 0.21
  68. - New upstream maintainer => new source URL
  69. - Add buildreqs perl(Test::More) and perl(Test::Pod)
  70. - Update patch for CPAN RT#38892 to apply without fuzz
  71. - Fix argument order for find with -depth
  72. * Mon Oct 06 2008 Ralf Corsepius <corsepiu@fedoraproject.org> - 0.20-6
  73. - Add Hook-LexWrap-0.20-cpan-rt-38892.diff to fix
  74. http://rt.cpan.org/Public/Bug/Display.html?id=38892
  75. (Bugs shows while building rt3).
  76. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.20-5
  77. - Rebuild for perl 5.10 (again)
  78. * Sat Jan 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.20-4.2
  79. - rebuild for new perl
  80. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.20-4.1
  81. - correct license tag
  82. - add BR: perl(ExtUtils::MakeMaker)
  83. * Fri Sep 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.20-4
  84. - Rebuild for FC6.
  85. * Fri Feb 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.20-3
  86. - Rebuild for FC5 (perl 5.8.8).
  87. * Fri Sep 9 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.20-2
  88. - Comment about license files location.
  89. * Fri Aug 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.20-1
  90. - First build.