Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37512816
en ru br
ALT Linux repos
S:5.45.4-alt4
5.0: 5.44-alt3
4.1: 5.44-alt2
4.0: 5.43-alt3
3.0: 5.43-alt1

Other repositories
Upstream:5.44.1

Group :: Development/Tcl
RPM: expect

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# -*- rpm-spec -*-
# $Id: expect,v 1.17 2005/04/03 12:23:41 me Exp $

%define snapshot 20050329
%def_with test

Name: expect
Version: 5.43
Release: alt1
Serial: 1

Summary: A tcl extension for simplifying program-script interaction
License: BSD
Group: Development/Tcl
Url: http://expect.nist.gov/

Source0: %name-%{?snapshot:%snapshot}%{!?snapshot:%version}.tar.bz2
Source1: autopasswd

Patch0: expect-5.39-rh-spawn.patch
Patch1: expect-5.38-rh-mkpasswd.patch
Patch2: expect-5.38-rh-rftp.patch
Patch3: expect-5.38-rh-setpgrp.patch
Patch4: expect-5.39-fixcat.patch
Patch5: expect-5.39-rh-libdir.patch
Patch6: expect-5.39-alt-fixline.patch

BuildRequires: tcl-devel >= 8.4.0-alt1
Requires: tcl >= 8.4.0-alt1
Requires: /dev/pts

%package devel
Summary: Expect static library and header files
Group: Development/C
Requires: %name = %serial:%version-%release tcl-devel >= 8.4.0-alt1

%package examples
Summary: Example apptications using Expect
Group: Development/Tcl
Requires: %name = %serial:%version-%release

%description
Expect is a tcl extension for automating interactive applications such
as telnet, ftp, passwd, fsck, rlogin, tip, etc.  Expect is also useful
for testing the named applications.  Expect makes it easy for a script
to control another program and interact with it.

Install the expect package if you'd like to develop scripts which interact
with interactive applications.  You'll also need to install the tcl
package.

%description devel
Expect is a tcl extension for automating interactive applications such
as telnet, ftp, passwd, fsck, rlogin, tip, etc.  Expect is also useful
for testing the named applications.  Expect makes it easy for a script
to control another program and interact with it.

This package provides development environment for expect.

%description examples
Expect is a tcl extension for automating interactive applications such
as telnet, ftp, passwd, fsck, rlogin, tip, etc.  Expect is also useful
for testing the named applications.  Expect makes it easy for a script
to control another program and interact with it.

This package provides example programs found in expect bundle.

%prep
%setup -q %{?snapshot:-c}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%build
%configure \
--enable-shared \
--without-x \
--with-tcl=%_libdir \
--with-tclinclude=%_includedir/tcl \
#
%make_build all %{?_with_test: test}

%install
%make_install INSTALL_ROOT=%buildroot install
%__ln_s -f lib%name%version.so %buildroot%_libdir/lib%name.so
%__install -p -m755 %SOURCE1 %buildroot%_bindir/autopasswd
%__mkdir_p -m0755 %buildroot%_tcldatadir/%name%version
%__cat <<EOF > %buildroot%_tcldatadir/%name%version/pkgIndex.tcl
package ifneeded Expect %version.0 [list load [file join \$dir .. .. .. lib libexpect%version.so]]
EOF

%files
%doc FAQ NEWS README
%_bindir/expect
%_bindir/autoexpect
%_libdir/lib%name%version.so
%_tcldatadir/%name%version
%_man1dir/expect.*
%_man1dir/autoexpect.*

%files devel
%_includedir/*
%_libdir/lib%name.so
%_man3dir/*

%files examples
%_bindir/*
%_man1dir/*
%exclude %_bindir/expect
%exclude %_bindir/autoexpect
%exclude %_man1dir/expect.*
%exclude %_man1dir/autoexpect.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin