]> git.pld-linux.org Git - packages/expect.git/blobdiff - expect.spec
- updated to 5.41.0
[packages/expect.git] / expect.spec
index 42513467619e7610d35705586519d7701e11a961..d521dd8946e6c71ca1be0143a4db0d2be6fb4add 100644 (file)
@@ -1,26 +1,36 @@
-Summary:       tcl extension
-Summary(de):   tcl-Erweiterung
-Summary(fr):   Extension tcl
-Summary(pl):   Rozszerzenie TCL
-Summary(tr):   Programlar arasý etkileþimi mümkün kýlan tcl geniþletmesi
+Summary:       Tcl extension
+Summary(de):   Tcl-Erweiterung
+Summary(fr):   Extension Tcl
+Summary(pl):   Rozszerzenie Tcl
+Summary(ru):   òÁÓÛÉÒÅÎÉÅ Tcl ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÐÒÏÇÒÁÍÍÁÍÉ ÉÚ ÓËÒÉÐÔÏ×
+Summary(tr):   Programlar arasý etkileþimi mümkün kýlan Tcl geniþletmesi
+Summary(uk):   òÏÚÛÉÒÅÎÎÑ Tcl ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÐÒÏÇÒÁÍÁÍÉ Ú¦ ÓËÒÉÐÔ¦×
 Name:          expect
-Version:       5.32.2
-Release:       52
+%define        major   5.41
+Version:       %{major}.0
+Release:       1
 License:       BSD
 Group:         Development/Languages/Tcl
-Source0:       ftp://ftp.scriptics.com/pub/tcl/expect/%{name}.%{version}.tar.gz
+Source0:       http://expect.nist.gov/src/%{name}-%{version}.tar.gz
+# Source0-md5: 490664773286690d111d9cd055c50700
 Patch0:                %{name}-pty.patch
 Patch1:                %{name}-alpha.patch
 Patch2:                %{name}-bug7869.patch
 Patch3:                %{name}-fixcat.patch
 Patch4:                %{name}-jbj.patch
+Patch5:                %{name}-soname.patch
+Patch6:                %{name}-lib64.patch
 Icon:          tcl.gif
 URL:           http://expect.nist.gov/
-BuildRequires: glibc-static
-BuildRequires: tcl-devel >= 8.3.2
-BuildRequires: tk-devel >= 8.3.2
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: tcl-devel >= 8.4.6
+BuildRequires: tk-devel >= 8.4.6
+Requires:      tcl >= 8.4.6
 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
@@ -48,11 +58,21 @@ Expect telnet, ftp, passwd, fsck, rlogin, tip gibi etkile
 uygulamalarý otomatize etmeye yarayan bir araçtýr. Bir uygulamanýn bir
 diðer uygulamayý denetlemesini kolaylaþtýrýr.
 
+%description -l ru
+Expect - ÜÔÏ ÉÎÓÔÒÕÍÅÎÔ ÄÌÑ Á×ÔÏÍÁÔÉÚÁÃÉÉ ÉÎÔÅÒÁËÔÉ×ÎÙÈ ÐÒÏÇÒÁÍÍ,
+ÔÁËÉÈ ËÁË telnet, ftp, passwd, fsck, rlogin, tip, É Ô.Ð. ðÏÚ×ÏÌÑÅÔ
+ÕÐÒÁ×ÌÑÔØ ÐÒÏÇÒÁÍÍÁÍÉ É ×ÚÁÉÍÏÄÅÊÓÔ×Ï×ÁÔØ Ó ÎÉÍÉ ÉÚ ÓËÒÉÐÔÏ×.
+
+%description -l uk
+Expect - ÃÅ ¦ÎÓÔÒÕÍÅÎÔ ÄÌÑ Á×ÔÏÍÁÔÉÚÁ槠¦ÎÔÅÒÁËÔÉ×ÎÉÈ ÐÒÏÇÒÁÍ, ÔÁËÉÈ
+ÑË telnet, ftp, passwd, fsck, rlogin, tip, ¦ Ô.¦. äÏÚ×ÏÌѤ ËÅÒÕ×ÁÔÉ
+ÐÒÏÇÒÁÍÁÍÉ ÔÁ ×ÚÁ¤ÍÏĦÑÔÉ Ú ÎÉÍÉ Ú¦ ÓËÒÉÐÔ¦×.
+
 %package X11
-Summary:       tk extension
-Summary(pl):   rozszerzenie tk
+Summary:       Tk extension
+Summary(pl):   Rozszerzenie Tk
 Group:         Development/Languages/Tcl
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description X11
 This package contains expectk, which is an Tk extension, just as
@@ -63,48 +83,63 @@ Ten pakiet zawiera expectk, kt
 expect jest dla Tcl.
 
 %package devel
-Summary:       tcl extension header files and development documentation
-Summary(pl):   Pliki nag³ówkowe i dokumentacja do rozszerzenia jêzyka TCL
+Summary:       Tcl extension header files and development documentation
+Summary(pl):   Pliki nag³ówkowe i dokumentacja do rozszerzenia jêzyka Tcl
 Group:         Development/Languages/Tcl
-Requires:      %{name} = %{version}
-Requires:      tcl-devel
+Requires:      %{name} = %{version}-%{release}
+Requires:      tcl-devel >= 8.4.6
 
 %description devel
 Tcl extension language header files and develppment documentation.
 
 %description devel -l pl
-Pliki nag³ówkowe i dokumentacja do rozszerzenie jêzyka TCL.
+Pliki nag³ówkowe i dokumentacja do rozszerzenie jêzyka Tcl.
 
-%package       static
-Summary:       tcl extension static library
-Summary(pl):   Biblioteka statyczna rozszerzenia jêzyka TCL
+%package static
+Summary:       Tcl extension static library
+Summary(pl):   Biblioteka statyczna rozszerzenia jêzyka Tcl
 Group:         Development/Languages/Tcl
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Tcl extension language static library.
 
 %description static -l pl
-Biblioteka statyczna rozszerzenia jêzyka TCL.
+Biblioteka statyczna rozszerzenia jêzyka Tcl.
 
 %prep
-%setup  -q -n %{name}5.32
+%setup -q -n %{name}-%{major}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%ifarch amd64
+%patch6 -p1
+%endif
 
-chmod +w configure
+chmod +w {.,testsuite}/configure
 
 %build
-%configure2_13 \
+install /usr/share/automake/config.* .
+# only local macros, don't call aclocal
+%{__autoconf}
+cd testsuite
+cp ../aclocal.m4 .
+%{__autoconf}
+cd -
+%configure \
        --enable-gcc \
        --enable-shared \
-       --with-tclconfig=%{_libdir} \
-       --with-tkconfig=/%{_libdir} \
+       --with-tclconfig=%{_ulibdir} \
+       --with-tkconfig=%{_ulibdir} \
        --with-tclinclude=%{_includedir} \
        --with-tkinclude=%{_includedir}
+
+cat expect_cf.h | sed "s|.*SETPGRP_VOID.*|\#define SETPGRP_VOID 1|" > expect_cf.h.new
+mv -f expect_cf.h{.new,}
+
 %{__make}
 
 %install
@@ -114,16 +149,19 @@ LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \
 %{__make} install \
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
-( cd $RPM_BUILD_ROOT%{_bindir}; mv -f rftp rftp-expect )
+mv -f $RPM_BUILD_ROOT%{_bindir}/{rftp,rftp-expect}
 
-gzip -9nf FAQ README ChangeLog
-
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+ln -sf $(cd $RPM_BUILD_ROOT%{_libdir} ; echo libexpect%{major}.so.*.*) \
+       $RPM_BUILD_ROOT%{_libdir}/libexpect%{major}.so
+ln -sf $(cd $RPM_BUILD_ROOT%{_libdir} ; echo libexpect%{major}.so.*.*) \
+       $RPM_BUILD_ROOT%{_libdir}/libexpect.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/autoexpect
@@ -145,7 +183,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/weather
 %dir %{_libdir}/expect*
 %attr(755,root,root) %{_libdir}/expect*/pkgIndex.tcl
-%attr(755,root,root) %{_libdir}/libe*.so
+%attr(755,root,root) %{_libdir}/libexpect*.so.*.*
 %{_mandir}/man1/autoexpect.*
 %{_mandir}/man1/cryptdir.*
 %{_mandir}/man1/decryptdir.*
@@ -159,17 +197,20 @@ rm -rf $RPM_BUILD_ROOT
 %files X11
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/expectk
+%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/expectk.*
+%{_mandir}/man1/multixterm.*
 %{_mandir}/man1/tknewsbiff.*
 %{_mandir}/man1/xkibitz.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc *.gz
+%doc ChangeLog FAQ HISTORY NEWS README
+%attr(755,root,root) %{_libdir}/libexpect*.so
 %{_includedir}/*
 %{_mandir}/man3/*
 
This page took 0.042596 seconds and 4 git commands to generate.