SHA256
1
0
forked from pool/expect
OBS User unknown 2008-04-06 01:57:53 +00:00 committed by Git OBS Bridge
parent 802e03fd77
commit d968cd173c
4 changed files with 27 additions and 20 deletions

View File

@ -1551,8 +1551,8 @@ Index: expect.c
-int cmdtype;
+exp_cmd_init(
+ struct exp_cmd_descriptor *cmd,
+ int duration,
+ int cmdtype)
+ int cmdtype,
+ int duration)
{
cmd->duration = duration;
cmd->cmdtype = cmdtype;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 14:00:24 CEST 2008 - max@suse.de
- Fixed swapped arguments in prototype of exp_cmd_init()
- Adjusted installation to the new Tcl file system layout
-------------------------------------------------------------------
Thu Mar 20 19:13:00 CET 2008 - max@suse.de

View File

@ -25,7 +25,7 @@ Index: Makefile.in
pkgIndex.tcl-hand:
(echo 'package ifneeded Expect $(PACKAGE_VERSION) \
- [list load [file join $$dir $(PKG_LIB_FILE)]]'\
+ [list load $(PKG_LIB_FILE)]'\
+ [list load [file join $$dir .. .. $(PKG_LIB_FILE)]]'\
) > pkgIndex.tcl
#========================================================================

View File

@ -15,7 +15,7 @@ Url: http://expect.nist.gov
Name: expect
BuildRequires: tcl-devel
Version: 5.44.1.5
Release: 1
Release: 6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Languages/Tcl
License: Public Domain, Freeware
@ -41,6 +41,7 @@ Authors:
libes@nist.gov
%package devel
License: Public Domain, Freeware
Group: Development/Libraries/Tcl
Summary: Header Files and C API Documentation for expect
@ -73,23 +74,20 @@ CFLAGS="%optflags" \
--with-tcl=%_libdir \
--with-tk=no_tk \
--mandir=%_mandir \
--with-tclinclude=/usr/include \
--enable-shared
make all
make all pkglibdir=%_libdir/tcl/%name%version
%check
make test
%install
# set the right path to the expect binary...
cd example
for f in *; do
sed -e '1s,^#![^ ]*expectk,#!/usr/bin/wish\npackage require Expect,' \
-e '1s,^#![^ ]*expect,#!/usr/bin/expect,' $f > $f.mod
mv $f.mod $f
chmod a+x $f
done
cd ..
make DESTDIR=$RPM_BUILD_ROOT pkglibdir=%tclscriptdir/%name%version install
sed -i \
-e '1s,^#![^ ]*expectk,#!/usr/bin/wish\npackage require Expect,' \
-e '1s,^#![^ ]*expect,#!/usr/bin/expect,' \
example/*
make install DESTDIR=$RPM_BUILD_ROOT pkglibdir=%_libdir/tcl/%name%version
# Remove some executables and manpages we don't want to ship
rm $RPM_BUILD_ROOT%_prefix/bin/*passwd
rm $RPM_BUILD_ROOT%_mandir/*/*passwd*
@ -99,18 +97,21 @@ rm -rf %buildroot
%files
%defattr(-,root,root)
%{_prefix}/bin/*
%{_libdir}/libexpect*
%{_datadir}/tcl/expect*
%doc %{_mandir}/man1/*
%_prefix/bin/*
%_libdir/tcl/*
%_libdir/lib*so
%doc %_mandir/man1/*
%doc ChangeLog HISTORY INSTALL FAQ NEWS README
%files devel
%defattr(-,root,root)
%{_includedir}/*
%doc %{_mandir}/man3/*
%_includedir/*
%doc %_mandir/man3/*
%changelog
* Thu Apr 03 2008 max@suse.de
- Fixed swapped arguments in prototype of exp_cmd_init()
- Adjusted installation to the new Tcl file system layout
* Thu Mar 20 2008 max@suse.de
- Update to version 5.44.1.5 from CVS:
* Improved internal buffer management