perl-UNIVERSAL-isa-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define pkgname UNIVERSAL-isa
  2. Name: perl-%{pkgname}
  3. Version: 1.03
  4. Release: 9%{?_dist_release}
  5. Summary: Hack around module authors using UNIVERSAL::isa as a function
  6. Group: Development/Libraries
  7. License: Artistic or GPL+
  8. URL: http://search.cpan.org/dist/UNIVERSAL-isa/
  9. Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/UNIVERSAL-isa-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildArch: noarch
  12. BuildRequires: perl(Module::Build)
  13. BuildRequires: perl(Test::More)
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: shaolin
  18. %description
  19. Whenever you use "isa" in UNIVERSAL as a function, a kitten using
  20. Test::MockObject dies. Normally, the kittens would be helpless, but
  21. if they use UNIVERSAL::isa (the module whose docs you are reading),
  22. the kittens can live long and prosper.
  23. This module replaces UNIVERSAL::isa with a version that makes sure
  24. that if it's called as a function on objects which override isa,
  25. isa will be called on those objects as a method.
  26. In all other cases the real UNIVERSAL::isa is just called directly.
  27. %prep
  28. %setup -q -n UNIVERSAL-isa-%{version}
  29. %{__perl} -pi -e 's{^#!%{__perl}\b}{##!%{__perl}}' lib/UNIVERSAL/isa.pm
  30. %build
  31. %{__perl} Build.PL installdirs=vendor
  32. ./Build
  33. %install
  34. rm -rf %{buildroot}
  35. ./Build install destdir=%{buildroot} create_packlist=0
  36. chmod -R u+w %{buildroot}/*
  37. %check
  38. ./Build test
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc Changes README
  44. %{perl_vendorlib}/UNIVERSAL/
  45. %{_mandir}/man3/*.3pm*
  46. %changelog
  47. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-9
  48. - rebuild
  49. * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-8
  50. - initial build for Vine Linux
  51. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-8
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  53. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-7
  54. - Perl mass rebuild
  55. * Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-6
  56. - Perl 5.14 mass rebuild
  57. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  59. * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-4
  60. - 661697 rebuild for fixing problems with vendorach/lib
  61. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-3
  62. - Mass rebuild with perl-5.12.0
  63. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.03-2
  64. - rebuild against perl 5.10.1
  65. * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-1
  66. - update to new upstream release
  67. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-3
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  69. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  71. * Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-1
  72. - update to 1.01
  73. * Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.06-5
  74. - rebuild for new perl
  75. * Wed Jan 02 2008 Ralf Corsépius <rc040203@freenet.de> - 0.06-4
  76. - Update License-tag.
  77. * Tue Dec 11 2007 Ralf Corsépius <rc040203@freenet.de> - 0.06-3
  78. - Add BR: perl(Test::More).
  79. * Fri Sep 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-2
  80. - Rebuild for FC6.
  81. * Fri Feb 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-1
  82. - Update to 0.06.
  83. - New files: Changes and README.
  84. * Tue Jan 31 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-2
  85. - Source URL correction.
  86. * Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
  87. - First build.