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