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