73 lines
1.7 KiB
RPMSpec
73 lines
1.7 KiB
RPMSpec
%define mod_name Term-Cap
|
|
Name: perl-%{mod_name}
|
|
Version: 1.18
|
|
Release: 1
|
|
Summary: Perl termcap interface
|
|
License: GPL+ or Artistic
|
|
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
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
# ncurses for infocmp tool
|
|
Requires: ncurses
|
|
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
|
|
Requires: perl(Carp)
|
|
Conflicts: perl < 4:5.22.0-347
|
|
|
|
%description
|
|
These are low-level functions to extract and use capabilities from a
|
|
terminal capability (termcap) database.
|
|
|
|
%prep
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
%make_build
|
|
|
|
%install
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
|
|
%package_help
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Oct 25 2023 xujing <xujing125@huawei.com> - 1.18-1
|
|
- update version to 1.18
|
|
|
|
* 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
|
|
- SUG:NA
|
|
- DESC:change mod of files
|
|
|
|
* 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
|