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