fix build on non-x86 64-bit platforms

This commit is contained in:
Dan Horák 2011-03-31 09:04:21 +02:00
parent 749686595f
commit 37733eeb3e
2 changed files with 24 additions and 1 deletions

View File

@ -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

View File

@ -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 <dan[at]danny.cz> - 0.4.0-2
- fix build on non-x86 64-bit platforms
* Fri Mar 25 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.0-1
- Update to 0.4.0
- Use uptream desktop entry file