perl-Task-Weaken/perl-Task-Weaken.spec

61 lines
1.9 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Task-Weaken
Version: 1.06
Release: 1mamba
Summary: Task::Weaken - Ensure that a platform has weaken support
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Task-Weaken-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
One recurring problem in modules that use Scalar::Util's weaken function is that it is not present in the pure-perl variant.
This restores the functionality testing to a dependency you do once in your Makefile.PL, rather than something you have to write extra tests for each time you write a module.
%prep
%setup -q -n Task-Weaken-%{version}
%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} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/
%{_mandir}/man3/*.3pm.gz
%doc LICENSE
%changelog
* Sat Dec 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.06-1mamba
- update to 1.06
* Mon May 02 2011 Automatic Build System <autodist@mambasoft.it> 1.04-1mamba
- automatic update by autodist
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.02-1mamba
- package created by autospec