]>
Commit | Line | Data |
---|---|---|
865dfffb PS |
1 | # |
2 | # BIG FAT WARNING: | |
3 | # - expect requires mounted /dev/pts to avoid `spawn failed' errors. | |
4 | # | |
1ddd9a35 | 5 | %bcond_without tests |
cf1b63c8 | 6 | Summary: Tcl expect extension |
8a2ff696 ER |
7 | Summary(de.UTF-8): Tcl-Erweiterung |
8 | Summary(fr.UTF-8): Extension Tcl | |
cf1b63c8 | 9 | Summary(pl.UTF-8): Rozszerzenie Tcl expect |
8a2ff696 ER |
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 для керування програмами зі скриптів | |
b8606897 | 13 | Name: expect |
f0073db5 | 14 | Version: 5.45.4 |
5462e6b7 | 15 | Release: 1 |
9f20eb0c | 16 | License: BSD |
b8606897 | 17 | Group: Development/Languages/Tcl |
e4a34d19 | 18 | Source0: http://downloads.sourceforge.net/expect/%{name}%{version}.tar.gz |
f0073db5 | 19 | # Source0-md5: 00fce8de158422f5ccd2666512329bd2 |
a87fd24b | 20 | Patch0: %{name}-pty.patch |
cf1b63c8 | 21 | Patch1: %{name}-bug7869.patch |
3e9ad032 | 22 | Patch2: %{name}-soname.patch |
2a9f2687 | 23 | Patch3: %{name}-format.patch |
dade3e15 AM |
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 | |
a87fd24b | 34 | URL: http://expect.nist.gov/ |
77144878 | 35 | BuildRequires: autoconf |
36 | BuildRequires: automake | |
e5da7888 | 37 | BuildRequires: tcl-devel >= 8.5.0 |
38 | BuildRequires: tk-devel >= 8.5.0 | |
73509d21 | 39 | BuildRequires: xorg-lib-libX11-devel |
73509d21 | 40 | BuildRequires: xorg-lib-libXScrnSaver-devel |
dade3e15 | 41 | BuildRequires: xorg-lib-libXext-devel |
e5da7888 | 42 | Requires: tcl >= 8.5.0 |
3870f2f2 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1544fe1b | 44 | |
1f1ff9ad | 45 | %define _ulibdir /usr/lib |
5289d773 | 46 | |
1544fe1b | 47 | %description |
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. | |
51 | ||
e88fdb81 JR |
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. | |
63a51f27 | 56 | |
e88fdb81 | 57 | %description -l de.UTF-8 |
9f20eb0c | 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 | |
61 | interagieren. | |
1544fe1b | 62 | |
e88fdb81 | 63 | %description -l fr.UTF-8 |
1544fe1b | 64 | expect est un un outil pour automatiser les applications interactives |
65 | comme telnet, ftp, passwd, fsck, rlogin, tip, etc. Il est alors facile | |
e88fdb81 | 66 | pour un script de contrôler un autre programme et d'interagir avec |
9f20eb0c | 67 | lui. |
1544fe1b | 68 | |
e88fdb81 JR |
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. | |
1544fe1b | 73 | |
e88fdb81 JR |
74 | %description -l ru.UTF-8 |
75 | Expect - это инструмент для автоматизации интерактивных программ, | |
76 | таких как telnet, ftp, passwd, fsck, rlogin, tip, и т.п. Позволяет | |
77 | управлять программами и взаимодействовать с ними из скриптов. | |
dc776e94 | 78 | |
e88fdb81 JR |
79 | %description -l uk.UTF-8 |
80 | Expect - це інструмент для автоматизації інтерактивних програм, таких | |
81 | як telnet, ftp, passwd, fsck, rlogin, tip, і т.і. Дозволяє керувати | |
82 | програмами та взаємодіяти з ними зі скриптів. | |
dc776e94 | 83 | |
9a1c0d65 | 84 | %package X11 |
10748bef | 85 | Summary: Tk extension |
8a2ff696 | 86 | Summary(pl.UTF-8): Rozszerzenie Tk |
9a1c0d65 | 87 | Group: Development/Languages/Tcl |
10910096 | 88 | Requires: %{name} = %{version}-%{release} |
9a1c0d65 SZ |
89 | |
90 | %description X11 | |
91 | This package contains expectk, which is an Tk extension, just as | |
92 | expect Tcl extension. | |
93 | ||
e88fdb81 JR |
94 | %description X11 -l pl.UTF-8 |
95 | Ten pakiet zawiera expectk, który jest rozszerzeniem dla Tk takim jak | |
9a1c0d65 SZ |
96 | expect jest dla Tcl. |
97 | ||
a87fd24b | 98 | %package devel |
cf1b63c8 JB |
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 | |
b8606897 | 101 | Group: Development/Languages/Tcl |
10910096 | 102 | Requires: %{name} = %{version}-%{release} |
cf1b63c8 JB |
103 | Requires: tcl-devel >= 8.5.0 |
104 | Obsoletes: expect-static | |
1544fe1b | 105 | |
106 | %description devel | |
cf1b63c8 JB |
107 | Tcl expect extension language header files and development |
108 | documentation. | |
1544fe1b | 109 | |
e88fdb81 | 110 | %description devel -l pl.UTF-8 |
cf1b63c8 | 111 | Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl. |
63a51f27 | 112 | |
1544fe1b | 113 | %prep |
3e9ad032 | 114 | %setup -q -n %{name}%{version} |
b8606897 | 115 | %patch0 -p1 |
30380979 | 116 | %patch1 -p1 |
b8606897 | 117 | %patch2 -p1 |
2a9f2687 | 118 | %patch3 -p1 |
dade3e15 AM |
119 | %patch4 -p1 |
120 | %patch5 -p1 | |
121 | %patch6 -p1 | |
122 | %patch7 -p1 | |
123 | %patch8 -p1 | |
124 | %patch9 -p1 | |
125 | %patch10 -p1 | |
126 | %patch11 -p1 | |
127 | %patch12 -p1 | |
128 | %patch13 -p1 | |
a87fd24b | 129 | |
77144878 | 130 | chmod +w {.,testsuite}/configure |
1544fe1b | 131 | |
132 | %build | |
77144878 | 133 | install /usr/share/automake/config.* . |
10910096 | 134 | # only local macros, don't call aclocal |
00959466 | 135 | %{__autoconf} |
77144878 | 136 | cd testsuite |
cf1b63c8 JB |
137 | %{__autoconf} -I .. |
138 | cd .. | |
fc41800e | 139 | CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix" |
77144878 | 140 | %configure \ |
3e9ad032 AM |
141 | %if "%{_lib}" == "lib64" |
142 | --enable-64bit \ | |
143 | %endif | |
a87fd24b | 144 | --enable-gcc \ |
145 | --enable-shared \ | |
5289d773 JK |
146 | --with-tclconfig=%{_ulibdir} \ |
147 | --with-tkconfig=%{_ulibdir} \ | |
3e9ad032 | 148 | --with-tclinclude=%{_includedir} \ |
a87fd24b | 149 | --with-tkinclude=%{_includedir} |
cbc778f4 | 150 | |
ef8744b5 | 151 | %{__make} |
1544fe1b | 152 | |
3e9ad032 AM |
153 | %{?with_tests:%{__make} test TCLSH_PROG=tclsh} |
154 | ||
1544fe1b | 155 | %install |
156 | rm -rf $RPM_BUILD_ROOT | |
1544fe1b | 157 | |
6ca176b6 | 158 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ |
a87fd24b | 159 | %{__make} install \ |
cf1b63c8 JB |
160 | DESTDIR=$RPM_BUILD_ROOT \ |
161 | TCLSH_PROG=tclsh | |
b8606897 | 162 | |
6e186d45 JB |
163 | mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect} |
164 | ||
cf1b63c8 JB |
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 | |
b8606897 | 168 | |
1544fe1b | 169 | %clean |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
0f514e19 JB |
172 | %post -p /sbin/ldconfig |
173 | %postun -p /sbin/ldconfig | |
174 | ||
1544fe1b | 175 | %files |
b8606897 | 176 | %defattr(644,root,root,755) |
cf1b63c8 | 177 | %doc ChangeLog FAQ HISTORY NEWS README |
9a1c0d65 SZ |
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 | |
cf1b63c8 JB |
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* | |
9a1c0d65 SZ |
208 | |
209 | %files X11 | |
210 | %defattr(644,root,root,755) | |
ccb66e7c | 211 | %attr(755,root,root) %{_bindir}/multixterm |
9a1c0d65 SZ |
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 | |
cf1b63c8 JB |
216 | %{_mandir}/man1/multixterm.1* |
217 | %{_mandir}/man1/tknewsbiff.1* | |
218 | %{_mandir}/man1/xkibitz.1* | |
1544fe1b | 219 | |
220 | %files devel | |
b8606897 | 221 | %defattr(644,root,root,755) |
cf1b63c8 JB |
222 | %attr(755,root,root) %{_libdir}/libexpect.so |
223 | %{_includedir}/expect*.h | |
224 | %{_includedir}/tcldbg.h | |
225 | %{_mandir}/man3/libexpect.3* |