perl-Exporter/perl-Exporter.spec

76 lines
2.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:12:11 -04:00
Name: perl-Exporter
2023-07-18 15:58:52 +08:00
Version: 5.77
Release: 1
2019-09-30 11:12:11 -04:00
Summary: Implements default import method for modules
License: GPL+ or Artistic
URL: https://metacpan.org/release/Exporter
2020-01-11 16:45:12 +08:00
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Exporter-%{version}.tar.gz
2019-09-30 11:12:11 -04:00
BuildArch: noarch
BuildRequires: perl-interpreter perl-generators
2019-09-30 11:12:11 -04:00
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-%{version} -p1
2019-09-30 11:12:11 -04:00
%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
2023-07-18 15:58:52 +08:00
* Tue Jul 18 2023 leeffo <liweiganga@uniontech.com> - 5.77-1
- upgrade to version 5.77
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 5.74-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2022-06-15 17:00:51 +08:00
* Thu Jul 23 2020 xinghe <xinghe1@huawei.com> - 5.74-1
2020-07-23 19:22:25 +08:00
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update version to 5.74
2020-01-11 16:45:12 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.73-420
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update the package with tarball
2019-09-30 11:12:11 -04:00
* Sat Sep 14 2019 guiyao <guiyao@huawei.com> - 5.73-419
- Package Init