%define pkg_name Term-ReadLine-Perl %define pkg_version 1.0302 %define rpm_pkg_version 1.03_02 %define rpm_pkg_release 1.n0i.11 Summary: GNU Readline history and completion in Perl Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/I/IL/ILYAZ/modules/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) %description This is a quick implementation of the minimal interface to Readline libraries. The implementation is made in Perl (mostly) by Jeffrey Friedl. The only thing this library does is to make it conformant (and add some minimal changes, like using Term::ReadKey if present, and correct work under xterm). %prep %setup -n %{pkg_name}-%{pkg_version} find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} # tests are impossible to be run when build non-interactively %{?_with_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES README %{perl_vendorlib}/* %changelog * Wed May 24 2006 Marius Feraru - 1.03_02-1.n0i.11.1.0302 - version 1.0302 * Sun Apr 09 2006 Marius Feraru - 1.03-1.n0i.10 - version 1.03 * Mon Mar 27 2006 Marius Feraru - 1.02_08-1.n0i.9.1.0208 - version 1.0208 * Sat Jul 23 2005 Marius Feraru 1.02_03-4.n0i.8.1.0203 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Wed Mar 30 2005 Marius FERARU 1.02_03-3.n0i.7.1.0203 - rebuild (FC4) * Mon Nov 29 2004 Marius FERARU 1.02_03-2.n0i.6.1.0203 - automatic rebuild * Fri Apr 30 2004 Marius Feraru 1.02_03-1.n0i.5.1.203 - automatic rebuild * Wed Apr 21 2004 Marius Feraru 1.02_03-1.n0i.4 - spec file (re?)created using N0i::CPAN::RPMizer/2004032101 - rebuild (perl 5.8.4) * Fri Jan 23 2004 Marius FERARU 1.0203-0.n0i.3 - rebuild (perl 5.8.3) * Tue Dec 30 2003 Marius FERARU 1.0203-0.n0i.2 - rebuilt on perl 5.8.2 / Fedora 1 Devel (tobe FC2) * Mon Nov 03 2003 Marius FERARU 1.0203-0.n0i.1 - version 1.0203 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001