!5 【轻量级 PR】:define mod_name to opitomize the specfile
From: @huyubiao Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
63bd87b5b8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user