71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Readonly-XS
|
|
Version: 1.05
|
|
Release: 4mamba
|
|
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: https://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: perl-Readonly
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl >= 2:5.36.0
|
|
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}
|
|
%patch 0
|
|
|
|
%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 Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 1.05-4mamba
|
|
- rebuilt with perl 5.36.0
|
|
|
|
* 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
|