File perl-TermReadLine-Gnu.spec of Package perl-TermReadLine-Gnu
#
# spec file for package perl-TermReadLine-Gnu (Version 1.16)
#
# Copyright (c) 2010 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: perl readline-devel
BuildRequires: perl-macros
Version: 1.16
Release: 113
Requires: readline
AutoReqProv: on
Group: Development/Libraries/Perl
License: GPL-2.0+
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
%{perl_requires}
%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 %{?_smp_mflags}
%check
if perl -E "open(IN,\"</dev/tty\") || die;" ; then
make test || true
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
%changelog