3 # - expect requires mounted /dev/pts to avoid `spawn failed' errors.
6 Summary: Tcl expect extension
7 Summary(de.UTF-8): Tcl-Erweiterung
8 Summary(fr.UTF-8): Extension Tcl
9 Summary(pl.UTF-8): Rozszerzenie Tcl expect
10 Summary(ru.UTF-8): Расширение Tcl для управления программами из скриптов
11 Summary(tr.UTF-8): Programlar arası etkileşimi mümkün kılan Tcl genişletmesi
12 Summary(uk.UTF-8): Розширення Tcl для керування програмами зі скриптів
17 Group: Development/Languages/Tcl
18 Source0: http://downloads.sourceforge.net/expect/%{name}%{version}.tar.gz
19 # Source0-md5: a8855cd41c1ef004b9794db9e2a57a9d
20 Patch0: %{name}-pty.patch
21 Patch1: %{name}-bug7869.patch
22 Patch2: %{name}-soname.patch
23 Patch3: %{name}-format.patch
24 Patch4: %{name}-5.43.0-log_file.patch
25 Patch5: %{name}-5.45-match-gt-numchars-segfault.patch
26 Patch6: %{name}-5.45-re-memleak.patch
27 Patch7: %{name}-5.45-exp-log-buf-overflow.patch
28 Patch8: %{name}-5.45-segfault-with-stubs.patch
29 Patch9: %{name}-5.45-fd-leak.patch
30 Patch10: %{name}-5.32.2-random.patch
31 Patch11: %{name}-5.45-mkpasswd-dash.patch
32 Patch12: %{name}-5.45-check-telnet.patch
33 Patch13: %{name}-5.45-passmass-su-full-path.patch
34 URL: http://expect.nist.gov/
35 BuildRequires: autoconf
36 BuildRequires: automake
37 BuildRequires: tcl-devel >= 8.5.0
38 BuildRequires: tk-devel >= 8.5.0
39 BuildRequires: xorg-lib-libX11-devel
40 BuildRequires: xorg-lib-libXScrnSaver-devel
41 BuildRequires: xorg-lib-libXext-devel
42 Requires: tcl >= 8.5.0
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _ulibdir /usr/lib
48 Expect is a tool for automating interactive applications such as
49 telnet, ftp, passwd, fsck, rlogin, tip, etc. It makes it easy for a
50 script to control another program and interact with it.
52 %description -l pl.UTF-8
53 Expect to narzędzie do automatyzacji interakcji z aplikacjami takimi
54 jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect pozwala w łatwy
55 sposób przy pomocy skryptu kontrolować inny program.
57 %description -l de.UTF-8
58 Expect ist ein Tool zur Automatisierung interaktiver Applikationen wie
59 telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe kann ein
60 Skript ein anderes Programm sehr leicht steuern oder damit
63 %description -l fr.UTF-8
64 expect est un un outil pour automatiser les applications interactives
65 comme telnet, ftp, passwd, fsck, rlogin, tip, etc. Il est alors facile
66 pour un script de contrôler un autre programme et d'interagir avec
69 %description -l tr.UTF-8
70 Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileşimli
71 uygulamaları otomatize etmeye yarayan bir araçtır. Bir uygulamanın bir
72 diğer uygulamayı denetlemesini kolaylaştırır.
74 %description -l ru.UTF-8
75 Expect - это инструмент для автоматизации интерактивных программ,
76 таких как telnet, ftp, passwd, fsck, rlogin, tip, и т.п. Позволяет
77 управлять программами и взаимодействовать с ними из скриптов.
79 %description -l uk.UTF-8
80 Expect - це інструмент для автоматизації інтерактивних програм, таких
81 як telnet, ftp, passwd, fsck, rlogin, tip, і т.і. Дозволяє керувати
82 програмами та взаємодіяти з ними зі скриптів.
86 Summary(pl.UTF-8): Rozszerzenie Tk
87 Group: Development/Languages/Tcl
88 Requires: %{name} = %{version}-%{release}
91 This package contains expectk, which is an Tk extension, just as
94 %description X11 -l pl.UTF-8
95 Ten pakiet zawiera expectk, który jest rozszerzeniem dla Tk takim jak
99 Summary: Tcl expect extension header files and development documentation
100 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl
101 Group: Development/Languages/Tcl
102 Requires: %{name} = %{version}-%{release}
103 Requires: tcl-devel >= 8.5.0
104 Obsoletes: expect-static
107 Tcl expect extension language header files and development
110 %description devel -l pl.UTF-8
111 Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl.
114 %setup -q -n %{name}%{version}
130 chmod +w {.,testsuite}/configure
133 install /usr/share/automake/config.* .
134 # only local macros, don't call aclocal
139 CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix"
141 %if "%{_lib}" == "lib64"
146 --with-tclconfig=%{_ulibdir} \
147 --with-tkconfig=%{_ulibdir} \
148 --with-tclinclude=%{_includedir} \
149 --with-tkinclude=%{_includedir}
153 %{?with_tests:%{__make} test TCLSH_PROG=tclsh}
156 rm -rf $RPM_BUILD_ROOT
158 LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \
160 DESTDIR=$RPM_BUILD_ROOT \
163 mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect}
165 mv -f $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}
166 ln -sf ../libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so
167 ln -sf libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/libexpect.so
170 rm -rf $RPM_BUILD_ROOT
172 %post -p /sbin/ldconfig
173 %postun -p /sbin/ldconfig
176 %defattr(644,root,root,755)
177 %doc ChangeLog FAQ HISTORY NEWS README
178 %attr(755,root,root) %{_bindir}/autoexpect
179 %attr(755,root,root) %{_bindir}/autopasswd
180 %attr(755,root,root) %{_bindir}/cryptdir
181 %attr(755,root,root) %{_bindir}/decryptdir
182 %attr(755,root,root) %{_bindir}/dislocate
183 %attr(755,root,root) %{_bindir}/expect
184 %attr(755,root,root) %{_bindir}/ftp-rfc
185 %attr(755,root,root) %{_bindir}/kibitz
186 %attr(755,root,root) %{_bindir}/lpunlock
187 %attr(755,root,root) %{_bindir}/mkpasswd
188 %attr(755,root,root) %{_bindir}/passmass
189 %attr(755,root,root) %{_bindir}/rftp-expect
190 %attr(755,root,root) %{_bindir}/rlogin-cwd
191 %attr(755,root,root) %{_bindir}/timed-read
192 %attr(755,root,root) %{_bindir}/timed-run
193 %attr(755,root,root) %{_bindir}/unbuffer
194 %attr(755,root,root) %{_bindir}/weather
195 %attr(755,root,root) %{_libdir}/libexpect%{version}.so
196 %dir %{_libdir}/expect%{version}
197 %attr(755,root,root) %{_libdir}/expect%{version}/pkgIndex.tcl
198 %attr(755,root,root) %{_libdir}/expect%{version}/libexpect%{version}.so
199 %{_mandir}/man1/autoexpect.1*
200 %{_mandir}/man1/cryptdir.1*
201 %{_mandir}/man1/decryptdir.1*
202 %{_mandir}/man1/dislocate.1*
203 %{_mandir}/man1/expect.1*
204 %{_mandir}/man1/kibitz.1*
205 %{_mandir}/man1/mkpasswd.1*
206 %{_mandir}/man1/passmass.1*
207 %{_mandir}/man1/unbuffer.1*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/multixterm
212 %attr(755,root,root) %{_bindir}/tknewsbiff
213 %attr(755,root,root) %{_bindir}/tkpasswd
214 %attr(755,root,root) %{_bindir}/xkibitz
215 %attr(755,root,root) %{_bindir}/xpstat
216 %{_mandir}/man1/multixterm.1*
217 %{_mandir}/man1/tknewsbiff.1*
218 %{_mandir}/man1/xkibitz.1*
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libexpect.so
223 %{_includedir}/expect*.h
224 %{_includedir}/tcldbg.h
225 %{_mandir}/man3/libexpect.3*