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

#
# spec file for package perl-TermReadLine-Gnu (Version 1.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           perl-TermReadLine-Gnu
BuildRequires:  readline-devel
Version:        1.16
Release:        51
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
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

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

%check
# s390/s390x/sparc don't have /dev/tty
%ifnarch s390 s390x sparc sparc64
make test || true
%endif

%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
* 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