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

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

View File

@ -1,10 +1,11 @@
Name: perl-CPAN-Meta-Requirements %define mod_name CPAN-Meta-Requirements
Name: perl-%{mod_name}
Version: 2.140 Version: 2.140
Release: 419 Release: 420
Summary: A set of version requirements for a CPAN dist Summary: A set of version requirements for a CPAN dist
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/CPAN-Meta-Requirements URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
Provides: perl(CPAN::Meta::Requirements) = 2.140000 Provides: perl(CPAN::Meta::Requirements) = 2.140000
@ -27,7 +28,7 @@ Requires: man info
Man page and other related documents for %{name}. Man page and other related documents for %{name}.
%prep %prep
%autosetup -n CPAN-Meta-Requirements-%{version} -p1 %autosetup -n %{mod_name}-%{version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 UNINST=0 perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 UNINST=0
@ -60,5 +61,8 @@ make test
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 2.140-420
- define mod_name to opitomize the specfile
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.140-419 * Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.140-419
- Package init - Package init