!2 define mod_name to optimize the specfile

From: @wangyuhang27 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-10-28 09:16:26 +00:00 committed by Gitee
commit d9a2936299
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,11 +1,13 @@
Name: perl-Params-Check
%define mod_name Params-Check
Name: perl-%{mod_name}
Epoch: 1
Version: 0.38
Release: 418
Release: 419
Summary: Generic input parsing/checking mechanism
License: GPL+ or Artistic
URL: https://metacpan.org/release/Params-Check
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Params-Check-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
@ -31,7 +33,7 @@ BuildArch: noarch
Man pages and other related documents for cronie.
%prep
%autosetup -n Params-Check-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
@ -53,6 +55,9 @@ make test TEST_VERBOSE=1
%{_mandir}/man3/*
%changelog
* Wed Oct 26 2022 wangyuhang <wangyuhang27@huawei.com> - 1:0.38-419
- define mod_name to opitomize the specfile
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.38-418
- Package init