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