define mod_name to opitomize the specfile
This commit is contained in:
parent
33a34aedab
commit
2057296715
@ -1,10 +1,11 @@
|
||||
Name: perl-ExtUtils-Install
|
||||
%define mod_name ExtUtils-Install
|
||||
Name: perl-%{mod_name}
|
||||
Version: 2.20
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Install Perl files from here to there
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/ExtUtils-Install
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-Install-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils make
|
||||
BuildRequires: perl-interpreter perl-generators
|
||||
@ -34,7 +35,7 @@ Requires: man
|
||||
Man pages and other related documents for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n ExtUtils-Install-%{version} -p1
|
||||
%autosetup -n %{mod_name}-%{version} -p1
|
||||
rm -rf t/lib/Test
|
||||
sed -i -e '/^t\/lib\/Test\//d' MANIFEST
|
||||
|
||||
@ -57,6 +58,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- upgrade version to 2.20
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user