61 lines
1.7 KiB
RPMSpec
61 lines
1.7 KiB
RPMSpec
|
|
Name: perl-Exporter
|
||
|
|
Version: 5.73
|
||
|
|
Release: 419
|
||
|
|
Summary: Implements default import method for modules
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Exporter
|
||
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Exporter-5.70.tar.gz
|
||
|
|
|
||
|
|
Patch0: Exporter-5.70-Upgrade-to-5.72.patch
|
||
|
|
Patch1: Exporter-5.72-Upgrade-to-5.73.patch
|
||
|
|
|
||
|
|
BuildArch: noarch
|
||
|
|
BuildRequires: perl-interpreter perl-generators git
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
|
BuildRequires: perl(Carp) >= 1.05 perl(strict) perl(warnings)
|
||
|
|
BuildRequires: perl(Test::More) perl(vars)
|
||
|
|
BuildRequires: perl(Test::Pod) >= 1.18
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
|
Requires: perl(Carp) >= 1.05 perl(warnings)
|
||
|
|
|
||
|
|
%description
|
||
|
|
The Exporter module implements an import method which allows a module to
|
||
|
|
export functions and variables to its users' name spaces. Many modules use
|
||
|
|
Exporter rather than implementing their own import method because Exporter
|
||
|
|
provides a highly flexible interface, with an implementation optimized for
|
||
|
|
the common case.
|
||
|
|
|
||
|
|
%package help
|
||
|
|
Summary: Documents for %{name}
|
||
|
|
Buildarch: noarch
|
||
|
|
Requires: man
|
||
|
|
|
||
|
|
%description help
|
||
|
|
Man pages and other related documents for %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n Exporter-5.70 -p1 -S git
|
||
|
|
|
||
|
|
%build
|
||
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
find $RPM_BUILD_ROOT -type f -name .packlist | xargs rm -f
|
||
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Changes README
|
||
|
|
%{perl_vendorlib}/*
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%{_mandir}/man3/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Sat Sep 14 2019 guiyao <guiyao@huawei.com> - 5.73-419
|
||
|
|
- Package Init
|