diff --git a/.cvsignore b/.cvsignore index e69de29..4c00284 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Term-ReadLine-Gnu-1.17a.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..2c20218 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Term-ReadLine-Gnu-1_17a-2_el5:EL-5:perl-Term-ReadLine-Gnu-1.17a-2.el5.src.rpm:1215205371 diff --git a/perl-Term-ReadLine-Gnu.spec b/perl-Term-ReadLine-Gnu.spec new file mode 100644 index 0000000..e436c1a --- /dev/null +++ b/perl-Term-ReadLine-Gnu.spec @@ -0,0 +1,72 @@ +Name: perl-Term-ReadLine-Gnu +Version: 1.17a +Release: 2%{?dist} +Summary: Perl extension for the GNU Readline/History Library +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Term-ReadLine-Gnu/ +Source0: http://www.cpan.org/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: ncurses-devel +BuildRequires: readline-devel >= 2.1 +BuildRequires: perl >= 5.7 +BuildRequires: expect +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +An implementation of Term::ReadLine using the GNU Readline/History Library. + + +%prep +%setup -q -n Term-ReadLine-Gnu-1.17 + + +%build +# Fix permissions and shebang paths at one shot +find . -type f -exec chmod 0664 '{}' \; \ + -exec sed 's,^#! */usr/local,#!%{_prefix},' -i '{}' \; +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT + +%check +# Expect is used so that we get a PTY, as if we were +# in a real terminal, where readline works +expect -c ' + spawn make test + expect eof + exit [lindex [wait] 3] +' + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Term* +%{_mandir}/man3/* + + +%changelog +* Sat Jun 28 2008 Lubomir Rintel (Good Data) 1.17a-2 +- Tun the test suite with a pseudo-terminal + +* Fri Jun 27 2008 Lubomir Rintel (Good Data) 1.17a-1 +- Specfile autogenerated by cpanspec 1.75. diff --git a/sources b/sources index e69de29..5345190 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +acdd3ded64423390824f31149ebfdf5c Term-ReadLine-Gnu-1.17a.tar.gz