960bd70
Name:           perl-Term-Prompt
960bd70
Version:        1.04
8820138
Release:        6%{?dist}
960bd70
Summary:        Perl extension for prompting a user for information
960bd70
License:        GPL+ or Artistic
960bd70
Group:          Development/Libraries
960bd70
URL:            http://search.cpan.org/dist/Term-Prompt/
960bd70
Source0:        http://www.cpan.org/authors/id/P/PE/PERSICOM/Term-Prompt-%{version}.tar.gz
960bd70
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
960bd70
BuildArch:      noarch
960bd70
BuildRequires:  perl(ExtUtils::MakeMaker)
960bd70
BuildRequires:  perl(Term::ReadKey) >= 1
960bd70
BuildRequires:  perl(Test::More)
960bd70
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
960bd70
960bd70
%description
960bd70
This main function of this module is to accept interactive input. You
960bd70
specify the type of inputs allowed, a prompt, help text and defaults and it
960bd70
will deal with the user interface, (and the user!), by displaying the
960bd70
prompt, showing the default, and checking to be sure that the response is
960bd70
one of the legal choices. Additional 'types' that could be added would be a
960bd70
phone type, a social security type, a generic numeric pattern type...
960bd70
960bd70
%prep
960bd70
%setup -q -n Term-Prompt-%{version}
960bd70
for f in $(find . -type f); do
960bd70
    chmod -x $f
960bd70
    sed -i -e 's/\r//' $f
960bd70
done
960bd70
960bd70
%build
960bd70
%{__perl} Makefile.PL INSTALLDIRS=vendor
960bd70
make %{?_smp_mflags}
960bd70
960bd70
%install
960bd70
rm -rf $RPM_BUILD_ROOT
960bd70
960bd70
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
960bd70
960bd70
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
960bd70
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
960bd70
960bd70
%{_fixperms} $RPM_BUILD_ROOT/*
960bd70
960bd70
%check
960bd70
make test
960bd70
960bd70
%clean
960bd70
rm -rf $RPM_BUILD_ROOT
960bd70
960bd70
%files
960bd70
%defattr(-,root,root,-)
960bd70
%doc Changes README
960bd70
%{perl_vendorlib}/*
960bd70
%{_mandir}/man3/*
960bd70
960bd70
%changelog
8820138
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-6
8820138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8820138
f731950
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.04-5
f731950
- 661697 rebuild for fixing problems with vendorach/lib
f731950
4bfc767
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.04-4
4bfc767
- Mass rebuild with perl-5.12.0
4bfc767
f0832d3
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.04-3
f0832d3
- rebuild against perl 5.10.1
f0832d3
9ae0deb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-2
9ae0deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9ae0deb
960bd70
* Sun May 03 2009 Iain Arnell 1.04-1
960bd70
- Specfile autogenerated by cpanspec 1.77.