define mod_name to opitomize the specfile

This commit is contained in:
胡宇彪 2022-10-25 03:30:46 +00:00 committed by Gitee
parent 4b0cbf188b
commit ddc213cf77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <huyubiao@huawei.com> - 5.01-2
- define mod_name to opitomize the specfile
* Wed Jul 22 2020 dingyue <dingyue5@openeuler.org> - 5.01-1
- Type:NA
- ID:NA