!8 [sync] PR-6: 【轻量级 PR】:define mod_name to opitomize the specfile
From: @openeuler-sync-bot Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
3c345659fd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user