+++ /dev/null
---- expect5.31/fixcat.fixcat Fri Jun 2 13:35:51 2000
-+++ expect5.31/fixcat Fri Jun 2 13:36:56 2000
-@@ -8,11 +8,14 @@
- # If this file is sitting in an architecture-specific library directory,
- # then it serves as a marker that your /bin/cat buffers by default.
-
-+# XXX Red Hat linux has unbuffered cat
-+exit 0
-+
- # test for when catting to/from files
--log_user 0
--spawn -open [open "|cat" "r+"]
--send "\r"
--expect "\r" {exit 1}
-+#log_user 0
-+#spawn -open [open "|cat" "r+"]
-+#send "\r"
-+#expect "\r" {exit 1}
-
- # test for when catting to real tty
- #log_user 0
# BIG FAT WARNING:
# - expect requires mounted /dev/pts to avoid `spawn failed' errors.
#
+%bcond_witout tests
Summary: Tcl expect extension
Summary(de.UTF-8): Tcl-Erweiterung
Summary(fr.UTF-8): Extension Tcl
Summary(tr.UTF-8): Programlar arası etkileşimi mümkün kılan Tcl genişletmesi
Summary(uk.UTF-8): Розширення Tcl для керування програмами зі скриптів
Name: expect
-Version: 5.44.1.15
+Version: 5.45
Release: 1
License: BSD
Group: Development/Languages/Tcl
-Source0: http://downloads.sourceforge.net/expect/%{name}-%{version}.tar.bz2
-# Source0-md5: 9307bbf67e19125036ce34544a78dadf
+Source0: http://downloads.sourceforge.net/project/expect/Expect/%{version}/%{name}%{version}.tar.gz
+# Source0-md5: 44e1a4f4c877e9ddc5a542dfa7ecc92b
Patch0: %{name}-pty.patch
Patch1: %{name}-bug7869.patch
-Patch2: %{name}-fixcat.patch
-Patch3: %{name}-soname.patch
+Patch2: %{name}-soname.patch
URL: http://expect.nist.gov/
BuildRequires: autoconf
BuildRequires: automake
Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl.
%prep
-%setup -q
+%setup -q -n %{name}%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
chmod +w {.,testsuite}/configure
cd ..
CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix"
%configure \
+%if "%{_lib}" == "lib64"
+ --enable-64bit \
+%endif
--enable-gcc \
--enable-shared \
--with-tclconfig=%{_ulibdir} \
--with-tkconfig=%{_ulibdir} \
- --with-tclinclude=%{_includedir}/tcl-private \
+ --with-tclinclude=%{_includedir} \
--with-tkinclude=%{_includedir}
%{__make}
+%{?with_tests:%{__make} test TCLSH_PROG=tclsh}
+
%install
rm -rf $RPM_BUILD_ROOT
%files X11
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/expectk
%attr(755,root,root) %{_bindir}/multixterm
%attr(755,root,root) %{_bindir}/tknewsbiff
%attr(755,root,root) %{_bindir}/tkpasswd
%attr(755,root,root) %{_bindir}/xkibitz
%attr(755,root,root) %{_bindir}/xpstat
-%{_mandir}/man1/expectk.1*
%{_mandir}/man1/multixterm.1*
%{_mandir}/man1/tknewsbiff.1*
%{_mandir}/man1/xkibitz.1*