# # spec file for package perl-Term-Terminfo # # Copyright (c) 2020 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-Term-Terminfo Version: 0.09 Release: 0 Summary: Access the F database License: GPL-2.0-or-later OR Artistic-1.0(GPL-2.0-or-later OR Artistic-1.0) Group: Development/Libraries/Perl Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Term-Terminfo-%{version}.tar.gz URL: http://search.cpan.org/dist/Term-Terminfo BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: gcc BuildRequires: glibc-devel BuildRequires: make BuildRequires: ncurses-devel BuildRequires: perl-macros BuildRequires: pkgconfig BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CChecker) >= 0.02 BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Module::Build::Using::PkgConfig) BuildRequires: perl(Test::More) Provides: perl(Term::Terminfo) = %{version} %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 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) %doc Changes README %license LICENSE %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