# # spec file for package expect (Version 5.44.1.11) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Url: http://expect.nist.gov Name: expect BuildRequires: tcl-devel Version: 5.44.1.11 Release: 2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: Development/Languages/Tcl License: Public Domain, Freeware Summary: A Tool for Automating Interactive Programs AutoReqProv: on Source: %{name}-%{version}.tar.bz2 Source1: expect-rpmlintrc Patch1: expect.patch Patch2: expect-fixes.patch Patch3: expect-stty.patch %description 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. Authors: -------- libes@nist.gov %package devel License: Public Domain, Freeware Group: Development/Libraries/Tcl Summary: Header Files and C API Documentation for expect %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. Authors: -------- libes@nist.gov %prep %setup -q %patch1 %patch2 %patch3 %build autoreconf CFLAGS="%optflags" \ ./configure \ --prefix=%_prefix \ --libdir=%_libdir \ --with-tcl=%_libdir \ --with-tk=no_tk \ --mandir=%_mandir \ --with-tclinclude=/usr/include \ --enable-shared make all pkglibdir=%_libdir/tcl/%name%version %check make test %install # set the right path to the expect binary... 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 # Remove some executables and manpages we don't want to ship rm $RPM_BUILD_ROOT%_prefix/bin/*passwd rm $RPM_BUILD_ROOT%_mandir/*/*passwd* %clean rm -rf %buildroot %files %defattr(-,root,root) %_prefix/bin/* %_libdir/tcl/* %_libdir/lib*so %doc %_mandir/man1/* %doc ChangeLog HISTORY INSTALL FAQ NEWS README %files devel %defattr(-,root,root) %_includedir/* %doc %_mandir/man3/* %changelog