2007-01-15 23:30:30 +00:00
|
|
|
#
|
2015-04-15 19:02:42 +00:00
|
|
|
# spec file for package perl-Expect
|
2007-01-15 23:30:30 +00:00
|
|
|
#
|
2015-04-15 19:02:42 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2009-06-18 15:02:53 +00:00
|
|
|
|
2007-01-15 23:30:30 +00:00
|
|
|
Name: perl-Expect
|
2015-04-15 19:02:42 +00:00
|
|
|
Version: 1.32
|
|
|
|
Release: 0
|
|
|
|
%define cpan_name Expect
|
|
|
|
Summary: Automate Interactions with Command Line Programs That Expose a Text Term[cut]
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2007-01-15 23:30:30 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-15 19:02:42 +00:00
|
|
|
Url: http://search.cpan.org/dist/Expect/
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/SZ/SZABGAB/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
Patch0: Expect.diff
|
|
|
|
BuildArch: noarch
|
2007-01-15 23:30:30 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-04-15 19:02:42 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(IO::Pty) >= 1.11
|
|
|
|
BuildRequires: perl(IO::Tty) >= 1.11
|
|
|
|
BuildRequires: perl(Test::Exception) >= 0.32
|
|
|
|
BuildRequires: perl(Test::More) >= 1.00
|
|
|
|
Requires: perl(IO::Pty) >= 1.11
|
|
|
|
Requires: perl(IO::Tty) >= 1.11
|
2010-12-05 20:50:00 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:30 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-15 19:02:42 +00:00
|
|
|
The Expect module is a successor of Comm.pl and a descendent of Chat.pl. It
|
|
|
|
more closely resembles the Tcl Expect language than its predecessors. It
|
|
|
|
does not contain any of the networking code found in Comm.pl. I suspect
|
|
|
|
this would be obsolete anyway given the advent of IO::Socket and external
|
|
|
|
tools such as netcat.
|
2007-01-15 23:30:30 +00:00
|
|
|
|
2015-04-15 19:02:42 +00:00
|
|
|
Expect.pm is an attempt to have more of a switch() & case feeling to make
|
|
|
|
decision processing more fluid. Three separate types of debugging have been
|
|
|
|
implemented to make code production easier.
|
2007-01-15 23:30:30 +00:00
|
|
|
|
2015-04-15 19:02:42 +00:00
|
|
|
It is possible to interconnect multiple file handles (and processes) much
|
|
|
|
like Tcl's Expect. An attempt was made to enable all the features of Tcl's
|
|
|
|
Expect without forcing Tcl on the victim programmer :-) .
|
2007-01-15 23:30:30 +00:00
|
|
|
|
2015-04-15 19:02:42 +00:00
|
|
|
Please, before you consider using Expect, read the FAQs about the /"I want
|
|
|
|
to automate password entry for su/ssh/scp/rsh/..." manpage and the /"I want
|
|
|
|
to use Expect to automate [anything with a buzzword]..." manpage
|
2007-01-15 23:30:30 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-15 19:02:42 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%patch0 -p1
|
2007-01-15 23:30:30 +00:00
|
|
|
|
|
|
|
%build
|
2015-04-15 19:02:42 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2007-01-15 23:30:30 +00:00
|
|
|
|
|
|
|
%install
|
2015-04-15 19:02:42 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:30 +00:00
|
|
|
%perl_process_packlist
|
2015-04-15 19:02:42 +00:00
|
|
|
%perl_gen_filelist
|
2008-02-08 19:22:43 +00:00
|
|
|
|
2015-04-15 19:02:42 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes examples README.md
|
2007-01-15 23:30:30 +00:00
|
|
|
|
2007-06-14 13:49:17 +00:00
|
|
|
%changelog
|