!14 【轻量级 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:37:40 +00:00 committed by Gitee
commit ed6cd98b22
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
Name: perl-Data-Dumper
%define mod_name Data-Dumper
Name: perl-%{mod_name}
Version: 2.183
Release: 1
Release: 2
Summary: Stringified perl data structures, suitable for both printing and eval
License: GPL+ or Artistic
URL: https://metacpan.org/release/Data-Dumper
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Data-Dumper-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/%{mod_name}-%{version}.tar.gz
BuildRequires: make findutils perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.98
BuildRequires: perl-devel gcc
@ -21,7 +22,7 @@ The return value can be evaled to get back an identical copy of the original ref
%package_help
%prep
%autosetup -n Data-Dumper-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{optflags}"
@ -53,6 +54,9 @@ make test
%{_mandir}/*/*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 2.183-2
- define mod_name to opitomize the specfile
* Mon Nov 22 2021 shixuantong <shixuantong@huawei.com> - 2.183-1
- update version to 2.183