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