99e04f7
Name:           perl-Expect
adfbf0e
Version:        1.20
de03d1c
Release:        2%{?dist}
99e04f7
Summary:        Expect for Perl
99e04f7
99e04f7
Group:          Development/Libraries
4090845
License:        GPL+ or Artistic
99e04f7
URL:            http://search.cpan.org/dist/Expect/
99e04f7
Source0:        http://www.cpan.org/authors/id/R/RG/RGIERSIG/Expect-%{version}.tar.gz
99e04f7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
99e04f7
99e04f7
BuildArch:      noarch
99e04f7
BuildRequires:  perl(IO::Pty) >= 1.03
99e04f7
BuildRequires:  perl(IO::Tty) >= 1.03
4090845
BuildRequires:  perl(ExtUtils::MakeMaker)
99e04f7
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
99e04f7
99e04f7
%description
99e04f7
This module provides Expect-like functionality to Perl.  Expect is
99e04f7
a tool for automating interactive applications such as telnet, ftp,
99e04f7
passwd, fsck, rlogin, tip, etc.
99e04f7
99e04f7
99e04f7
%prep
99e04f7
%setup -q -n Expect-%{version}
99e04f7
%{__sed} -i 's|^#!/usr/local/bin/perl|#!%{__perl}|' examples/kibitz/kibitz tutorial/[2-6].*
adfbf0e
chmod a-x examples/ssh.pl examples/kibitz/kibitz tutorial/[2-6].*
99e04f7
99e04f7
99e04f7
%build
99e04f7
%{__perl} Makefile.PL INSTALLDIRS=vendor
99e04f7
make %{?_smp_mflags}
99e04f7
99e04f7
99e04f7
%install
99e04f7
rm -rf $RPM_BUILD_ROOT
99e04f7
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
99e04f7
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
99e04f7
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
99e04f7
chmod -R u+w $RPM_BUILD_ROOT/*
99e04f7
99e04f7
99e04f7
%check
99e04f7
make test
99e04f7
99e04f7
99e04f7
%clean
99e04f7
rm -rf $RPM_BUILD_ROOT
99e04f7
99e04f7
99e04f7
%files
99e04f7
%defattr(-,root,root,-)
99e04f7
%doc Changes README examples/ tutorial/
99e04f7
%{perl_vendorlib}/Expect.*
99e04f7
%{_mandir}/man3/*.3pm*
99e04f7
99e04f7
99e04f7
%changelog
de03d1c
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-2
de03d1c
- rebuild for new perl
de03d1c
4090845
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-1.1
4090845
- correct license tag
4090845
- add BR: perl(ExtUtils::MakeMaker)
4090845
adfbf0e
* Fri Jul 21 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.20-1
adfbf0e
- Update to 1.20.
adfbf0e
db195bb
* Tue Jul 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.19-1
db195bb
- Update to 1.19.
db195bb
aa1eccc
* Tue Jul 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-1
aa1eccc
- Update to 1.18.
aa1eccc
0e49b01
* Wed May 31 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.17-1
0e49b01
- Update to 1.17.
0e49b01
99e04f7
* Tue May 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-2
99e04f7
- Description improved as suggested in #191622.
99e04f7
99e04f7
* Mon May 08 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
99e04f7
- First build.