perl-Term-Cap/perl-Term-Cap.spec

73 lines
1.7 KiB
RPMSpec
Raw Normal View History

%define mod_name Term-Cap
Name: perl-%{mod_name}
2023-10-25 16:05:36 +08:00
Version: 1.18
Release: 1
2019-09-30 11:13:19 -04:00
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
2019-09-30 11:13:19 -04:00
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
2023-10-25 16:05:36 +08:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
2019-09-30 11:13:19 -04:00
# ncurses for infocmp tool
Requires: ncurses
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
Requires: perl(Carp)
2023-10-25 16:05:36 +08:00
Conflicts: perl < 4:5.22.0-347
2019-09-30 11:13:19 -04:00
%description
These are low-level functions to extract and use capabilities from a
terminal capability (termcap) database.
%prep
%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
2023-10-25 16:05:36 +08:00
* 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
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