!2 【轻量级 PR】:define mod_name to opitomize the specfile
From: @yangmingtaip Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
13385e75e1
@ -1,10 +1,11 @@
|
|||||||
Name: perl-Term-Cap
|
%define mod_name Term-Cap
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Version: 1.17
|
Version: 1.17
|
||||||
Release: 510
|
Release: 511
|
||||||
Summary: Perl termcap interface
|
Summary: Perl termcap interface
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Term-Cap
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/Term-Cap-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/%{mod_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
@ -23,7 +24,7 @@ These are low-level functions to extract and use capabilities from a
|
|||||||
terminal capability (termcap) database.
|
terminal capability (termcap) database.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Term-Cap-%{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
|
||||||
@ -48,6 +49,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.17-511
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.17-510
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.17-510
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user