diff --git a/texworks-0.4.0-64bit.patch b/texworks-0.4.0-64bit.patch new file mode 100644 index 0000000..0b3f577 --- /dev/null +++ b/texworks-0.4.0-64bit.patch @@ -0,0 +1,18 @@ +diff -up texworks-0.4.0/TeXworks.pro.64bit texworks-0.4.0/TeXworks.pro +--- texworks-0.4.0/TeXworks.pro.64bit 2011-03-30 20:01:49.000000000 +0200 ++++ texworks-0.4.0/TeXworks.pro 2011-03-30 20:02:00.000000000 +0200 +@@ -107,6 +107,14 @@ linux-g++ { + LIBS += -lz + } + ++linux-g++-64 { ++ # Qt/dbus config on Debian is broken, hence the lines below ++ LIBS += -lQtDBus ++ INCLUDEPATH += /usr/include/qt4/QtDBus ++ # needed to link successfully on Fedora, apparently ++ LIBS += -lz ++} ++ + openbsd-g++ { + # Same bug exists in OpenBSD/qt4 + LIBS += -lQtDBus diff --git a/texworks.spec b/texworks.spec index 0d7f177..63c3827 100644 --- a/texworks.spec +++ b/texworks.spec @@ -3,7 +3,7 @@ Name: texworks Version: 0.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A simple IDE for authoring TeX documents @@ -11,6 +11,7 @@ Group: Applications/Editors License: GPLv2+ URL: http://tug.org/texworks/ Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r%{rev}.tar.gz +Patch0: %{name}-0.4.0-64bit.patch BuildRequires: hunspell-devel BuildRequires: dbus-devel @@ -30,6 +31,7 @@ You may install the texlive-* packages to make this program useful. %prep %setup -q +%patch0 -p1 -b .64bit # pkg-config file of Lua perl -pi -e 's/(?<=lua)5\..*//' plugins-src/TWLuaPlugin/TWLuaPlugin.pro # Python version @@ -100,6 +102,9 @@ update-desktop-database &> /dev/null || : %changelog +* Wed Mar 30 2011 Dan HorĂ¡k - 0.4.0-2 +- fix build on non-x86 64-bit platforms + * Fri Mar 25 2011 Robin Lee - 0.4.0-1 - Update to 0.4.0 - Use uptream desktop entry file