define mod_name to opitomize the specfile

(cherry picked from commit 77481ff9fc8bcca85cff71efe2fb96dbc719d8c1)
This commit is contained in:
胡宇彪 2022-10-25 01:52:40 +00:00 committed by openeuler-sync-bot
parent 8272f89ef1
commit 94850ea905

View File

@ -1,14 +1,15 @@
Name: perl-Config-IniFiles
%define mod_name Config-IniFiles
Name: perl-%{mod_name}
Version: 3.000003
Release: 1
Release: 2
Summary: A module for reading .ini-style configuration files
# LICENSE: GPL+ or Artistic
# lib/Config/IniFiles.pm: GPL+ or Artistic
## Not distributed in a binary package
# t/30parameters-with-empty-values.t: MIT
License: GPL+ or Artistic
URL: https://metacpan.org/release/Config-IniFiles
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{mod_name}-%{version}.tar.gz
BuildRequires: coreutils findutils make perl-interpreter perl-generators perl(Module::Build) >= 0.36
# Module::Build::Compat not used, we run Build.PL
BuildRequires: perl(strict)
@ -33,7 +34,7 @@ Config::IniFiles is a module intended to make life easier for
those who rely on flat configuration files.
%prep
%autosetup -n Config-IniFiles-%{version} -p1
%autosetup -n %{mod_name}-%{version} -p1
# Normalize end-of-lines
sed -i -e 's/\r$//' Changes OLD-Changes.txt
@ -55,6 +56,9 @@ perl Build.PL installdirs=vendor
%{_mandir}/man3/*.3pm*
%changelog
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 3.000003-2
- define mod_name to opitomize the specfile
* Thu Jul 30 2020 wenzhanli<wenzhanli2@huawei.com> - 3.000003-1
- Type:NAE
- ID:NA