File perl-Expect.spec of Package perl-Expect

#
# spec file for package perl-Expect (Version 1.21)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           perl-Expect
BuildRequires:  perl-IO-Stty perl-IO-Tty
Url:            http://search.cpan.org/search?module=Expect
License:        Artistic License
Group:          Development/Libraries/Perl
Requires:       perl-IO-Tty perl-IO-Stty
Requires:       perl = %{perl_version}
AutoReqProv:    on
Summary:        Expect for perl
Version:        1.21
Release:        1
Source:         Expect-%{version}.tar.gz
Patch:          Expect.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A tool for automating interactive programs



Authors:
--------
    Roland Giersig <RGiersig@cpan.org>
    Austin Schutz <tex@habit.com>

%prep
%setup -n Expect-%{version}
%patch -p1

%build
perl Makefile.PL
make
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 644 %{_builddir}/Expect-%{version}/tutorial/*

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%{perl_vendorarch}/auto/Expect/
/%{perl_vendorlib}/Expect.pod
/%{perl_vendorlib}/Expect.pm
%doc tutorial
%doc examples
%doc %{_mandir}/man3/*
/var/adm/perl-modules/perl-Expect

%changelog
* Tue Feb 05 2008 mc@suse.de
- update to version 1.21
  * fix testcase
* Wed Jun 13 2007 mc@suse.de
- remove execute permissions from tutorial files
* Tue Sep 19 2006 mc@suse.de
- Version 1.20
  * fixed non-localized usage of $_
  * added new example ssh.pl
  * added early return to send and send_slow if filehandle was closed
  * fixed bug in expect() param handling (exact pattern "0" was ignored)
  * fixed bug in _make_readable()
* Fri Jul 14 2006 mc@suse.de
- Version 1.18
  - added param check for expect()
  - added another pipe to synchronize spawning. Closing the slave in
  the parent can lead to a hang if the child already wrote
  something into it...
  - some bugfixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Fri Jul 18 2003 mc@suse.de
- add vendorarch changes
- add make test
* Mon May 19 2003 mc@suse.de
- removed unpackaged Files from RPM_BUILD_ROOT
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Fri Apr 05 2002 mc@suse.de
- switch to version 1.15
- changed tests to check out pty behaviour (max. string length)
- added autoflush(1) to log_file
- split 'new' and 'spawn' to be able to set slave pty params via stty
  before actually spawning the program
- added print_log_file(), send() now no longer prints to log file or
  stdout.
- spawn() now uses IO::Pty spawn, thus exec errors are reported and
  ssh should work too!
- timeout handlers now also can exp_continue
- added 'raw_pty' option, also setting master to raw if isatty()
- use 'set_raw' instead of stty("raw"); IO::Stty now optional
- updated docs & FAQs; explained how terminal sizes and SIGWINCH
  should be propagated
- bug fixes
* Wed Nov 07 2001 mc@suse.de
- switch to version 1.12
- exp_Max_Accum didn't work for interact.
- removed soft_close() from DESTROY.  Being overly nice to a doomed process
  doesn't pay off.  Old behaviour is available via
  $Expect::Do_Soft_Close = 1;
- cleanup of log and exp_internal output
- added various aliases for functions starting with 'exp_'
- moved FAQ and intro into the main pod as I got the impression
  that many users didn't bother to read all the documentation
  or didn't know that it was there.
- added a hook for log_file: can be set to a code ref.
* Sun Aug 12 2001 kukuk@suse.de
- Fix path to perl interpreter
* Thu Jun 21 2001 mc@suse.de
- fixed the specfile. Used more RPM macros
* Wed Feb 21 2001 mc@suse.de
- first package, v1.11