add mod_name marco

(cherry picked from commit af6aff164baa41531250d83bb5c2955716847219)
This commit is contained in:
hongjinghao 2022-11-01 14:22:13 +08:00 committed by openeuler-sync-bot
parent e389a46b15
commit 5a2760bb80

View File

@ -1,11 +1,13 @@
%define mod_name Module-Load
Name: perl-Module-Load
Epoch: 1
Version: 0.36
Release: 1
Release: 2
Summary: Runtime require of both modules and files
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Load
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Load-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators perl perl-interpreter perl(ExtUtils::MakeMaker) perl(strict) perl(File::Spec)
@ -25,7 +27,7 @@ Module::Load eliminates the need for this overhead and will just DWYM.
%package_help
%prep
%autosetup -n Module-Load-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL NO_PACKLIST=1 INSTALLDIRS=vendor
@ -48,6 +50,9 @@ make test
%{_mandir}/man3/*
%changelog
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 1:0.36-2
- use %{mod_name} marco
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 0.36-1
- upgrade version to 0.36