fix build on non-x86 64-bit platforms
This commit is contained in:
parent
749686595f
commit
37733eeb3e
18
texworks-0.4.0-64bit.patch
Normal file
18
texworks-0.4.0-64bit.patch
Normal 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
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: texworks
|
Name: texworks
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A simple IDE for authoring TeX documents
|
Summary: A simple IDE for authoring TeX documents
|
||||||
|
|
||||||
|
|
||||||
@ -11,6 +11,7 @@ Group: Applications/Editors
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://tug.org/texworks/
|
URL: http://tug.org/texworks/
|
||||||
Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r%{rev}.tar.gz
|
Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r%{rev}.tar.gz
|
||||||
|
Patch0: %{name}-0.4.0-64bit.patch
|
||||||
|
|
||||||
BuildRequires: hunspell-devel
|
BuildRequires: hunspell-devel
|
||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
@ -30,6 +31,7 @@ You may install the texlive-* packages to make this program useful.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .64bit
|
||||||
# pkg-config file of Lua
|
# pkg-config file of Lua
|
||||||
perl -pi -e 's/(?<=lua)5\..*//' plugins-src/TWLuaPlugin/TWLuaPlugin.pro
|
perl -pi -e 's/(?<=lua)5\..*//' plugins-src/TWLuaPlugin/TWLuaPlugin.pro
|
||||||
# Python version
|
# Python version
|
||||||
@ -100,6 +102,9 @@ update-desktop-database &> /dev/null || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Mar 25 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.0-1
|
||||||
- Update to 0.4.0
|
- Update to 0.4.0
|
||||||
- Use uptream desktop entry file
|
- Use uptream desktop entry file
|
||||||
|
Loading…
Reference in New Issue
Block a user