8
0
Files
perl-Term-Terminfo/perl-Term-Terminfo.spec

87 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Term-Terminfo
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Term-Terminfo
Version: 0.07
Release: 0
Summary: Access the F<terminfo> database
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Term-Terminfo-%{version}.tar.gz
Url: http://search.cpan.org/dist/Term-Terminfo
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(ExtUtils::CChecker) >= 0.02
BuildRequires: perl(Module::Build)
BuildRequires: gcc glibc-devel make ncurses-devel pkgconfig
%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)
%doc Changes README 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