添加%{mod_name}宏

添加%{mod_name}宏

Signed-off-by: hongjinghao <hongjinghao@huawei.com>
This commit is contained in:
hongjinghao 2022-11-01 01:20:03 +00:00 committed by Gitee
parent 1f96e18eb1
commit 0b8b1d1071
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 Epoch: 4
Version: 2.03 Version: 2.03
Release: 1 Release: 2
Summary: Print a usage message from embedded pod documentation Summary: Print a usage message from embedded pod documentation
License: GPL+ or Artistic-1.0 License: GPL+ or Artistic-1.0
URL: https://metacpan.org/release/Pod-Usage URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Usage-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -27,7 +29,7 @@ command line options and arguments. If the verbose level is 2, then the entire m
%package_help %package_help
%prep %prep
%autosetup -n Pod-Usage-%{version} -p1 %autosetup -n %{mod_name}-%{version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -52,6 +54,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %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 * Tue Oct 25 2022 zhangyao <zhangyao108@huawei.com> - 4:2.03-1
- upgrade version to 2.03 - upgrade version to 2.03