perl-Hook-LexWrap-vl.spec 4.4 KB

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