!11 [sync] PR-8: define mod_name to opitomize the specfile

From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-10-24 09:16:31 +00:00 committed by Gitee
commit 69f7be41d0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,12 @@
Name: perl-Locale-Codes
%define mod_name Locale-Codes
Name: perl-%{mod_name}
Version: 3.68
Release: 1
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
@ -51,6 +53,9 @@ make test
%{_mandir}/*/*
%changelog
* Thu Oct 20 2022 xujing <xujing99@huawei.com> - 3.68-2
- define mod_name to opitomize the specfile
* Sat Dec 25 2021 tianwei <tianwei12@huawei.com> - 3.68-1
- upgrade version to 3.68