2011-09-28 18:27:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Term-ReadKey
|
|
|
|
#
|
|
|
|
# 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-ReadKey
|
|
|
|
Version: 2.30
|
|
|
|
Release: 0
|
2011-10-05 12:46:03 +02:00
|
|
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
2011-09-28 18:27:04 +02:00
|
|
|
Summary: Module for Simple Terminal Control
|
|
|
|
Url: http://search.cpan.org/dist/Term-ReadKey
|
|
|
|
Group: Development/Libraries/Perl
|
2011-10-05 12:46:03 +02:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
|
2011-09-28 18:27:04 +02:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2011-10-05 12:46:03 +02:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
Requires: /bin/stty
|
2011-10-02 20:57:02 +02:00
|
|
|
Provides: perl-TermReadKey = %{version}
|
2011-10-05 12:46:03 +02:00
|
|
|
Obsoletes: perl-TermReadKey < 2.30
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{perl_requires}
|
2011-09-28 18:27:04 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "TermReadKey-%{version}"
|
2011-10-05 12:46:03 +02:00
|
|
|
sed -i '/^auto_install/d' Makefile.PL
|
2011-09-28 18:27:04 +02:00
|
|
|
|
|
|
|
%build
|
2011-10-05 12:46:03 +02:00
|
|
|
perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
make %{?_smp_flags}
|
2011-09-28 18:27:04 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
2011-10-02 20:57:02 +02:00
|
|
|
# s390/s390x don't have /dev/tty
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
|
2011-09-28 18:27:04 +02:00
|
|
|
%check
|
2011-10-05 12:46:03 +02:00
|
|
|
make test
|
2011-10-02 20:57:02 +02:00
|
|
|
%endif
|
2011-09-28 18:27:04 +02:00
|
|
|
|
|
|
|
%clean
|
2011-10-05 12:46:03 +02:00
|
|
|
rm -rf %{buildroot}
|
2011-09-28 18:27:04 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
%dir %{perl_vendorarch}/Term
|
|
|
|
%{perl_vendorarch}/Term/ReadKey.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Term
|
|
|
|
%{perl_vendorarch}/auto/Term/ReadKey
|
|
|
|
%doc %{perl_man3dir}/Term::ReadKey.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|