2006-12-19 00:15:52 +01:00
|
|
|
#
|
2011-10-07 16:20:42 +02:00
|
|
|
# spec file for package expect
|
2006-12-19 00:15:52 +01:00
|
|
|
#
|
2011-10-07 16:20:42 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:52 +01:00
|
|
|
#
|
2008-10-22 17:50:47 +02: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.
|
|
|
|
|
2008-03-21 01:34:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:15:52 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-21 01:34:20 +01:00
|
|
|
Url: http://expect.nist.gov
|
|
|
|
|
|
|
|
Name: expect
|
2011-12-21 12:18:15 +01:00
|
|
|
BuildRequires: autoconf
|
2008-03-21 01:34:20 +01:00
|
|
|
BuildRequires: tcl-devel
|
2011-10-07 16:20:42 +02:00
|
|
|
Version: 5.45
|
2011-12-21 12:18:15 +01:00
|
|
|
Release: 0
|
2008-03-21 01:34:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: A Tool for Automating Interactive Programs
|
2011-12-21 12:18:15 +01:00
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Development/Languages/Tcl
|
2011-10-07 16:20:42 +02:00
|
|
|
Source: %{name}%{version}.tar.gz
|
2008-03-21 01:34:20 +01:00
|
|
|
Source1: expect-rpmlintrc
|
|
|
|
Patch1: expect.patch
|
|
|
|
Patch2: expect-fixes.patch
|
2006-12-19 00:15:52 +01:00
|
|
|
|
|
|
|
%description
|
2008-03-21 01:34:20 +01:00
|
|
|
Expect is a tool primarily for automating interactive applications,
|
|
|
|
such as telnet, ftp, passwd, fsck, rlogin, tip, and more. Expect
|
|
|
|
really makes this stuff trivial. Expect is also useful for testing
|
|
|
|
these applications. It is described in many books, articles, papers,
|
|
|
|
and FAQs. There is an entire book on it available from O'Reilly.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header Files and C API Documentation for expect
|
2011-12-21 12:18:15 +01:00
|
|
|
Group: Development/Libraries/Tcl
|
2008-03-21 01:34:20 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files and documentation needed for linking
|
|
|
|
to expect from programs written in compiled languages like C, C++, etc.
|
|
|
|
|
|
|
|
This package is not needed for developing scripts that run under the
|
|
|
|
/usr/bin/expect interpreter, or any other Tcl interpreter with the
|
|
|
|
expect package loaded.
|
2006-12-19 00:15:52 +01:00
|
|
|
|
|
|
|
%prep
|
2011-10-07 16:20:42 +02:00
|
|
|
%setup -q -n %name%version
|
2006-12-19 00:15:52 +01:00
|
|
|
%patch1
|
2008-03-21 01:34:20 +01:00
|
|
|
%patch2
|
2006-12-19 00:15:52 +01:00
|
|
|
|
|
|
|
%build
|
2008-03-21 01:34:20 +01:00
|
|
|
autoreconf
|
2011-10-07 16:20:42 +02:00
|
|
|
%configure \
|
2008-03-21 01:34:20 +01:00
|
|
|
--with-tcl=%_libdir \
|
|
|
|
--with-tk=no_tk \
|
2011-10-07 16:20:42 +02:00
|
|
|
--with-tclinclude=%_includedir \
|
2006-12-19 00:15:52 +01:00
|
|
|
--enable-shared
|
2011-10-07 16:20:42 +02:00
|
|
|
make %{?_smp_mflags} all pkglibdir=%_libdir/tcl/%name%version
|
2008-03-21 01:34:20 +01:00
|
|
|
|
|
|
|
%check
|
2006-12-19 00:15:52 +01:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
# set the right path to the expect binary...
|
2008-04-06 03:57:53 +02:00
|
|
|
sed -i \
|
|
|
|
-e '1s,^#![^ ]*expectk,#!/usr/bin/wish\npackage require Expect,' \
|
|
|
|
-e '1s,^#![^ ]*expect,#!/usr/bin/expect,' \
|
|
|
|
example/*
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT pkglibdir=%_libdir/tcl/%name%version
|
2006-12-19 00:15:52 +01:00
|
|
|
# Remove some executables and manpages we don't want to ship
|
|
|
|
rm $RPM_BUILD_ROOT%_prefix/bin/*passwd
|
|
|
|
rm $RPM_BUILD_ROOT%_mandir/*/*passwd*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-04-06 03:57:53 +02:00
|
|
|
%_prefix/bin/*
|
|
|
|
%_libdir/tcl/*
|
2011-10-07 16:20:42 +02:00
|
|
|
%_libdir/lib*.so
|
2008-04-06 03:57:53 +02:00
|
|
|
%doc %_mandir/man1/*
|
2006-12-19 00:15:52 +01:00
|
|
|
%doc ChangeLog HISTORY INSTALL FAQ NEWS README
|
|
|
|
|
2008-03-21 01:34:20 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2008-04-06 03:57:53 +02:00
|
|
|
%_includedir/*
|
|
|
|
%doc %_mandir/man3/*
|
2008-03-21 01:34:20 +01:00
|
|
|
|
|
|
|
%changelog
|