!8 【轻量级 PR】:define mod_name to opitomize the specfile
From: @ZhouShuiQing Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
b1f187330c
@ -1,10 +1,11 @@
|
|||||||
Name: perl-ExtUtils-Install
|
%define mod_name ExtUtils-Install
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Version: 2.20
|
Version: 2.20
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Install Perl files from here to there
|
Summary: Install Perl files from here to there
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/ExtUtils-Install
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-Install-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: coreutils make
|
BuildRequires: coreutils make
|
||||||
BuildRequires: perl-interpreter perl-generators
|
BuildRequires: perl-interpreter perl-generators
|
||||||
@ -34,7 +35,7 @@ Requires: man
|
|||||||
Man pages and other related documents for %{name}.
|
Man pages and other related documents for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n ExtUtils-Install-%{version} -p1
|
%autosetup -n %{mod_name}-%{version} -p1
|
||||||
rm -rf t/lib/Test
|
rm -rf t/lib/Test
|
||||||
sed -i -e '/^t\/lib\/Test\//d' MANIFEST
|
sed -i -e '/^t\/lib\/Test\//d' MANIFEST
|
||||||
|
|
||||||
@ -57,6 +58,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 2.20-2
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 2.20-1
|
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 2.20-1
|
||||||
- upgrade version to 2.20
|
- upgrade version to 2.20
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user