File perl-Term-ReadKey.spec of Package perl-Term-ReadKey

# spec file for package perl-Term-ReadKey
# Copyright (c) 2013 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

Name:           perl-Term-ReadKey
Version:        2.31
Release:        0
Summary:        Module for Simple Terminal Control
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
BuildRequires:  make
BuildRequires:  perl-macros
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       /bin/stty
Provides:       perl-TermReadKey = %{version}
Obsoletes:      perl-TermReadKey <= 2.30
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This module, 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/modification of the screen
size, and retrieval/modification of the control characters.

%setup -q -n "TermReadKey-%{version}"
sed -i '/^auto_install/d' Makefile.PL

perl Makefile.PL PREFIX="%{_prefix}"
make %{?_smp_flags}


# s390/s390x don't have /dev/tty
%ifnarch s390 s390x
make test

rm -rf %{buildroot}

%dir %{perl_vendorarch}/Term
%dir %{perl_vendorarch}/auto/Term
%doc %{perl_man3dir}/Term::ReadKey.%{perl_man3ext}%{ext_man}

openSUSE Build Service is sponsored by