!4 【轻量级 PR】:define mod_name to opitomize the specfile
From: @ZhouShuiQing Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
d8de0665a5
@ -1,11 +1,12 @@
|
||||
Name: perl-podlators
|
||||
%define mod_name podlators
|
||||
Name: perl-%{mod_name}
|
||||
Epoch: 1
|
||||
Version: 4.14
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Format POD source into various output formats
|
||||
License: (GPL+ or Artistic) and FSFAP
|
||||
URL: https://metacpan.org/release/podlators
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RR/RRA/podlators-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RR/RRA/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(File::Basename) perl(File::Spec) >= 0.8 perl(Pod::Simple) >= 3.06
|
||||
@ -24,7 +25,7 @@ Pod::Text modules included with Perl.
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n podlators-%{version}
|
||||
%autosetup -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
@ -50,6 +51,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 1:4.14-2
|
||||
- define mod_name to opitomize the specfile
|
||||
|
||||
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 1:4.14-1
|
||||
- 4.14 bump
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user