Import Sub::Exporter::Progressive

This commit is contained in:
Daniel Berteaud 2022-02-11 16:51:16 +01:00
parent 199e9cdec7
commit c5f5233fd6
3 changed files with 58 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

BIN
Sub-Exporter-Progressive-0.001013.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,54 @@
Name: perl-Sub-Exporter-Progressive
Version: 0.001013
Release: 1%{?dist}
Summary: Only use Sub::Exporter if you need it
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Sub-Exporter-Progressive/
Source0: http://www.cpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Sub::Exporter is an incredibly powerful module, but with that power comes
great responsibility, er- as well as some runtime penalties. This module is
a Sub::Exporter wrapper that will let your users just use Exporter if all
they are doing is picking exports, but use Sub::Exporter if your users try
to use Sub::Exporter's more advanced features, like renaming exports, if
they try to use them.
%prep
%setup -q -n Sub-Exporter-Progressive-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes cpanfile dist.ini LICENSE META.json README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.001013-1
- Specfile autogenerated by cpanspec 1.78.