[5700] | 1 | %define pkgname UNIVERSAL-can |
---|
| 2 | |
---|
| 3 | Name: perl-%{pkgname} |
---|
[9004] | 4 | Version: 1.20140328 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[5700] | 6 | Summary: Hack around people calling UNIVERSAL::can() as a function |
---|
| 7 | |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: Artistic or GPL+ |
---|
| 10 | URL: http://search.cpan.org/dist/UNIVERSAL-can/ |
---|
| 11 | Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-%{version}.tar.gz |
---|
[9004] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[5700] | 13 | |
---|
| 14 | BuildArch: noarch |
---|
| 15 | BuildRequires: perl(Module::Build) |
---|
| 16 | BuildRequires: perl(Test::Simple) >= 0.60 |
---|
| 17 | BuildRequires: perl(Test::Pod) >= 1.14 |
---|
| 18 | BuildRequires: perl(Test::Pod::Coverage) >= 1.04 |
---|
| 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 | The UNIVERSAL class provides a few default methods so that all objects |
---|
| 27 | can use them. Object orientation allows programmers to override these |
---|
| 28 | methods in subclasses to provide more specific and appropriate behavior. |
---|
| 29 | |
---|
| 30 | Some authors call methods in the UNIVERSAL class on potential invocants |
---|
| 31 | as functions, bypassing any possible overriding. This is wrong and you |
---|
| 32 | should not do it. Unfortunately, not everyone heeds this warning and |
---|
| 33 | their bad code can break your good code. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q -n UNIVERSAL-can-%{version} |
---|
| 38 | |
---|
| 39 | %build |
---|
[9004] | 40 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 41 | make %{?_smp_mflags} |
---|
[5700] | 42 | |
---|
| 43 | |
---|
| 44 | %install |
---|
[5798] | 45 | rm -rf %{buildroot} |
---|
[9004] | 46 | |
---|
| 47 | make pure_install DESTDIR=%{buildroot} |
---|
| 48 | |
---|
| 49 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 50 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 51 | |
---|
[5798] | 52 | chmod -R u+w %{buildroot}/* |
---|
[5700] | 53 | |
---|
| 54 | |
---|
| 55 | %check |
---|
[9004] | 56 | make test |
---|
[5700] | 57 | |
---|
| 58 | %clean |
---|
[5798] | 59 | rm -rf %{buildroot} |
---|
[5700] | 60 | |
---|
| 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root,-) |
---|
| 64 | %doc Changes README |
---|
[5798] | 65 | %{perl_vendorlib}/UNIVERSAL/ |
---|
[5700] | 66 | %{_mandir}/man3/*.3* |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[9004] | 70 | * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.20140328-1 |
---|
| 71 | - updated to 1.20140328 |
---|
| 72 | - build with perl 5.16.3 |
---|
| 73 | |
---|
[5798] | 74 | * Thu Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-7 |
---|
| 75 | - rebuild |
---|
| 76 | |
---|
| 77 | * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-6 |
---|
[5700] | 78 | - initial build for Vine Linux |
---|
| 79 | |
---|
| 80 | * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-6 |
---|
| 81 | - Perl mass rebuild |
---|
| 82 | |
---|
| 83 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5 |
---|
| 84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 85 | |
---|
| 86 | * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-4 |
---|
| 87 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 88 | |
---|
| 89 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-3 |
---|
| 90 | - Mass rebuild with perl-5.12.0 |
---|
| 91 | |
---|
| 92 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.15-2 |
---|
| 93 | - rebuild against perl 5.10.1 |
---|
| 94 | |
---|
| 95 | * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-1 |
---|
| 96 | - update to new upstream release |
---|
| 97 | |
---|
| 98 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4 |
---|
| 99 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 100 | |
---|
| 101 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3 |
---|
| 102 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 103 | |
---|
| 104 | * Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-2 |
---|
| 105 | - rebuild for new perl |
---|
| 106 | |
---|
| 107 | * Wed Apr 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1 |
---|
| 108 | - Update to 1.12. |
---|
| 109 | |
---|
| 110 | * Fri Feb 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-1 |
---|
| 111 | - Update to 1.11. |
---|
| 112 | - No longer build requires perl(Test::Exception). |
---|
| 113 | |
---|
| 114 | * Thu Feb 9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-2 |
---|
| 115 | - Missing build requirement: perl(Test::Exception). |
---|
| 116 | |
---|
| 117 | * Wed Feb 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1 |
---|
| 118 | - Update to 1.03. |
---|
| 119 | |
---|
| 120 | * Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1 |
---|
| 121 | - First build. |
---|