From 2057296715d0b26fccdb93bfd070b48e41cb98fb Mon Sep 17 00:00:00 2001 From: zhoushuiqing Date: Tue, 25 Oct 2022 02:27:40 +0000 Subject: [PATCH] define mod_name to opitomize the specfile --- perl-ExtUtils-Install.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl-ExtUtils-Install.spec b/perl-ExtUtils-Install.spec index 4f60cb8..6d984dd 100644 --- a/perl-ExtUtils-Install.spec +++ b/perl-ExtUtils-Install.spec @@ -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 - 2.20-2 +- define mod_name to opitomize the specfile + * Fri Jan 29 2021 yuanxin - 2.20-1 - upgrade version to 2.20 -- Gitee