]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - expect/expect.nm
ddns: Add network trigger
[people/amarx/ipfire-3.x.git] / expect / expect.nm
index eea26324ae8d3e3c1558bbfca8d646435f99e8ad..0c098a379e21e01a0bfd23e6e94997d5fd683fd2 100644 (file)
@@ -4,8 +4,9 @@
 ###############################################################################
 
 name       = expect
-version    = 5.43
-release    = 1
+version    = 5.45
+release    = 2
+thisapp    = %{name}%{version}
 
 groups     = Development/Languages
 url        = http://expect.nist.gov/
@@ -13,35 +14,49 @@ license    = Public Domain
 summary    = A program-script interaction and testing utility.
 
 description
-       xpect is a tcl application for automating and testing \
-       interactive applications such as telnet, ftp, passwd, fsck, \
-       rlogin, tip, etc. Expect makes it easy for a script to \
+       expect is a tcl application for automating and testing
+       interactive applications such as telnet, ftp, passwd, fsck,
+       rlogin, tip, etc. Expect makes it easy for a script to
        control another program and interact with it.
 end
 
-source_dl  =
-sources    = %{thisapp}.0.tar.gz
+source_dl  = http://downloads.sourceforge.net/project/expect/Expect/%{version}/
 
 build
        requires
                autoconf
                automake
-               tcl
+               chrpath
+               tcl-devel
        end
 
-       configure_options = \
-               --mandir=/usr/share/man \
-               --with-tcl=/usr/lib \
-               --with-tclinclude=/usr/include/ \
-               --with-x=no \
+       prepare_cmds
+               aclocal
+               autoconf
+
+               cd testsuite
+               autoconf -I..
+       end
+
+       configure_options += \
+               --mandir=%{mandir} \
+               --with-tcl=%{libdir} \
+               --with-tclinclude=%{includedir} \
                --enable-shared
 
        test
                make test
        end
 
-       install
-               make install INSTALL_ROOT=%{BUILDROOT}
+       install_cmds
+               # Install lib to right location.
+               mkdir -pv %{BUILDROOT}%{libdir}
+               mv -v %{BUILDROOT}/%{libdir}/tcl*/expect%{version}/libexpect%{version}.so \
+                       %{BUILDROOT}%{libdir}
+               ln -svf libexpect%{version}.so %{BUILDROOT}%{libdir}/libexpect.so
+
+               # Remove rpath.
+               chrpath --delete %{BUILDROOT}%{libdir}/libexpect%{version}.so
 
                # remove cryptdir/decryptdir, as Linux has no crypt command
                rm -f %{BUILDROOT}/usr/bin/{cryptdir,decryptdir}
@@ -52,5 +67,12 @@ end
 
 packages
        package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end