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


Name:           perl-TermReadKey
Version:        2.30
Release:        135
Requires:       /bin/stty
Requires:       perl = %{perl_version}
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:         TermReadKey-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
# s390/s390x/sparc don't have /dev/tty
%ifnarch s390 s390x sparc sparc64
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
/var/adm/perl-modules/%{name}

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Aug 01 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 02 2002 mls@suse.de
- remove race in .packlist generation
* Thu Jan 17 2002 rvasice@suse.cz
- update to version 2.16
* Fri Nov 02 2001 rvasice@suse.cz
- initial package release (version 2.14)
openSUSE Build Service is sponsored by