]>
Commit | Line | Data |
---|---|---|
865dfffb PS |
1 | # |
2 | # BIG FAT WARNING: | |
3 | # - expect requires mounted /dev/pts to avoid `spawn failed' errors. | |
4 | # | |
cf1b63c8 | 5 | Summary: Tcl expect extension |
8a2ff696 ER |
6 | Summary(de.UTF-8): Tcl-Erweiterung |
7 | Summary(fr.UTF-8): Extension Tcl | |
cf1b63c8 | 8 | Summary(pl.UTF-8): Rozszerzenie Tcl expect |
8a2ff696 ER |
9 | Summary(ru.UTF-8): Расширение Tcl для управления программами из скриптов |
10 | Summary(tr.UTF-8): Programlar arası etkileşimi mümkün kılan Tcl genişletmesi | |
11 | Summary(uk.UTF-8): Розширення Tcl для керування програмами зі скриптів | |
b8606897 | 12 | Name: expect |
cf1b63c8 JB |
13 | Version: 5.44.1.15 |
14 | Release: 1 | |
9f20eb0c | 15 | License: BSD |
b8606897 | 16 | Group: Development/Languages/Tcl |
cf1b63c8 JB |
17 | Source0: http://downloads.sourceforge.net/expect/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: 9307bbf67e19125036ce34544a78dadf | |
a87fd24b | 19 | Patch0: %{name}-pty.patch |
cf1b63c8 JB |
20 | Patch1: %{name}-bug7869.patch |
21 | Patch2: %{name}-fixcat.patch | |
22 | Patch3: %{name}-soname.patch | |
a87fd24b | 23 | URL: http://expect.nist.gov/ |
77144878 | 24 | BuildRequires: autoconf |
25 | BuildRequires: automake | |
e5da7888 | 26 | BuildRequires: tcl-devel >= 8.5.0 |
27 | BuildRequires: tk-devel >= 8.5.0 | |
73509d21 | 28 | BuildRequires: xorg-lib-libX11-devel |
29 | BuildRequires: xorg-lib-libXext-devel | |
30 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
e5da7888 | 31 | Requires: tcl >= 8.5.0 |
3870f2f2 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1544fe1b | 33 | |
1f1ff9ad | 34 | %define _ulibdir /usr/lib |
5289d773 | 35 | |
1544fe1b | 36 | %description |
37 | Expect is a tool for automating interactive applications such as | |
38 | telnet, ftp, passwd, fsck, rlogin, tip, etc. It makes it easy for a | |
39 | script to control another program and interact with it. | |
40 | ||
e88fdb81 JR |
41 | %description -l pl.UTF-8 |
42 | Expect to narzędzie do automatyzacji interakcji z aplikacjami takimi | |
43 | jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect pozwala w łatwy | |
44 | sposób przy pomocy skryptu kontrolować inny program. | |
63a51f27 | 45 | |
e88fdb81 | 46 | %description -l de.UTF-8 |
9f20eb0c | 47 | Expect ist ein Tool zur Automatisierung interaktiver Applikationen wie |
48 | telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe kann ein | |
49 | Skript ein anderes Programm sehr leicht steuern oder damit | |
50 | interagieren. | |
1544fe1b | 51 | |
e88fdb81 | 52 | %description -l fr.UTF-8 |
1544fe1b | 53 | expect est un un outil pour automatiser les applications interactives |
54 | comme telnet, ftp, passwd, fsck, rlogin, tip, etc. Il est alors facile | |
e88fdb81 | 55 | pour un script de contrôler un autre programme et d'interagir avec |
9f20eb0c | 56 | lui. |
1544fe1b | 57 | |
e88fdb81 JR |
58 | %description -l tr.UTF-8 |
59 | Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileşimli | |
60 | uygulamaları otomatize etmeye yarayan bir araçtır. Bir uygulamanın bir | |
61 | diğer uygulamayı denetlemesini kolaylaştırır. | |
1544fe1b | 62 | |
e88fdb81 JR |
63 | %description -l ru.UTF-8 |
64 | Expect - это инструмент для автоматизации интерактивных программ, | |
65 | таких как telnet, ftp, passwd, fsck, rlogin, tip, и т.п. Позволяет | |
66 | управлять программами и взаимодействовать с ними из скриптов. | |
dc776e94 | 67 | |
e88fdb81 JR |
68 | %description -l uk.UTF-8 |
69 | Expect - це інструмент для автоматизації інтерактивних програм, таких | |
70 | як telnet, ftp, passwd, fsck, rlogin, tip, і т.і. Дозволяє керувати | |
71 | програмами та взаємодіяти з ними зі скриптів. | |
dc776e94 | 72 | |
9a1c0d65 | 73 | %package X11 |
10748bef | 74 | Summary: Tk extension |
8a2ff696 | 75 | Summary(pl.UTF-8): Rozszerzenie Tk |
9a1c0d65 | 76 | Group: Development/Languages/Tcl |
10910096 | 77 | Requires: %{name} = %{version}-%{release} |
9a1c0d65 SZ |
78 | |
79 | %description X11 | |
80 | This package contains expectk, which is an Tk extension, just as | |
81 | expect Tcl extension. | |
82 | ||
e88fdb81 JR |
83 | %description X11 -l pl.UTF-8 |
84 | Ten pakiet zawiera expectk, który jest rozszerzeniem dla Tk takim jak | |
9a1c0d65 SZ |
85 | expect jest dla Tcl. |
86 | ||
a87fd24b | 87 | %package devel |
cf1b63c8 JB |
88 | Summary: Tcl expect extension header files and development documentation |
89 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl | |
b8606897 | 90 | Group: Development/Languages/Tcl |
10910096 | 91 | Requires: %{name} = %{version}-%{release} |
cf1b63c8 JB |
92 | Requires: tcl-devel >= 8.5.0 |
93 | Obsoletes: expect-static | |
1544fe1b | 94 | |
95 | %description devel | |
cf1b63c8 JB |
96 | Tcl expect extension language header files and development |
97 | documentation. | |
1544fe1b | 98 | |
e88fdb81 | 99 | %description devel -l pl.UTF-8 |
cf1b63c8 | 100 | Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl. |
63a51f27 | 101 | |
1544fe1b | 102 | %prep |
cf1b63c8 | 103 | %setup -q |
b8606897 | 104 | %patch0 -p1 |
30380979 | 105 | %patch1 -p1 |
b8606897 | 106 | %patch2 -p1 |
107 | %patch3 -p1 | |
a87fd24b | 108 | |
77144878 | 109 | chmod +w {.,testsuite}/configure |
1544fe1b | 110 | |
111 | %build | |
77144878 | 112 | install /usr/share/automake/config.* . |
10910096 | 113 | # only local macros, don't call aclocal |
00959466 | 114 | %{__autoconf} |
77144878 | 115 | cd testsuite |
cf1b63c8 JB |
116 | %{__autoconf} -I .. |
117 | cd .. | |
fc41800e | 118 | CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix" |
77144878 | 119 | %configure \ |
a87fd24b | 120 | --enable-gcc \ |
121 | --enable-shared \ | |
5289d773 JK |
122 | --with-tclconfig=%{_ulibdir} \ |
123 | --with-tkconfig=%{_ulibdir} \ | |
8148c89b | 124 | --with-tclinclude=%{_includedir}/tcl-private \ |
a87fd24b | 125 | --with-tkinclude=%{_includedir} |
cbc778f4 | 126 | |
ef8744b5 | 127 | %{__make} |
1544fe1b | 128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
1544fe1b | 131 | |
6ca176b6 | 132 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ |
a87fd24b | 133 | %{__make} install \ |
cf1b63c8 JB |
134 | DESTDIR=$RPM_BUILD_ROOT \ |
135 | TCLSH_PROG=tclsh | |
b8606897 | 136 | |
6e186d45 JB |
137 | mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect} |
138 | ||
cf1b63c8 JB |
139 | mv -f $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir} |
140 | ln -sf ../libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so | |
141 | ln -sf libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/libexpect.so | |
b8606897 | 142 | |
1544fe1b | 143 | %clean |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
0f514e19 JB |
146 | %post -p /sbin/ldconfig |
147 | %postun -p /sbin/ldconfig | |
148 | ||
1544fe1b | 149 | %files |
b8606897 | 150 | %defattr(644,root,root,755) |
cf1b63c8 | 151 | %doc ChangeLog FAQ HISTORY NEWS README |
9a1c0d65 SZ |
152 | %attr(755,root,root) %{_bindir}/autoexpect |
153 | %attr(755,root,root) %{_bindir}/autopasswd | |
154 | %attr(755,root,root) %{_bindir}/cryptdir | |
155 | %attr(755,root,root) %{_bindir}/decryptdir | |
156 | %attr(755,root,root) %{_bindir}/dislocate | |
157 | %attr(755,root,root) %{_bindir}/expect | |
158 | %attr(755,root,root) %{_bindir}/ftp-rfc | |
159 | %attr(755,root,root) %{_bindir}/kibitz | |
160 | %attr(755,root,root) %{_bindir}/lpunlock | |
161 | %attr(755,root,root) %{_bindir}/mkpasswd | |
162 | %attr(755,root,root) %{_bindir}/passmass | |
163 | %attr(755,root,root) %{_bindir}/rftp-expect | |
164 | %attr(755,root,root) %{_bindir}/rlogin-cwd | |
165 | %attr(755,root,root) %{_bindir}/timed-read | |
166 | %attr(755,root,root) %{_bindir}/timed-run | |
167 | %attr(755,root,root) %{_bindir}/unbuffer | |
168 | %attr(755,root,root) %{_bindir}/weather | |
cf1b63c8 JB |
169 | %attr(755,root,root) %{_libdir}/libexpect%{version}.so |
170 | %dir %{_libdir}/expect%{version} | |
171 | %attr(755,root,root) %{_libdir}/expect%{version}/pkgIndex.tcl | |
172 | %attr(755,root,root) %{_libdir}/expect%{version}/libexpect%{version}.so | |
173 | %{_mandir}/man1/autoexpect.1* | |
174 | %{_mandir}/man1/cryptdir.1* | |
175 | %{_mandir}/man1/decryptdir.1* | |
176 | %{_mandir}/man1/dislocate.1* | |
177 | %{_mandir}/man1/expect.1* | |
178 | %{_mandir}/man1/kibitz.1* | |
179 | %{_mandir}/man1/mkpasswd.1* | |
180 | %{_mandir}/man1/passmass.1* | |
181 | %{_mandir}/man1/unbuffer.1* | |
9a1c0d65 SZ |
182 | |
183 | %files X11 | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_bindir}/expectk | |
ccb66e7c | 186 | %attr(755,root,root) %{_bindir}/multixterm |
9a1c0d65 SZ |
187 | %attr(755,root,root) %{_bindir}/tknewsbiff |
188 | %attr(755,root,root) %{_bindir}/tkpasswd | |
189 | %attr(755,root,root) %{_bindir}/xkibitz | |
190 | %attr(755,root,root) %{_bindir}/xpstat | |
cf1b63c8 JB |
191 | %{_mandir}/man1/expectk.1* |
192 | %{_mandir}/man1/multixterm.1* | |
193 | %{_mandir}/man1/tknewsbiff.1* | |
194 | %{_mandir}/man1/xkibitz.1* | |
1544fe1b | 195 | |
196 | %files devel | |
b8606897 | 197 | %defattr(644,root,root,755) |
cf1b63c8 JB |
198 | %attr(755,root,root) %{_libdir}/libexpect.so |
199 | %{_includedir}/expect*.h | |
200 | %{_includedir}/tcldbg.h | |
201 | %{_mandir}/man3/libexpect.3* |