###############################################################################
name = expect
-version = 5.43
-release = 1
+version = 5.45
+release = 2
+thisapp = %{name}%{version}
groups = Development/Languages
url = http://expect.nist.gov/
summary = A program-script interaction and testing utility.
description
- xpect is a tcl application for automating and testing \
- interactive applications such as telnet, ftp, passwd, fsck, \
- rlogin, tip, etc. Expect makes it easy for a script to \
+ expect is a tcl application for automating and testing
+ interactive applications such as telnet, ftp, passwd, fsck,
+ rlogin, tip, etc. Expect makes it easy for a script to
control another program and interact with it.
end
-source_dl =
-sources = %{thisapp}.0.tar.gz
+source_dl = http://downloads.sourceforge.net/project/expect/Expect/%{version}/
build
requires
autoconf
automake
- tcl
+ chrpath
+ tcl-devel
end
- configure_options = \
- --mandir=/usr/share/man \
- --with-tcl=/usr/lib \
- --with-tclinclude=/usr/include/ \
- --with-x=no \
+ prepare_cmds
+ aclocal
+ autoconf
+
+ cd testsuite
+ autoconf -I..
+ end
+
+ configure_options += \
+ --mandir=%{mandir} \
+ --with-tcl=%{libdir} \
+ --with-tclinclude=%{includedir} \
--enable-shared
test
make test
end
- install
- make install INSTALL_ROOT=%{BUILDROOT}
+ install_cmds
+ # Install lib to right location.
+ mkdir -pv %{BUILDROOT}%{libdir}
+ mv -v %{BUILDROOT}/%{libdir}/tcl*/expect%{version}/libexpect%{version}.so \
+ %{BUILDROOT}%{libdir}
+ ln -svf libexpect%{version}.so %{BUILDROOT}%{libdir}/libexpect.so
+
+ # Remove rpath.
+ chrpath --delete %{BUILDROOT}%{libdir}/libexpect%{version}.so
# remove cryptdir/decryptdir, as Linux has no crypt command
rm -f %{BUILDROOT}/usr/bin/{cryptdir,decryptdir}
packages
package %{name}
+
+ package %{name}-devel
+ template DEVEL
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
end
end