1 | %define pkgname UNIVERSAL-can |
---|
2 | |
---|
3 | Name: perl-%{pkgname} |
---|
4 | Version: 1.15 |
---|
5 | Release: 7%{?_dist_release} |
---|
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 |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
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 | |
---|
40 | %build |
---|
41 | %{__perl} Build.PL installdirs=vendor |
---|
42 | ./Build |
---|
43 | |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf %{buildroot} |
---|
47 | ./Build install destdir=%{buildroot} create_packlist=0 |
---|
48 | chmod -R u+w %{buildroot}/* |
---|
49 | |
---|
50 | |
---|
51 | %check |
---|
52 | PERL_RUN_ALL_TESTS=1 ./Build test |
---|
53 | |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf %{buildroot} |
---|
57 | |
---|
58 | |
---|
59 | %files |
---|
60 | %defattr(-,root,root,-) |
---|
61 | %doc Changes README |
---|
62 | %{perl_vendorlib}/UNIVERSAL/ |
---|
63 | %{_mandir}/man3/*.3* |
---|
64 | |
---|
65 | |
---|
66 | %changelog |
---|
67 | * Thu Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-7 |
---|
68 | - rebuild |
---|
69 | |
---|
70 | * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-6 |
---|
71 | - initial build for Vine Linux |
---|
72 | |
---|
73 | * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-6 |
---|
74 | - Perl mass rebuild |
---|
75 | |
---|
76 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5 |
---|
77 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
78 | |
---|
79 | * Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-4 |
---|
80 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
81 | |
---|
82 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-3 |
---|
83 | - Mass rebuild with perl-5.12.0 |
---|
84 | |
---|
85 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.15-2 |
---|
86 | - rebuild against perl 5.10.1 |
---|
87 | |
---|
88 | * Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-1 |
---|
89 | - update to new upstream release |
---|
90 | |
---|
91 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4 |
---|
92 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
93 | |
---|
94 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3 |
---|
95 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
96 | |
---|
97 | * Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-2 |
---|
98 | - rebuild for new perl |
---|
99 | |
---|
100 | * Wed Apr 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1 |
---|
101 | - Update to 1.12. |
---|
102 | |
---|
103 | * Fri Feb 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-1 |
---|
104 | - Update to 1.11. |
---|
105 | - No longer build requires perl(Test::Exception). |
---|
106 | |
---|
107 | * Thu Feb 9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-2 |
---|
108 | - Missing build requirement: perl(Test::Exception). |
---|
109 | |
---|
110 | * Wed Feb 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1 |
---|
111 | - Update to 1.03. |
---|
112 | |
---|
113 | * Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1 |
---|
114 | - First build. |
---|