添加%{mod_name}宏
添加%{mod_name}宏
Signed-off-by: hongjinghao <hongjinghao@huawei.com>
This commit is contained in:
parent
1f96e18eb1
commit
0b8b1d1071
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user