1 | Name: perl-Readonly |
---|
2 | Version: 2.00 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Facility for creating read-only scalars, arrays, hashes |
---|
5 | Group: Development/Libraries |
---|
6 | License: GPL+ or Artistic |
---|
7 | URL: http://search.cpan.org/dist/Readonly/ |
---|
8 | Source0: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-%{version}.tar.gz |
---|
9 | |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
11 | BuildArch: noarch |
---|
12 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
13 | BuildRequires: perl(Test::More) |
---|
14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
15 | # perl-Readonly-XS builds for all current fedora architectures, so let's |
---|
16 | # require it. |
---|
17 | Requires: perl(Readonly::XS) |
---|
18 | |
---|
19 | Vendor: Project Vine |
---|
20 | Distribution: Vine Linux |
---|
21 | Packager: shaolin |
---|
22 | |
---|
23 | %{?perl_default_filter} |
---|
24 | %{?perl_default_subpackage_tests} |
---|
25 | |
---|
26 | %description |
---|
27 | Readonly provides a facility for creating non-modifiable scalars, |
---|
28 | arrays, and hashes. Any attempt to modify a Readonly variable throws |
---|
29 | an exception. |
---|
30 | |
---|
31 | Readonly: |
---|
32 | * Creates scalars, arrays (not lists), and hashes. |
---|
33 | * Creates variables that look and work like native perl variables. |
---|
34 | * Creates global or lexical variables. |
---|
35 | * Works at runtime or compile time. |
---|
36 | * Works with deep or shallow data structures. |
---|
37 | * Prevents reassignment of Readonly variables. |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q -n Readonly-%{version} |
---|
41 | |
---|
42 | %build |
---|
43 | %{__perl} Build.PL installdirs=vendor |
---|
44 | ./Build |
---|
45 | |
---|
46 | %install |
---|
47 | rm -rf %{buildroot} |
---|
48 | |
---|
49 | ./Build pure_install destdir=%{buildroot} |
---|
50 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
51 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
52 | |
---|
53 | %{_fixperms} %{buildroot}/* |
---|
54 | |
---|
55 | |
---|
56 | %check |
---|
57 | ./Build test |
---|
58 | |
---|
59 | %clean |
---|
60 | rm -rf %{buildroot} |
---|
61 | |
---|
62 | |
---|
63 | %files |
---|
64 | %defattr(-,root,root,-) |
---|
65 | %doc Changes LICENSE README.md |
---|
66 | %{perl_vendorlib}/Readonly.pm |
---|
67 | %{_mandir}/man3/* |
---|
68 | |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.00-1 |
---|
72 | - updated to 2.00 |
---|
73 | - make -> ./Build |
---|
74 | - built with perl 5.16.3 |
---|
75 | |
---|
76 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-2 |
---|
77 | - rebuild |
---|
78 | |
---|
79 | * Tue Feb 21 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1 |
---|
80 | - initial package for Vine Linux |
---|
81 | |
---|
82 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-17 |
---|
83 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
84 | |
---|
85 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-16 |
---|
86 | - Perl mass rebuild |
---|
87 | |
---|
88 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-15 |
---|
89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
90 | |
---|
91 | * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-14 |
---|
92 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
93 | |
---|
94 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-13 |
---|
95 | - Mass rebuild with perl-5.12.0 |
---|
96 | |
---|
97 | * Sun Feb 21 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.03-12 |
---|
98 | - add perl_default_filter, etc |
---|
99 | - minor spec updates |
---|
100 | |
---|
101 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-11 |
---|
102 | - rebuild against perl 5.10.1 |
---|
103 | |
---|
104 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10 |
---|
105 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
106 | |
---|
107 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9 |
---|
108 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
109 | |
---|
110 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-8 |
---|
111 | - Rebuild for perl 5.10 (again) |
---|
112 | |
---|
113 | * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-7 |
---|
114 | - rebuild for new perl |
---|
115 | |
---|
116 | * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-6.2 |
---|
117 | - add BR: perl(Test::More) |
---|
118 | |
---|
119 | * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.03-6.1 |
---|
120 | - correct license tag |
---|
121 | - add BR: perl(ExtUtils::MakeMaker) |
---|
122 | |
---|
123 | * Wed Oct 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-6 |
---|
124 | - add explict requires on perl(Readonly::XS). perl(Readonly::XS) is available |
---|
125 | for all architectures fedora supports, so there's no good reason to not |
---|
126 | require it. |
---|
127 | - spec file rework |
---|
128 | |
---|
129 | * Tue Sep 19 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-5 |
---|
130 | - bump for mass rebuild |
---|
131 | |
---|
132 | * Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3 |
---|
133 | - Remove requires on perl-Readonly-XS |
---|
134 | |
---|
135 | * Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3 |
---|
136 | - Fix license and BuildRequires, use %%{?_smp_mflags} with make, |
---|
137 | |
---|
138 | * Sat Nov 12 2005 Michael A. Peters <mpeters@mac.com> - 1.03-2 |
---|
139 | - separate out perl-Readonly-XS into its own package |
---|
140 | - package benchmark.pl as a doc |
---|
141 | |
---|
142 | * Mon Nov 7 2005 Michael A. Peters <mpeters@mac.com> - 1.03-1 |
---|
143 | - Initial spec file |
---|