A new user interface for you!

File perl-TermReadKey.spec of Package perl-TermReadKey

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

%define real_name TermReadKey
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib)
%define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib)
%define maketest 0

Name:           perl-%{real_name}
Version:        2.30
Release:        1
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Any permissive
Url:            http://cpan.org/modules/by-module/Term/
Summary:        A Perl Module for Simple Terminal Control
Source:         http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/%{real_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       /bin/stty

BuildRequires:  perl(ExtUtils::MakeMaker)
%if 0%{?fedora_version}
BuildRequires:  perl-devel

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.

    Kenneth Albanowski <kjahds@kjahds.com>

%setup -q -n %{real_name}-%{version}
chmod -R u+w %{_builddir}/%{real_name}-%{version}

%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`

%if %maketest
%ifnarch s390 s390x sparc sparc64
%{__make} test

%if 0%{?suse_version}
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {}
find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {}


%doc %{_mandir}/man?/*
%if 0%{?suse_version}

* Thu May 31 2012 Holger Manthey <holger.manthey@bertelsmann.de>
- remove perl-version require
* Thu Apr 30 2009 Holger Manthey <holger.manthey@bertelsmann.de>
- build for centos
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Aug  1 2005 mjancar@suse.cz
- update to 2.30
* Fri Mar 26 2004 kukuk@suse.de
- Fix Requires (/bin/stty is needed, not XFree86)
* Wed Feb 18 2004 kukuk@suse.de
- Remove unused packages from neededforbuild
- Don't run test suite on machines without /dev/tty
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Tue Jul 15 2003 mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Wed Jun 18 2003 coolo@suse.de
- package directories
* Tue May 20 2003 mjancar@suse.cz
- remove unpackaged files
* Tue Nov 12 2002 prehak@suse.cz
- updated to version 2.21
- updated neededforbuild after xf86-rename
* Mon Jul 22 2002 prehak@suse.cz
- update to version 2.20
- enabled make test
* Tue Jul  2 2002 mls@suse.de
- remove race in .packlist generation
* Thu Jan 17 2002 rvasice@suse.cz
- update to version 2.16
* Fri Nov  2 2001 rvasice@suse.cz
- initial package release (version 2.14)