1
0
perl-Term-ReadKey/perl-Term-ReadKey.spec
Stephan Kulow 7959835614 - update to 2.37
* Better support parallel builds by making 'dynamic' a dependency of the ReadKey.pm
   * Add a package declaration to the ReadKey_pm.PL to aid indexing
   * Use FULLPERLRUNINST to run the ReadKey_pm.PL to get the 'blib'
   * Fix GetTerminalSize() argument handling
   * Fix miniperl build on Win32
   * Remove unused Cwd
   * Fix TAP output
   * Fix warnings in XS file
   * Don't attempt some tests if STDIN is not a terminal
   * Generate ReadKey.pm from  ReadKey_pm.PL to expand blockoptions
   * demand-load Carp,
   * remove unneeded AutoLoader,
   * Improve genchars.pl, support make -s silence.
   * Improve Makefile.PL add SIGN, fix pure_site_install, support dual-life, fix realclean

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ReadKey?expand=0&rev=12
2017-09-24 06:49:26 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Term-ReadKey
#
# Copyright (c) 2017 SUSE LINUX 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.37
Release: 0
Summary: Module for Simple Terminal Control
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Term-ReadKey
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
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
%{perl_requires}
%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}"
sed -i '/^auto_install/d' Makefile.PL
%build
perl Makefile.PL PREFIX="%{_prefix}"
make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%check
# s390/s390x don't have /dev/tty
%ifnarch s390 s390x
make test
%endif
%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