perl-Readonly-XS/perl-Readonly-XS.spec

66 lines
1.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Readonly-XS
Version: 1.05
Release: 3mamba
Summary: Readonly::XS - Companion module for Readonly.pm, to speed up read-only scalar variables
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@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
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libperl
## AUTOBUILDREQ-END
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
Requires: perl(Readonly)
%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
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.05-3mamba
- rebuilt with perl 5.24
* 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