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