%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