define mod_name to opitomize the specfile
Signed-off-by: Mingtai <yangmingtai@huawei.com>
This commit is contained in:
parent
fe82918f51
commit
6b3d040bcc
@ -1,10 +1,11 @@
|
||||
Name: perl-Term-Cap
|
||||
%define mod_name Term-Cap
|
||||
Name: perl-%{mod_name}
|
||||
Version: 1.17
|
||||
Release: 510
|
||||
Release: 511
|
||||
Summary: Perl termcap interface
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Term-Cap
|
||||
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/Term-Cap-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils
|
||||
@ -23,7 +24,7 @@ These are low-level functions to extract and use capabilities from a
|
||||
terminal capability (termcap) database.
|
||||
|
||||
%prep
|
||||
%setup -q -n Term-Cap-%{version}
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
@ -48,6 +49,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user