From c903e5c247ab4e6d2785c51f28246c9e74ac7cc1 Mon Sep 17 00:00:00 2001 From: xujing Date: Mon, 24 Oct 2022 15:50:26 +0800 Subject: [PATCH] define mod_name to opitomize the specfile (cherry picked from commit bb71461d37a7da1dac59eb198aaa5cbfa74356f2) --- perl-Locale-Codes.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/perl-Locale-Codes.spec b/perl-Locale-Codes.spec index c87ef68..dd5bf97 100644 --- a/perl-Locale-Codes.spec +++ b/perl-Locale-Codes.spec @@ -1,10 +1,12 @@ -Name: perl-Locale-Codes +%define mod_name Locale-Codes + +Name: perl-%{mod_name} Version: 3.68 Release: 2 Summary: A distribution of modules to handle locale codes License: GPL+ or Artistic -URL: https://metacpan.org/release/Locale-Codes -Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Locale-Codes-%{version}.tar.gz +URL: https://metacpan.org/release/%{mod_name} +Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/%{mod_name}-%{version}.tar.gz BuildArch: noarch BuildRequires:coreutils findutils perl-generators perl-interpreter @@ -18,7 +20,7 @@ work with sets of codes which uniquely identify something. %package_help %prep -%autosetup -n Locale-Codes-%{version} -p1 +%autosetup -n %{mod_name}-%{version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 @@ -52,7 +54,7 @@ make test %changelog * Thu Oct 20 2022 xujing - 3.68-2 -- update release +- define mod_name to opitomize the specfile * Sat Dec 25 2021 tianwei - 3.68-1 - upgrade version to 3.68