From baffce9a254912adbdf08b98ced6d9b8b97df684 Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Fri, 14 Apr 2023 16:14:25 +0800 Subject: [PATCH] Refact spec Signed-off-by: Jing Zhang --- perl-Importer.spec | 47 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/perl-Importer.spec b/perl-Importer.spec index f429491..173c208 100644 --- a/perl-Importer.spec +++ b/perl-Importer.spec @@ -1,64 +1,61 @@ -%define anolis_release 3 +%define anolis_release 4 +Summary: Alternative interface to modules that export symbols Name: perl-Importer Version: 0.026 Release: %{anolis_release}%{?dist} -Summary: Alternative interface to modules that export symbols License: GPL+ or Artistic URL: https://metacpan.org/release/Importer Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz + +BuildRequires: make coreutils perl-generators perl(warnings) +BuildRequires: perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) +#For tests +BuildRequires: perl(base) perl(Exporter) perl(Test::More) >= 0.98 BuildArch: noarch -BuildRequires: coreutils -BuildRequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(strict) -BuildRequires: perl(warnings) -# Tests: -BuildRequires: perl(base) -BuildRequires: perl(Exporter) -BuildRequires: perl(Test::More) >= 0.98 %description -This Perl module acts as a layer between Exporter and modules which consume -exports. It is feature-compatible with Exporter, plus some much needed -extras. You can use this to import symbols from any exporter that follows -Exporters specification. The exporter modules themselves do not need to use -or inherit from the Exporter module, they just need to set @EXPORT and/or -other variables. +This %{name} module acts as a layer between Exporter and modules which +consume exports. It is feature-compatible with Exporter, plus some much +needed extras. You can use this to import symbols from any exporter that +follows Exporters specification. The exporter modules themselves do not +need to use or inherit from the Exporter module, they just need to set +@EXPORT and/or other variables. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch -%description doc +%description doc The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n Importer-%{version} +%autosetup -n Importer-%{version} -p1 %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 %{make_build} %install %{make_install} -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} %{buildroot}/* %check make test %files %license LICENSE -%{perl_vendorlib}/* %{_mandir}/man3/* +%{perl_vendorlib}/* %files doc -%doc Changes README +%doc README Changes %changelog +* Fri Apr 14 2023 Jing Zhang - 0.026-4 +- Refact spec + * Mon Feb 06 2023 mgb01105731 - 0.026-3 - remove versioned MODULE_COMPAT_ requires -- Gitee