perl 5.16 mass rebuild [release 1.05-2mamba;Mon Nov 12 2012]

This commit is contained in:
Silvan Calarco 2024-01-06 09:33:20 +01:00
parent 3b1d60c804
commit c3c315aa38
3 changed files with 73 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# perl-Readonly-XS
Readonly::XS is a companion module for Readonly, to speed up read-only
scalar variables.

View File

@ -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 <roode@cpan.org>') : ()),
'LIBS' => [''], # e.g., '-lm'

59
perl-Readonly-XS.spec Normal file
View File

@ -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 <autodist@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.05-2mamba
- perl 5.16 mass rebuild
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.05-1mamba
- package created by autospec