File perl-TermReadLine-Gnu.spec of Package perl-TermReadLine-Gnu

#
# spec file for package perl-TermReadLine-Gnu (Version 1.16)
#
# Copyright (c) 2009 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-TermReadLine-Gnu
BuildRequires:  readline-devel
Version:        1.16
Release:        103
Requires:       readline
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        GPL v2 or later
Url:            http://search.cpan.org/~hayashi/Term-ReadLine-Gnu-1.16
Summary:        Perl extension for the GNU Readline/History Library
Source:         Term-ReadLine-Gnu-%{version}.tar.bz2
Patch:          Term-ReadLine-Gnu-%{version}.dif
Patch1:         Term-ReadLine-Gnu-1.16-no_release.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is an implementation of Term::ReadLine using the GNU
Readline/History Library. This package also has the interface with the
almost all functions and variables which are documented in the GNU
Readline/History Library Manual.



Authors:
--------
    Hiroo Hayashi <hiroo.hayashi@computer.org>

%prep
%setup -n Term-ReadLine-Gnu-%{version}
%patch
%patch1 -p1

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
make

%check
if perl -E "open(IN,\"</dev/tty\") || die;" ; then
make test
fi

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%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
* Mon Feb 09 2009 ro@suse.de
- use fix from version 1.17 to fix build (testsuite) with
  perl 5.10
- run testsuite only if it is possible to open dev/tty for reading
* Wed Jan 14 2009 ms@suse.de
- evaluate test results correctly (bnc #465992)
- run make test without arch exclusion (bnc #465991)
* Fri Jan 25 2008 ms@suse.de
- fixed build
* Tue Jan 30 2007 ms@suse.de
- update to version 1.16
  1.16  2006-04-02
    - fix Makefile.PL to work with the latest Cygwin.
  (Use 1.15 for old Cygwin.)
    - readline-5.1 support
  new function
  variable_value
  reset_screen_size
  new variable
  prefer_env_winsize
* Mon Aug 28 2006 ms@suse.de
- synchronize the outstream fd inside the readline library (#200843)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 28 2005 mls@suse.de
- update to 1.15, fixes [#142032]
* Thu Oct 07 2004 ms@suse.de
- Readline 1.14
openSUSE Build Service is sponsored by