-Summary: tcl extension
-Summary(de): tcl-Erweiterung
-Summary(fr): Extension tcl
-Summary(pl): Rozszerzenie TCL
-Summary(tr): Programlar arasý etkileþimi mümkün kýlan tcl geniþletmesi
+Summary: Tcl extension
+Summary(de.UTF-8): Tcl-Erweiterung
+Summary(fr.UTF-8): Extension Tcl
+Summary(pl.UTF-8): Rozszerzenie Tcl
+Summary(ru.UTF-8): Расширение 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.28
-Release: 3
-Copyright: BSD
+%define major 5.43
+Version: %{major}.0
+Release: 1
+License: BSD
Group: Development/Languages/Tcl
-Group(pl): Programowanie/Jêzyki/Tcl
-Source: ftp://ftp.cme.nist.gov/pub/%{name}/%{name}.tar.gz
-Icon: tcl.gif
-Patch0: %{name}.patch
-Patch1: %{name}-mkpasswd.patch
-Patch2: %{name}-pty.patch
-Patch3: %{name}-strf.patch
-Buildroot: /tmp/%{name}-%{version}-root
+Source0: http://expect.nist.gov/src/%{name}-%{version}.tar.gz
+# Source0-md5: 230400129630335b3060a42f66fec11d
+Patch0: %{name}-pty.patch
+Patch1: %{name}-alpha.patch
+Patch2: %{name}-bug7869.patch
+Patch3: %{name}-fixcat.patch
+Patch4: %{name}-soname.patch
+Patch5: %{name}-lib64.patch
+Patch6: %{name}-build.patch
+URL: http://expect.nist.gov/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: tcl-devel >= 8.4.6
+BuildRequires: tk-devel >= 8.4.6
+Requires: tcl >= 8.4.6
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _ulibdir /usr/lib
%description
Expect is a tool for automating interactive applications such as
telnet, ftp, passwd, fsck, rlogin, tip, etc. It makes it easy for a
script to control another program and interact with it.
-%description -l pl
-Expect to narzêdzie do automatyzacji interakcji z aplikacjami
-takimi jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect
-pozwala w ³atwy sposób przy pomocy skryptu kontrolowaæ inny program.
+%description -l pl.UTF-8
+Expect to narzędzie do automatyzacji interakcji z aplikacjami takimi
+jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect pozwala w łatwy
+sposób przy pomocy skryptu kontrolować inny program.
-%description -l de
-Expect ist ein Tool zur Automatisierung interaktiver Applikationen
-wie telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe
-kann ein Skript ein anderes Programm sehr leicht steuern oder
-damit interagieren.
+%description -l de.UTF-8
+Expect ist ein Tool zur Automatisierung interaktiver Applikationen wie
+telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe kann ein
+Skript ein anderes Programm sehr leicht steuern oder damit
+interagieren.
-%description -l fr
+%description -l fr.UTF-8
expect est un un outil pour automatiser les applications interactives
comme telnet, ftp, passwd, fsck, rlogin, tip, etc. Il est alors facile
-pour un script de contrôler un autre programme et d'interagir avec lui.
+pour un script de contrôler un autre programme et d'interagir avec
+lui.
+
+%description -l tr.UTF-8
+Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileşimli
+uygulamaları otomatize etmeye yarayan bir araçtır. Bir uygulamanın bir
+diğer uygulamayı denetlemesini kolaylaştırır.
+
+%description -l ru.UTF-8
+Expect - это инструмент для автоматизации интерактивных программ,
+таких как telnet, ftp, passwd, fsck, rlogin, tip, и т.п. Позволяет
+управлять программами и взаимодействовать с ними из скриптов.
+
+%description -l uk.UTF-8
+Expect - це інструмент для автоматизації інтерактивних програм, таких
+як telnet, ftp, passwd, fsck, rlogin, tip, і т.і. Дозволяє керувати
+програмами та взаємодіяти з ними зі скриптів.
+
+%package X11
+Summary: Tk extension
+Summary(pl.UTF-8): Rozszerzenie Tk
+Group: Development/Languages/Tcl
+Requires: %{name} = %{version}-%{release}
+
+%description X11
+This package contains expectk, which is an Tk extension, just as
+expect Tcl extension.
-%description -l tr
-Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileþimli uygulamalarý
-otomatize etmeye yarayan bir araçtýr. Bir uygulamanýn bir diðer uygulamayý
-denetlemesini kolaylaþtýrýr.
+%description X11 -l pl.UTF-8
+Ten pakiet zawiera expectk, który jest rozszerzeniem dla Tk takim jak
+expect jest dla Tcl.
-%package devel
-Summary: tcl extension header files and development documentation
-Summary(pl): Pliki nag³ówkowe i dokumentacja do rozszerzenia jêzyka TCL
+%package devel
+Summary: Tcl extension header files and development documentation
+Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do rozszerzenia języka Tcl
Group: Development/Languages/Tcl
-Group(pl): Programowanie/Jêzyki/Tcl
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
+Requires: tcl-devel >= 8.4.6
%description devel
Tcl extension language header files and develppment documentation.
-%description -l pl devel
-Pliki nag³ówkowe i dokumentacja do rozszerzenie jêzyka TCL.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do rozszerzenie języka Tcl.
-%package static
-Summary: tcl extension static library
-Summary(pl): Biblioteka statyczna rozszerzenia jêzyka TCL
+%package static
+Summary: Tcl extension static library
+Summary(pl.UTF-8): Biblioteka statyczna rozszerzenia języka Tcl
Group: Development/Languages/Tcl
-Group(pl): Programowanie/Jêzyki/Tcl
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Tcl extension language static library.
-%description -l pl static
-Biblioteka statyczna rozszerzenia jêzyka TCL.
+%description static -l pl.UTF-8
+Biblioteka statyczna rozszerzenia języka Tcl.
%prep
-%setup -q
+%setup -q -n %{name}-%{major}
%patch0 -p1
-%patch1 -p2
+%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
+%if "%{_lib}" == "lib64"
+%patch5 -p1
+%endif
+%patch6 -p1
+
+chmod +w {.,testsuite}/configure
%build
-autoconf
-CFLAGS="$RPM_OPT_FLAGS -w" \
-./configure --enable-gcc \
- --enable-shared \
- --prefix=/usr \
- --with-tclconfig=../tcl8.0.5/unix \
- --with-tkconfig=../tk8.0.5/unix \
- --with-tclinclude=../tcl8.0.5/generic \
- --with-tkinclude=../tk8.0.5/generic \
- --mandir=%{_mandir} %{_target_platform}
-make
-cd ..
+install /usr/share/automake/config.* .
+# only local macros, don't call aclocal
+%{__autoconf}
+cd testsuite
+cp ../aclocal.m4 .
+%{__autoconf}
+cd -
+CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix"
+%configure \
+ --enable-gcc \
+ --enable-shared \
+ --with-tclconfig=%{_ulibdir} \
+ --with-tkconfig=%{_ulibdir} \
+ --with-tclinclude=%{_includedir}/tcl-private \
+ --with-tkinclude=%{_includedir}
+
+cat expect_cf.h | sed "s|.*SETPGRP_VOID.*|\#define SETPGRP_VOID 1|" > expect_cf.h.new
+mv -f expect_cf.h{.new,}
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \
-make \
- prefix=$RPM_BUILD_ROOT%{_prefix} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- install
-
-for n in $RPM_BUILD_ROOT/usr/bin/* ; do
- if head -1 $n | grep '#!'; then
- cp -a $n $n.in
- sed "s|$RPM_BUILD_ROOT||" < $n.in > $n
- rm -f $n.in
- fi
-done
+%{__make} install \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
-strip $RPM_BUILD_ROOT%{_bindir}/{expect,expectk}
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so
+mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect}
-( cd $RPM_BUILD_ROOT%{_bindir}; mv -f rftp rftp-expect )
+ln -sf $(cd $RPM_BUILD_ROOT%{_libdir} ; echo libexpect%{major}.so.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/libexpect%{major}.so
+ln -sf $(cd $RPM_BUILD_ROOT%{_libdir} ; echo libexpect%{major}.so.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/libexpect.so
-gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man[13]/* FAQ README ChangeLog
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
-%doc {FAQ,README,ChangeLog}.gz
-
-%attr(755,root,root) %{_bindir}/*
-
+%attr(755,root,root) %{_bindir}/autoexpect
+%attr(755,root,root) %{_bindir}/autopasswd
+%attr(755,root,root) %{_bindir}/cryptdir
+%attr(755,root,root) %{_bindir}/decryptdir
+%attr(755,root,root) %{_bindir}/dislocate
+%attr(755,root,root) %{_bindir}/expect
+%attr(755,root,root) %{_bindir}/ftp-rfc
+%attr(755,root,root) %{_bindir}/kibitz
+%attr(755,root,root) %{_bindir}/lpunlock
+%attr(755,root,root) %{_bindir}/mkpasswd
+%attr(755,root,root) %{_bindir}/passmass
+%attr(755,root,root) %{_bindir}/rftp-expect
+%attr(755,root,root) %{_bindir}/rlogin-cwd
+%attr(755,root,root) %{_bindir}/timed-read
+%attr(755,root,root) %{_bindir}/timed-run
+%attr(755,root,root) %{_bindir}/unbuffer
+%attr(755,root,root) %{_bindir}/weather
%dir %{_libdir}/expect*
%attr(755,root,root) %{_libdir}/expect*/pkgIndex.tcl
-%attr(755,root,root) %{_libdir}/libe*.so
-
-%{_mandir}/man1/*
+%attr(755,root,root) %{_libdir}/libexpect*.so.*.*
+%{_mandir}/man1/autoexpect.*
+%{_mandir}/man1/cryptdir.*
+%{_mandir}/man1/decryptdir.*
+%{_mandir}/man1/dislocate.*
+%{_mandir}/man1/expect.*
+%{_mandir}/man1/kibitz.*
+%{_mandir}/man1/mkpasswd.*
+%{_mandir}/man1/passmass.*
+%{_mandir}/man1/unbuffer.*
+
+%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.*
+%{_mandir}/man1/multixterm.*
+%{_mandir}/man1/tknewsbiff.*
+%{_mandir}/man1/xkibitz.*
%files devel
%defattr(644,root,root,755)
-
-%{_includedir}/*
+%doc ChangeLog FAQ HISTORY NEWS README
+%attr(755,root,root) %{_libdir}/libexpect*.so
+%{_includedir}/*.h
%{_mandir}/man3/*
%files static
%defattr(644,root,root,755)
-
-%{_libdir}/*.a
+%{_libdir}/libexpect*.a