--- /dev/null
+Index: tix-8.4.3/PyTix-2.0/2.0/_tkinter.c
+===================================================================
+--- tix-8.4.3.orig/PyTix-2.0/2.0/_tkinter.c
++++ tix-8.4.3/PyTix-2.0/2.0/_tkinter.c
+@@ -41,6 +41,7 @@ Copyright (C) 1994 Steen Lumholt.
+ #define MAC_TCL
+ #endif
+
++#define USE_INTERP_RESULT 1
+ #include <tcl.h>
+ #include <tk.h>
+ #ifdef WITH_TIX
+Index: tix-8.4.3/PyTix-2.0/2.0/tkappinit.c
+===================================================================
+--- tix-8.4.3.orig/PyTix-2.0/2.0/tkappinit.c
++++ tix-8.4.3/PyTix-2.0/2.0/tkappinit.c
+@@ -12,6 +12,7 @@
+ it explicitly, e.g. tkapp.eval("load {} Blt").
+ */
+
++#define USE_INTERP_RESULT 1
+ #include <tcl.h>
+ #include <tk.h>
+
+Index: tix-8.4.3/generic/tix.h
+===================================================================
+--- tix-8.4.3.orig/generic/tix.h
++++ tix-8.4.3/generic/tix.h
+@@ -27,6 +27,7 @@ extern "C" {
+ #endif
+
+ #ifndef _TK
++#define USE_INTERP_RESULT 1
+ #include <tk.h>
+ #endif
+
+Index: tix-8.4.3/generic/tixPort.h
+===================================================================
+--- tix-8.4.3.orig/generic/tixPort.h
++++ tix-8.4.3/generic/tixPort.h
+@@ -19,6 +19,7 @@
+ #define _TIX_PORT_H_
+
+ #ifndef _TCL
++#define USE_INTERP_RESULT 1
+ #include "tcl.h"
+ #endif
+
+Index: tix-8.4.3/generic/tixUtils.c
+===================================================================
+--- tix-8.4.3.orig/generic/tixUtils.c
++++ tix-8.4.3/generic/tixUtils.c
+@@ -13,6 +13,7 @@
+ * $Id: tixUtils.c,v 1.13 2008/02/28 04:29:17 hobbs Exp $
+ */
+
++#define USE_INTERP_RESULT 1
+ #include <tcl.h>
+ #include <tixPort.h>
+ #include <tixInt.h>
Summary(pl.UTF-8): Wiele widgetów (takich jak notepad) dla Tk
Summary(tr.UTF-8): Tk için ek arayüz elemanları (not defterleri v.b.)
Name: tix
-Version: %{major}.0
-Release: 2
+Version: %{major}.3
+Release: 1
Epoch: 1
License: BSD
Group: Development/Languages/Tcl
-Source0: http://dl.sourceforge.net/tix/%{name}-%{version}.tar.gz
-# Source0-md5: 7fcd84a1a6e27e432cb07284b7a34317
+Source0: http://download.sourceforge.net/tix/Tix%{version}-src.tar.gz
+# Source0-md5: 2b8bf4b10a852264678182652f477e59
Patch0: %{name}-scriptpaths.patch
-Patch1: %{name}-tcl85_hack.patch
+Patch2: fixInterpResult.patch
URL: http://tix.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
Tix - programy demostracjne.
%prep
-%setup -q
+%setup -q -n Tix%{version}
%patch0 -p1
-%patch1 -p1
+%patch2 -p1
%build
%{__aclocal} -I tclconfig
install -d $RPM_BUILD_ROOT%{_mandir}/mann
install man/*.n $RPM_BUILD_ROOT%{_mandir}/mann
+install -d $RPM_BUILD_ROOT%{_datadir}/groff/current/tmac
+sed -i -e 's/.so man.macros/.mso tix.tmac/g' $RPM_BUILD_ROOT%{_mandir}/mann/*.n
+install man/man.macros $RPM_BUILD_ROOT%{_datadir}/groff/current/tmac/tix.tmac
+
cp -af demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
rm -f $RPM_BUILD_ROOT%{_libdir}/Tix%{major}/bitmaps/mktransgif.tcl*
%files
%defattr(644,root,root,755)
%doc ABOUT.html ChangeLog README.txt index.html license.terms docs/FAQ.html
-%dir %{_libdir}/Tix%{major}
-%attr(755,root,root) %{_libdir}/Tix%{major}/libTix%{major}.so
-%{_libdir}/Tix%{major}/*.tcl
-%{_libdir}/Tix%{major}/bitmaps
-%{_libdir}/Tix%{major}/pref
+%dir %{_libdir}/Tix%{version}
+%attr(755,root,root) %{_libdir}/Tix%{version}/libTix%{version}.so
+%{_libdir}/Tix%{version}/*.tcl
+%{_libdir}/Tix%{version}/bitmaps
+%{_libdir}/Tix%{version}/pref
%files devel
%defattr(644,root,root,755)
%doc docs/*.txt docs/{pdf,tix-book}
%{_mandir}/mann/*
+%{_datadir}/groff/current/tmac/tix.tmac
%files demo
%defattr(644,root,root,755)