perl-UNIVERSAL-isa-vl.spec 4.1 KB

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