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

#
# spec file for package perl-TermReadLine-Gnu
#
# Copyright (c) 2013 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/
#


Name:           perl-TermReadLine-Gnu
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  readline-devel
Version:        1.20
Release:        0
Requires:       readline
Url:            http://search.cpan.org/~hayashi/Term-ReadLine-Gnu-1.20
Summary:        Perl extension for the GNU Readline/History Library
License:        GPL-2.0+
Group:          Development/Libraries/Perl
Source:         http://search.cpan.org/CPAN/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-%{version}.tar.gz
Patch:          Term-ReadLine-Gnu-%{version}.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

%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
openSUSE Build Service is sponsored by