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; -int cmdtype;
+exp_cmd_init( +exp_cmd_init(
+ struct exp_cmd_descriptor *cmd, + struct exp_cmd_descriptor *cmd,
+ int duration, + int cmdtype,
+ int cmdtype) + int duration)
{ {
cmd->duration = duration; cmd->duration = duration;
cmd->cmdtype = cmdtype; 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 Thu Mar 20 19:13:00 CET 2008 - max@suse.de

View File

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

View File

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