2011-11-06 23:48:03 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Term-Terminfo
|
|
|
|
#
|
2020-05-11 08:08:26 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-11-06 23:48:03 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-11 08:08:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-11-06 23:48:03 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Term-Terminfo
|
2020-05-11 08:08:26 +00:00
|
|
|
Version: 0.09
|
2011-11-06 23:48:03 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Access the F<terminfo> database
|
2020-05-11 08:08:26 +00:00
|
|
|
License: GPL-2.0-or-later OR Artistic-1.0(GPL-2.0-or-later OR Artistic-1.0)
|
2011-11-06 23:48:03 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2020-05-11 08:08:26 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Term-Terminfo-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/Term-Terminfo
|
2011-11-06 23:48:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{perl_requires}
|
2020-05-11 08:08:26 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: ncurses-devel
|
2011-11-06 23:48:03 +00:00
|
|
|
BuildRequires: perl-macros
|
2020-05-11 08:08:26 +00:00
|
|
|
BuildRequires: pkgconfig
|
2011-11-06 23:48:03 +00:00
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
|
|
BuildRequires: perl(ExtUtils::CChecker) >= 0.02
|
|
|
|
BuildRequires: perl(Module::Build)
|
2020-05-11 08:08:26 +00:00
|
|
|
BuildRequires: perl(Module::Build::Compat)
|
|
|
|
BuildRequires: perl(Module::Build::Using::PkgConfig)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
Provides: perl(Term::Terminfo) = %{version}
|
2011-11-06 23:48:03 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Objects in this class provide access to terminfo database entires.
|
|
|
|
This database provides information about a terminal, in three separate
|
|
|
|
sets of capabilities. Flag capabilities indicate the presence of a
|
|
|
|
particular ability, feature, or bug simply by their presence. Number
|
|
|
|
capabilities give the size, count or other numeric detail of some feature
|
|
|
|
of the terminal. String capabilities are usually control strings that the
|
|
|
|
terminal will recognise, or send.
|
|
|
|
Capabilities each have two names; a short name called the capname, and a
|
|
|
|
longer name called the varname. This class provides two sets of methods,
|
|
|
|
one that works on capnames, one that work on varnames.
|
|
|
|
This module optionally uses unibilium to access the terminfo(5) database,
|
|
|
|
if it is available at compile-time. If not, it will use <term.h> and
|
|
|
|
-lcurses. For more detail, see the "SEE ALSO" section below.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Term-Terminfo-%{version}"
|
|
|
|
|
|
|
|
%build
|
|
|
|
TERM=xterm \
|
|
|
|
LDFLAGS="-L%{_libdir}" \
|
|
|
|
%__perl ./Build.PL
|
|
|
|
TERM=xterm \
|
|
|
|
LDFLAGS="-L%{_libdir}" \
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
|
|
|
TERM=xterm \
|
|
|
|
LDFLAGS="-L%{_libdir}" \
|
|
|
|
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
TERM=xterm \
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2020-05-11 08:08:26 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-11-06 23:48:03 +00:00
|
|
|
%dir %{perl_vendorarch}/Term
|
|
|
|
%{perl_vendorarch}/Term/Terminfo.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Term
|
|
|
|
%{perl_vendorarch}/auto/Term/Terminfo
|
|
|
|
%doc %{perl_man3dir}/Term::Terminfo.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|