Name: perl-Term-Completion Version: 0.91 Release: 1%{?dist} # lib/Term/Completion.pm -> GPL+ or Artistic # lib/Term/Completion/_POSIX.pm -> GPL+ or Artistic # lib/Term/Completion/_readkey.pm -> GPL+ or Artistic # lib/Term/Completion/_stty.pm -> GPL+ or Artistic # lib/Term/Completion/_termsize.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Read one line of user input, with convenience functions Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAREKR/Term-Completion-%{version}.tar.gz Url: http://search.cpan.org/dist/Term-Completion BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::Handle) BuildRequires: perl(Term::ReadKey) >= 2.3 # test BuildRequires: perl(IO::String) BuildRequires: perl(POSIX) BuildRequires: perl(Test::More) BuildRequires: perl(Term::Size) %description Term::Completion is an extensible, highly configurable replacement for the venerable Term::Complete package. It is object-oriented and thus allows subclassing. Two derived classes are Term::Completion::Multi and Term::Completion::Path. A prompt is printed and the user may enter one line of input, submitting the answer by pressing the ENTER key. %prep %setup -q -n Term-Completion-%{version} find . -type f -exec chmod -c -x {} \; perl -pi -e 's|^#!/opt/perl_5.8.8/bin/perl|#!%{__perl}|' devel/tget.pl %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check # needed for testing... export COLUMNS=80 export LINES=25 make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README devel/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Fri May 01 2009 Chris Weyl 0.91-1 - submission * Fri May 01 2009 Chris Weyl 0.91-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)