2022-10-24 10:58:33 +00:00
|
|
|
%define mod_name Term-Cap
|
|
|
|
|
Name: perl-%{mod_name}
|
2019-09-30 11:13:19 -04:00
|
|
|
Version: 1.17
|
2022-10-24 10:58:33 +00:00
|
|
|
Release: 511
|
2019-09-30 11:13:19 -04:00
|
|
|
Summary: Perl termcap interface
|
|
|
|
|
License: GPL+ or Artistic
|
2022-10-24 10:58:33 +00:00
|
|
|
URL: https://metacpan.org/release/%{mod_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/%{mod_name}-%{version}.tar.gz
|
2019-09-30 11:13:19 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# ncurses for infocmp tool
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
These are low-level functions to extract and use capabilities from a
|
|
|
|
|
terminal capability (termcap) database.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-24 10:58:33 +00:00
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2019-09-30 11:13:19 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
2019-12-25 16:03:26 +08:00
|
|
|
%{_fixperms} %{buildroot}/*
|
2019-09-30 11:13:19 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-10-24 10:58:33 +00:00
|
|
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.17-511
|
|
|
|
|
- define mod_name to opitomize the specfile
|
|
|
|
|
|
2019-12-25 16:03:26 +08:00
|
|
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.17-510
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change mod of files
|
|
|
|
|
|
2019-09-30 11:13:19 -04:00
|
|
|
* Mon Sep 23 2019 shenyangyang<shenyangyang4@huawei.com> - 1.17-509
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:revise requires of perl
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2019 hexiaowen <hexiaowen@huawei.com> 1.17-508
|
|
|
|
|
- Package init
|