File perl-TermReadKey.spec of Package perl-TermReadKey

#
# spec file for package perl-TermReadKey (Version 2.30)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           perl-TermReadKey
Version:        2.30
Release:        146
Requires:       /bin/stty
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        PERMISSIVE-OSI-COMPLIANT
Url:            http://cpan.org/modules/by-module/Term/
Summary:        A Perl Module for Simple Terminal Control
Source:         TermReadKey-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros

%description
ReadKey provides ioctl control for terminals and Win32 consoles so the
input modes can be changed (thus allowing reads of a single character
at a time), and also provides non-blocking reads of stdin as well as
several other terminal related features, including retrieval and
modification of the screen size and retrieval and modification of the
control characters.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%prep
%setup -n TermReadKey-%{version}

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
# s390/s390x don't have /dev/tty
%ifnarch s390 s390x
make test
%endif

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Term
%{perl_vendorarch}/auto/Term

%changelog