!4 【轻量级 PR】:define mod_name to opitomize the specfile

From: @ZhouShuiQing 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-10-25 11:38:36 +00:00 committed by Gitee
commit d8de0665a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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