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