!12 【轻量级 PR】:添加%{mod_name}宏

From: @hongjinghao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-11-01 07:00:56 +00:00 committed by Gitee
commit 06756f4a14
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,11 +1,13 @@
Name: perl-Pod-Usage
%define mod_name Pod-Usage
Name: perl-%{mod_name}
Epoch: 4
Version: 2.03
Release: 1
Release: 2
Summary: Print a usage message from embedded pod documentation
License: GPL+ or Artistic-1.0
URL: https://metacpan.org/release/Pod-Usage
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Usage-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
@ -27,7 +29,7 @@ command line options and arguments. If the verbose level is 2, then the entire m
%package_help
%prep
%autosetup -n Pod-Usage-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -52,6 +54,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Nov 1 2022 hongjinghao <hongjinghao@huawei.com> - 4:2.03-2
- use %{mod_name} marco
* Tue Oct 25 2022 zhangyao <zhangyao108@huawei.com> - 4:2.03-1
- upgrade version to 2.03