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