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 Version: 5.01
Release: 1 Release: 2
Summary: Color screen output using ANSI escape sequences Summary: Color screen output using ANSI escape sequences
License: GPL+ License: GPL+
URL: https://metacpan.org/release/Term-ANSIColor URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Term/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils, make BuildRequires: coreutils, make
@ -25,7 +26,7 @@ sixteen-color and 256-color emulators.
%package_help %package_help
%prep %prep
%setup -q -n Term-ANSIColor-%{version} %setup -q -n %{mod_name}-%{version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@ -50,6 +51,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %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 * Wed Jul 22 2020 dingyue <dingyue5@openeuler.org> - 5.01-1
- Type:NA - Type:NA
- ID:NA - ID:NA