2007-01-15 23:30:30 +00:00
|
|
|
#
|
2008-02-08 19:22:43 +00:00
|
|
|
# spec file for package perl-Expect (Version 1.21)
|
2007-01-15 23:30:30 +00:00
|
|
|
#
|
2009-06-18 15:02:53 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:30 +00:00
|
|
|
#
|
2009-06-18 15:02:53 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:30:30 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:02:53 +00:00
|
|
|
|
2007-01-15 23:30:30 +00:00
|
|
|
Name: perl-Expect
|
|
|
|
BuildRequires: perl-IO-Stty perl-IO-Tty
|
2008-02-08 19:22:43 +00:00
|
|
|
Url: http://search.cpan.org/search?module=Expect
|
2007-01-15 23:30:30 +00:00
|
|
|
License: Artistic License
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: perl-IO-Tty perl-IO-Stty
|
|
|
|
Requires: perl = %{perl_version}
|
2008-02-08 19:22:43 +00:00
|
|
|
AutoReqProv: on
|
2007-01-15 23:30:30 +00:00
|
|
|
Summary: Expect for perl
|
2008-02-08 19:22:43 +00:00
|
|
|
Version: 1.21
|
2009-06-18 15:02:53 +00:00
|
|
|
Release: 46
|
2007-01-15 23:30:30 +00:00
|
|
|
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
|
2007-06-14 13:49:17 +00:00
|
|
|
chmod 644 %{_builddir}/Expect-%{version}/tutorial/*
|
2007-01-15 23:30:30 +00:00
|
|
|
|
2008-02-08 19:22:43 +00:00
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
|
2007-01-15 23:30:30 +00:00
|
|
|
%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
|
|
|
|
|
2007-06-14 13:49:17 +00:00
|
|
|
%changelog
|
2008-02-08 19:22:43 +00:00
|
|
|
* Tue Feb 05 2008 mc@suse.de
|
|
|
|
- update to version 1.21
|
|
|
|
* fix testcase
|
|
|
|
* Wed Jun 13 2007 mc@suse.de
|
2007-06-14 13:49:17 +00:00
|
|
|
- remove execute permissions from tutorial files
|
2008-02-08 19:22:43 +00:00
|
|
|
* Tue Sep 19 2006 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- 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()
|
2008-02-08 19:22:43 +00:00
|
|
|
* Fri Jul 14 2006 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- Version 1.18
|
2007-06-14 13:49:17 +00:00
|
|
|
- added param check for expect()
|
|
|
|
- added another pipe to synchronize spawning. Closing the slave in
|
2007-01-15 23:30:30 +00:00
|
|
|
the parent can lead to a hang if the child already wrote
|
|
|
|
something into it...
|
2007-06-14 13:49:17 +00:00
|
|
|
- some bugfixes
|
2008-02-08 19:22:43 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-02-08 19:22:43 +00:00
|
|
|
* Thu Sep 29 2005 dmueller@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- add norootforbuild
|
2008-02-08 19:22:43 +00:00
|
|
|
* Fri Aug 22 2003 mjancar@suse.cz
|
2007-01-15 23:30:30 +00:00
|
|
|
- require the perl version we build with
|
2008-02-08 19:22:43 +00:00
|
|
|
* Fri Jul 18 2003 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- add vendorarch changes
|
|
|
|
- add make test
|
2008-02-08 19:22:43 +00:00
|
|
|
* Mon May 19 2003 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- removed unpackaged Files from RPM_BUILD_ROOT
|
2008-02-08 19:22:43 +00:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- removed bogus self-provides
|
2008-02-08 19:22:43 +00:00
|
|
|
* Tue Jul 02 2002 mls@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- remove race in .packlist generation
|
2008-02-08 19:22:43 +00:00
|
|
|
* Fri Apr 05 2002 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- 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
|
2008-02-08 19:22:43 +00:00
|
|
|
* Wed Nov 07 2001 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- 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.
|
2008-02-08 19:22:43 +00:00
|
|
|
* Sun Aug 12 2001 kukuk@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- Fix path to perl interpreter
|
2008-02-08 19:22:43 +00:00
|
|
|
* Thu Jun 21 2001 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- fixed the specfile. Used more RPM macros
|
2008-02-08 19:22:43 +00:00
|
|
|
* Wed Feb 21 2001 mc@suse.de
|
2007-01-15 23:30:30 +00:00
|
|
|
- first package, v1.11
|