From ddc213cf7722fe946b2732eafb720744cdc86340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=AE=87=E5=BD=AA?= Date: Tue, 25 Oct 2022 03:30:46 +0000 Subject: [PATCH] define mod_name to opitomize the specfile --- perl-Term-ANSIColor.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl-Term-ANSIColor.spec b/perl-Term-ANSIColor.spec index 3c250f4..dbc020f 100644 --- a/perl-Term-ANSIColor.spec +++ b/perl-Term-ANSIColor.spec @@ -1,10 +1,11 @@ -Name: perl-Term-ANSIColor +%define mod_name Term-ANSIColor +Name: perl-%{mod_name} Version: 5.01 -Release: 1 +Release: 2 Summary: Color screen output using ANSI escape sequences License: GPL+ -URL: https://metacpan.org/release/Term-ANSIColor -Source0: https://cpan.metacpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz +URL: https://metacpan.org/release/%{mod_name} +Source0: https://cpan.metacpan.org/modules/by-module/Term/%{mod_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils, make @@ -25,7 +26,7 @@ sixteen-color and 256-color emulators. %package_help %prep -%setup -q -n Term-ANSIColor-%{version} +%setup -q -n %{mod_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 @@ -50,6 +51,9 @@ make test %{_mandir}/man3/* %changelog +* Tue Oct 25 2022 huyubiao - 5.01-2 +- define mod_name to opitomize the specfile + * Wed Jul 22 2020 dingyue - 5.01-1 - Type:NA - ID:NA