define mod_name to opitomize the specfile

This commit is contained in:
胡宇彪 2022-10-25 03:26:55 +00:00 committed by Gitee
parent 58a8c93a41
commit 535819e05c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
Name: perl-Unicode-EastAsianWidth
%define mod_name Unicode-EastAsianWidth
Name: perl-%{mod_name}
Version: 12.0
Release: 1
Release: 2
Summary: East Asian Width properties
License: CC0
URL: https://metacpan.org/release/Unicode-EastAsianWidth
Source0: https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/%{mod_name}-%{version}.tar.gz
Patch0: perl-Unicode-EastAsianWidth-no-inc.patch
@ -21,7 +22,7 @@ status of East Asian characters, as specified in
<http://www.unicode.org/unicode/reports/tr11/>.
%prep
%autosetup -n Unicode-EastAsianWidth-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
rm -rf inc/*
%build
@ -44,6 +45,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 12.0-2
- define mod_name to opitomize the specfile
* Wed Jul 22 2020 dingyue <dingyue5@huawei.com> - 12.0-1
- Package update
* Thu Dec 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.33-15