!15 [sync] PR-13: 【轻量级 PR】:添加%{mod_name}宏

From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-11-01 06:51:47 +00:00 committed by Gitee
commit 524e963a55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
Name: perl-Business-ISBN-Data
%define mod_name Business-ISBN-Data
Name: perl-%{mod_name}
Version: 20210112.006
Release: 1
Release: 2
Summary: Data pack for Business::ISBN
License: GPL+ or Artistic
URL: https://metacpan.org/pod/Business::ISBN::Data
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/%{mod_name}-%{version}.tar.gz
Patch0: Business-ISBN-Data-shellbang.patch
BuildArch: noarch
@ -20,7 +21,7 @@ This package is the data pack for Business::ISBN
%package_help
%prep
%autosetup -n Business-ISBN-Data-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
chmod -c +x make_data.pl
@ -44,6 +45,9 @@ make test
%{_mandir}/man3/Business::ISBN::Data.3*
%changelog
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 20210112.006-2
- use %{mod_name} marco
* Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 20210112.006-1
- update version to 20210112.006