diff --git a/README.md b/README.md index fbf86db..1510ee7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Readonly-XS +Readonly::XS is a companion module for Readonly, to speed up read-only +scalar variables. + diff --git a/perl-Readonly-XS-1.05-makefile.pl.patch b/perl-Readonly-XS-1.05-makefile.pl.patch new file mode 100644 index 0000000..558a1b5 --- /dev/null +++ b/perl-Readonly-XS-1.05-makefile.pl.patch @@ -0,0 +1,11 @@ +--- Makefile.PL.orig 2006-10-06 08:44:30.403840967 -0700 ++++ Makefile.PL 2006-10-06 08:44:42.180431002 -0700 +@@ -5,7 +5,7 @@ + WriteMakefile( + 'NAME' => 'Readonly::XS', + 'VERSION_FROM' => 'XS.pm', # finds $VERSION +- 'PREREQ_PM' => {Readonly => 1.02}, # e.g., Module::Name => 1.1 ++ 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 + ($] >= 5.005 ? ## Add these new keywords supported since 5.005 + (AUTHOR => 'Eric Roode ') : ()), + 'LIBS' => [''], # e.g., '-lm' diff --git a/perl-Readonly-XS.spec b/perl-Readonly-XS.spec new file mode 100644 index 0000000..7b8b520 --- /dev/null +++ b/perl-Readonly-XS.spec @@ -0,0 +1,59 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Readonly-XS +Version: 1.05 +Release: 2mamba +Summary: Readonly::XS - Companion module for Readonly.pm, to speed up read-only scalar variables +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-XS-%{version}.tar.gz +Patch0: perl-Readonly-XS-1.05-makefile.pl.patch +License: GPL, Artistic +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +Requires: perl(Readonly) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Readonly::XS is a companion module for Readonly, to speed up read-only +scalar variables. + +%prep +%setup -q -n Readonly-XS-%{version} +%patch0 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Readonly/ +%{_mandir}/man3/*.3pm.gz +%doc Changes README + +%changelog +* Mon Nov 12 2012 Silvan Calarco 1.05-2mamba +- perl 5.16 mass rebuild + +* Fri Feb 18 2011 gil 1.05-1mamba +- package created by autospec