- prevent moc from tripping over BOOST_JOIN auto/th/avogadro-1.0.3-5
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 26 Jul 2013 19:04:38 +0000 (21:04 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 26 Jul 2013 19:04:38 +0000 (21:04 +0200)
- rel 5

avogadro-moc-boost.patch [new file with mode: 0644]
avogadro.spec

diff --git a/avogadro-moc-boost.patch b/avogadro-moc-boost.patch
new file mode 100644 (file)
index 0000000..7e03ae5
--- /dev/null
@@ -0,0 +1,65 @@
+diff -ur avogadro-1.0.3/libavogadro/src/pythonengine_p.h avogadro-1.0.3-moc/libavogadro/src/pythonengine_p.h
+--- avogadro-1.0.3/libavogadro/src/pythonengine_p.h    2011-04-25 07:22:18.000000000 +0200
++++ avogadro-1.0.3-moc/libavogadro/src/pythonengine_p.h        2013-07-26 20:59:15.179652964 +0200
+@@ -27,7 +27,9 @@
+ #include <avogadro/global.h>
+ #include <avogadro/engine.h>
++#ifndef Q_MOC_RUN
+ #include <boost/python.hpp>
++#endif
+ namespace Avogadro {
+diff -ur avogadro-1.0.3/libavogadro/src/pythonextension_p.h avogadro-1.0.3-moc/libavogadro/src/pythonextension_p.h
+--- avogadro-1.0.3/libavogadro/src/pythonextension_p.h 2011-04-25 07:22:18.000000000 +0200
++++ avogadro-1.0.3-moc/libavogadro/src/pythonextension_p.h     2013-07-26 20:58:34.125949694 +0200
+@@ -29,7 +29,9 @@
+ #include <avogadro/extension.h>
+ #include <avogadro/primitive.h>
+ #include <avogadro/glwidget.h>
++#ifndef Q_MOC_RUN
+ #include <boost/python.hpp>
++#endif
+ #include <QWidget>
+ #include <QList>
+diff -ur avogadro-1.0.3/libavogadro/src/pythoninterpreter.h avogadro-1.0.3-moc/libavogadro/src/pythoninterpreter.h
+--- avogadro-1.0.3/libavogadro/src/pythoninterpreter.h 2011-04-25 07:22:18.000000000 +0200
++++ avogadro-1.0.3-moc/libavogadro/src/pythoninterpreter.h     2013-07-26 21:01:46.450577203 +0200
+@@ -26,7 +26,9 @@
+ #define PYTHONINTERPRETER_H
+ #include <avogadro/global.h>
++#ifndef Q_MOC_RUN
+ #include <boost/python.hpp>
++#endif
+ #include <avogadro/primitive.h>
+ #include <QString>
+diff -ur avogadro-1.0.3/libavogadro/src/pythonscript.h avogadro-1.0.3-moc/libavogadro/src/pythonscript.h
+--- avogadro-1.0.3/libavogadro/src/pythonscript.h      2011-04-25 07:22:18.000000000 +0200
++++ avogadro-1.0.3-moc/libavogadro/src/pythonscript.h  2013-07-26 21:01:53.590641481 +0200
+@@ -27,7 +27,9 @@
+ #define PYTHONSCRIPT_H
+ #include <avogadro/global.h>
++#ifndef Q_MOC_RUN
+ #include <boost/python.hpp>
++#endif
+ #include "pythonerror.h"
+diff -ur avogadro-1.0.3/libavogadro/src/pythontool_p.h avogadro-1.0.3-moc/libavogadro/src/pythontool_p.h
+--- avogadro-1.0.3/libavogadro/src/pythontool_p.h      2011-04-25 07:22:18.000000000 +0200
++++ avogadro-1.0.3-moc/libavogadro/src/pythontool_p.h  2013-07-26 20:58:56.839487711 +0200
+@@ -27,7 +27,9 @@
+ #include <avogadro/global.h>
+ #include <avogadro/tool.h>
++#ifndef Q_MOC_RUN
+ #include <boost/python.hpp>
++#endif
+ #include <QObject>
+ #include <QAction>
index ee308fc..b853c5c 100644 (file)
@@ -1,13 +1,14 @@
 Summary:       An advanced molecular editor for chemical purposes
 Name:          avogadro
 Version:       1.0.3
-Release:       4
+Release:       5
 License:       GPL v2
 Group:         Applications/Editors
 Source0:       http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
 # Source0-md5: 92c2702c1980f70fb6d87a1a58147911
 Patch0:                %{name}-linguist.patch
 Patch1:                %{name}-cmake.patch
+Patch2:                %{name}-moc-boost.patch
 URL:           http://avogadro.openmolecules.net/
 BuildRequires: QtNetwork-devel
 BuildRequires: QtOpenGL-devel
@@ -57,6 +58,7 @@ libraries.
 %setup -q
 %patch0 -p0
 %patch1 -p1
+%patch2 -p1
 
 %build
 install -d build
This page took 0.279395 seconds and 4 git commands to generate.