X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=expect.spec;h=917f47902e88e0ba24b023c6afc0fdc728691dd5;hb=b7fe5bc729f0334ee306a3e1ee2946400ea586c5;hp=7a545834f84a1703734a0bc59728ba8e01411999;hpb=6ca176b66f3653bdaad0fd47622431a7f330dce9;p=packages%2Fexpect.git diff --git a/expect.spec b/expect.spec index 7a54583..917f479 100644 --- a/expect.spec +++ b/expect.spec @@ -1,172 +1,203 @@ -Summary: tcl extension to allow interaction between programs and scripts -Summary(de): tcl-Erweiterung zur Ermöglichung der Interaktion zwischen Programmen und Skripts -Summary(fr): Extension tcl permettant l'intéraction entre programmes et scripts" -Summary(pl): rozszerzenie tcl pozwalaj±ce na interakcjê miêdzy programami i skryptami -Summary(tr): Programlar arasý etkileþimi mümkün kýlan tcl geniþletmesi -Name: expect -Version: 5.26 -Release: 21 -Copyright: BSD -Group: Development/Languages/Tcl -Source: ftp://ftp.cme.nist.gov/pub/expect/expect.tar.gz -Icon: %{name}.gif -Patch: expect.patch -Buildroot: /tmp/%{name}-%{version}-root +# +# BIG FAT WARNING: +# - expect requires mounted /dev/pts to avoid `spawn failed' errors. +# +%bcond_without tests +Summary: Tcl expect extension +Summary(de.UTF-8): Tcl-Erweiterung +Summary(fr.UTF-8): Extension Tcl +Summary(pl.UTF-8): Rozszerzenie Tcl expect +Summary(ru.UTF-8): Расширение Tcl для управления программами из скриптов +Summary(tr.UTF-8): Programlar arası etkileşimi mümkün kılan Tcl genişletmesi +Summary(uk.UTF-8): Розширення Tcl для керування програмами зі скриптів +Name: expect +Version: 5.45 +Release: 2 +License: BSD +Group: Development/Languages/Tcl +Source0: http://downloads.sourceforge.net/expect/%{name}%{version}.tar.gz +# Source0-md5: 44e1a4f4c877e9ddc5a542dfa7ecc92b +Patch0: %{name}-pty.patch +Patch1: %{name}-bug7869.patch +Patch2: %{name}-soname.patch +URL: http://expect.nist.gov/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: tcl-devel >= 8.5.0 +BuildRequires: tk-devel >= 8.5.0 +BuildRequires: xorg-lib-libX11-devel +BuildRequires: xorg-lib-libXext-devel +BuildRequires: xorg-lib-libXScrnSaver-devel +Requires: tcl >= 8.5.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _ulibdir /usr/lib %description Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. It makes it easy for a script to control another program and interact with it. -%description -l pl -Expect to narzêdzie do automatyzacji interakcji z aplikacjami -takimi jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect -pozwala w ³atwy sposób przy pomocy skryptu kontrolowaæ inny program. +%description -l pl.UTF-8 +Expect to narzędzie do automatyzacji interakcji z aplikacjami takimi +jak telnet, ftp, passwd, fsck, rlogin, tip itp. Expect pozwala w łatwy +sposób przy pomocy skryptu kontrolować inny program. -%description -l de -Expect ist ein Tool zur Automatisierung interaktiver Applikationen -wie telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe -kann ein Skript ein anderes Programm sehr leicht steuern oder -damit interagieren. +%description -l de.UTF-8 +Expect ist ein Tool zur Automatisierung interaktiver Applikationen wie +telnet, ftp, passwd, fsck, rlogin, tip usw. Mit seiner Hilfe kann ein +Skript ein anderes Programm sehr leicht steuern oder damit +interagieren. -%description -l fr +%description -l fr.UTF-8 expect est un un outil pour automatiser les applications interactives comme telnet, ftp, passwd, fsck, rlogin, tip, etc. Il est alors facile -pour un script de contrôler un autre programme et d'interagir avec lui. - -%description -l tr -Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileþimli uygulamalarý -otomatize etmeye yarayan bir araçtýr. Bir uygulamanýn bir diðer uygulamayý -denetlemesini kolaylaþtýrýr. +pour un script de contrôler un autre programme et d'interagir avec +lui. + +%description -l tr.UTF-8 +Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkileşimli +uygulamaları otomatize etmeye yarayan bir araçtır. Bir uygulamanın bir +diğer uygulamayı denetlemesini kolaylaştırır. + +%description -l ru.UTF-8 +Expect - это инструмент для автоматизации интерактивных программ, +таких как telnet, ftp, passwd, fsck, rlogin, tip, и т.п. Позволяет +управлять программами и взаимодействовать с ними из скриптов. + +%description -l uk.UTF-8 +Expect - це інструмент для автоматизації інтерактивних програм, таких +як telnet, ftp, passwd, fsck, rlogin, tip, і т.і. Дозволяє керувати +програмами та взаємодіяти з ними зі скриптів. + +%package X11 +Summary: Tk extension +Summary(pl.UTF-8): Rozszerzenie Tk +Group: Development/Languages/Tcl +Requires: %{name} = %{version}-%{release} + +%description X11 +This package contains expectk, which is an Tk extension, just as +expect Tcl extension. + +%description X11 -l pl.UTF-8 +Ten pakiet zawiera expectk, który jest rozszerzeniem dla Tk takim jak +expect jest dla Tcl. %package devel -Summary: tcl extension header files and development documentation -Summary(pl): Pliki nag³ówkowe i dokumentacja developerska do rozszerzenia tcl -Group: Development/Languages/Tcl -Requires: %{name} = %{version} +Summary: Tcl expect extension header files and development documentation +Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl +Group: Development/Languages/Tcl +Requires: %{name} = %{version}-%{release} +Requires: tcl-devel >= 8.5.0 +Obsoletes: expect-static %description devel -Tcl extension language header files and develppment documentation. - -%description -l pl devel -Pliki nag³ówkowe i dokumentacja developersja do rozszerzenie jêzyka tcl. - -%package static -Summary: tcl extension static library -Summary(pl): Statyczna biblioteka rozszerzenia jêzyka tcl -Group: Development/Languages/Tcl -Requires: %{name}-devel = %{version} +Tcl expect extension language header files and development +documentation. -%description static -Tcl extension language static library. - -%description -l pl static -Statyczna biblioteka rozszerzenia jêzyka tcl. +%description devel -l pl.UTF-8 +Pliki nagłówkowe i dokumentacja do rozszerzenia expect języka Tcl. %prep -%setup -q -%patch -p1 +%setup -q -n %{name}%{version} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +chmod +w {.,testsuite}/configure %build -# make the libraries reentrant -#RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT" - -TCL_BIN_DIR=/usr/bin \ -TCL_LIBRARY=%{_libdir} \ -CFLAGS="$RPM_OPT_FLAGS" \ -./configure %{_target} \ - --enable-gcc \ - --enable-shared \ - --prefix=/usr \ - --with-tclconfig=%{_libdir} -make +install /usr/share/automake/config.* . +# only local macros, don't call aclocal +%{__autoconf} +cd testsuite +%{__autoconf} -I .. cd .. +CFLAGS="%{rpmcflags} -I%{_includedir}/tcl-private/unix" +%configure \ +%if "%{_lib}" == "lib64" + --enable-64bit \ +%endif + --enable-gcc \ + --enable-shared \ + --with-tclconfig=%{_ulibdir} \ + --with-tkconfig=%{_ulibdir} \ + --with-tclinclude=%{_includedir} \ + --with-tkinclude=%{_includedir} + +%{__make} + +%{?with_tests:%{__make} test TCLSH_PROG=tclsh} %install rm -rf $RPM_BUILD_ROOT -#install -d $RPM_BUILD_ROOT/usr LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ -make prefix=$RPM_BUILD_ROOT/usr install +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + TCLSH_PROG=tclsh -for n in $RPM_BUILD_ROOT/usr/bin/* ; do - if head -1 $n | grep '#!'; then - cp -a $n $n.in - sed "s|$RPM_BUILD_ROOT||" < $n.in > $n - rm -f $n.in - fi -done +mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect} -strip $RPM_BUILD_ROOT/usr/{bin/*,lib/libe*.so} || : - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +mv -f $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir} +ln -sf ../libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/expect%{version}/libexpect%{version}.so +ln -sf libexpect%{version}.so $RPM_BUILD_ROOT%{_libdir}/libexpect.so %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files -%attr(755, root, root) /usr/bin/* -%attr(755, root, root) %dir %{_libdir}/expect* -%attr(755, root, root) %{_libdir}/expect*/pkgIndex.tcl -%attr(755, root, root) %{_libdir}/libe*.so -%{_mandir}/man1/* +%defattr(644,root,root,755) +%doc ChangeLog FAQ HISTORY NEWS README +%attr(755,root,root) %{_bindir}/autoexpect +%attr(755,root,root) %{_bindir}/autopasswd +%attr(755,root,root) %{_bindir}/cryptdir +%attr(755,root,root) %{_bindir}/decryptdir +%attr(755,root,root) %{_bindir}/dislocate +%attr(755,root,root) %{_bindir}/expect +%attr(755,root,root) %{_bindir}/ftp-rfc +%attr(755,root,root) %{_bindir}/kibitz +%attr(755,root,root) %{_bindir}/lpunlock +%attr(755,root,root) %{_bindir}/mkpasswd +%attr(755,root,root) %{_bindir}/passmass +%attr(755,root,root) %{_bindir}/rftp-expect +%attr(755,root,root) %{_bindir}/rlogin-cwd +%attr(755,root,root) %{_bindir}/timed-read +%attr(755,root,root) %{_bindir}/timed-run +%attr(755,root,root) %{_bindir}/unbuffer +%attr(755,root,root) %{_bindir}/weather +%attr(755,root,root) %{_libdir}/libexpect%{version}.so +%dir %{_libdir}/expect%{version} +%attr(755,root,root) %{_libdir}/expect%{version}/pkgIndex.tcl +%attr(755,root,root) %{_libdir}/expect%{version}/libexpect%{version}.so +%{_mandir}/man1/autoexpect.1* +%{_mandir}/man1/cryptdir.1* +%{_mandir}/man1/decryptdir.1* +%{_mandir}/man1/dislocate.1* +%{_mandir}/man1/expect.1* +%{_mandir}/man1/kibitz.1* +%{_mandir}/man1/mkpasswd.1* +%{_mandir}/man1/passmass.1* +%{_mandir}/man1/unbuffer.1* + +%files X11 +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/multixterm +%attr(755,root,root) %{_bindir}/tknewsbiff +%attr(755,root,root) %{_bindir}/tkpasswd +%attr(755,root,root) %{_bindir}/xkibitz +%attr(755,root,root) %{_bindir}/xpstat +%{_mandir}/man1/multixterm.1* +%{_mandir}/man1/tknewsbiff.1* +%{_mandir}/man1/xkibitz.1* %files devel -%attr(644, root, root) /usr/include/* -%{_mandir}/man3/* - -%files static -%attr(644, root, root) %{_libdir}/lib*.a - -%changelog -* Sat Sep 26 1998 Arkadiusz Mi¶kiewicz - [5.26-2] -- added pl translation. - -* Thu Sep 8 1998 Tomasz K³oczko - [5.26-1] -- expect is now in separated source package from orher tcl/tk stuff, -- changed Buildroot to /tmp/%%{name}-%%{version}-root, -- added using %%{name} and %%{version} in Source, -- fixed using $RPM_OPT_FLAGS during compile (curren expect configure script - don't accept passing CFLAGS in enviroment variable), -- added stripping shared libraries and othet binary, -- added devel and static subpackage, -- added package icon, -- added %attr and %defattr macros in %files (allows build package from - non-root account). - -* Thu May 07 1998 Prospector System -- translations modified for de, fr, tr - -* Sat May 02 1998 Cristian Gafton -- fixed expect binaries exec permissions - -* Thu Apr 09 1998 Erik Troan -- updated to Tix 4.1.0.006 -- updated version numbers of tcl/tk to relflect includsion of p2 - -* Wed Mar 25 1998 Cristian Gafton -- updated tcl/tk to patch level 2 -- updated tclX to 8.0.2 - -* Thu Oct 30 1997 Otto Hammersmith -- fixed filelist for tix... replacing path to the expect binary in scripts - was leaving junk files around. - -* Wed Oct 22 1997 Otto Hammersmith -- added patch to remove libieee test in configure.in for tcl and tk. - Shoudln't be needed anymore for glibc systems, but this isn't the "proper" - solution for all systems -- fixed src urls - -* Mon Oct 06 1997 Erik Troan -- removed version numbers from descriptions - -* Mon Sep 22 1997 Erik Troan -- updated to tcl/tk 8.0 and related versions of packages - -* Tue Jun 17 1997 Erik Troan -- built against glibc -- fixed dangling tclx/tkx symlinks +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libexpect.so +%{_includedir}/expect*.h +%{_includedir}/tcldbg.h +%{_mandir}/man3/libexpect.3*