From 535819e05cb96bb68a2e4d90c9cd23e41d1b0aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=AE=87=E5=BD=AA?= Date: Tue, 25 Oct 2022 03:26:55 +0000 Subject: [PATCH] define mod_name to opitomize the specfile --- perl-Unicode-EastAsianWidth.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl-Unicode-EastAsianWidth.spec b/perl-Unicode-EastAsianWidth.spec index cf72884..ecbc6eb 100644 --- a/perl-Unicode-EastAsianWidth.spec +++ b/perl-Unicode-EastAsianWidth.spec @@ -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 . %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 - 12.0-2 +- define mod_name to opitomize the specfile + * Wed Jul 22 2020 dingyue - 12.0-1 - Package update * Thu Dec 5 2019 openEuler Buildteam - 1.33-15