添加%{mod_name}宏
添加%{mod_name}宏
Signed-off-by: hongjinghao <hongjinghao@huawei.com>
This commit is contained in:
parent
e389a46b15
commit
884bcb3e72
@ -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> - 0.36-2
|
||||
- use %{mod_name} marco
|
||||
|
||||
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 0.36-1
|
||||
- upgrade version to 0.36
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user