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

From: @ZhouShuiQing 
Reviewed-by: @overweight 
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2022-10-25 07:57:10 +00:00 committed by Gitee
commit 9d9eef86f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,11 +1,12 @@
Name: perl-Test-Simple
%define mod_name Test-Simple
Name: perl-%{mod_name}
Summary: Basic utilities for writing tests
Epoch: 2
Version: 1.302188
Release: 1
Release: 2
License: (GPL+ or Artistic) and CC0 and Public Domain
URL: https://metacpan.org/release/Test-Simple
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Simple-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/modules/by-module/Test/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils, make
@ -28,10 +29,10 @@ Provides: perl-Test2 = %{version}-%{release}
This package provides the bulk of the core testing facilities. For more
information, see perldoc for Test::Simple, Test::More, etc.
This package is the CPAN component of the dual-lifed core package Test-Simple.
This package is the CPAN component of the dual-lifed core package %{mod_name}.
%prep
%setup -q -n Test-Simple-%{version}
%setup -q -n %{mod_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
@ -65,6 +66,9 @@ make test AUTHOR_TESTING=1
%{_mandir}/man3/Test*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 1.302188-2
- define mod_name to opitomize the specfile
* Mon Nov 22 2021 liudabo <liudabo1@huawei.com> - 1.302188-1
- upgrade version to 1.302188