update to 1.1.1 [release 1.1.1-1mamba;Sat Jun 14 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 20:43:00 +01:00
parent a80423387d
commit 641cb815a5
2 changed files with 100 additions and 11 deletions

View File

@ -0,0 +1,78 @@
diff -ru avogadro-1.1.1/libavogadro/src/pythonengine_p.h avogadro-1.1.1.patched/libavogadro/src/pythonengine_p.h
--- avogadro-1.1.1/libavogadro/src/pythonengine_p.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythonengine_p.h 2014-06-14 13:24:44.906052644 +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 -ru avogadro-1.1.1/libavogadro/src/pythonextension_p.h avogadro-1.1.1.patched/libavogadro/src/pythonextension_p.h
--- avogadro-1.1.1/libavogadro/src/pythonextension_p.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythonextension_p.h 2014-06-14 13:26:29.510072837 +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 -ru avogadro-1.1.1/libavogadro/src/pythoninterpreter.h avogadro-1.1.1.patched/libavogadro/src/pythoninterpreter.h
--- avogadro-1.1.1/libavogadro/src/pythoninterpreter.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythoninterpreter.h 2014-06-14 13:27:34.316085348 +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 -ru avogadro-1.1.1/libavogadro/src/pythonscript.h avogadro-1.1.1.patched/libavogadro/src/pythonscript.h
--- avogadro-1.1.1/libavogadro/src/pythonscript.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythonscript.h 2014-06-14 13:27:49.010088184 +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 -ru avogadro-1.1.1/libavogadro/src/pythonthread_p.h avogadro-1.1.1.patched/libavogadro/src/pythonthread_p.h
--- avogadro-1.1.1/libavogadro/src/pythonthread_p.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythonthread_p.h 2014-06-14 13:28:08.114091872 +0200
@@ -26,7 +26,9 @@
#define PYTHONTHREAD_H
#include <avogadro/global.h>
+#ifndef Q_MOC_RUN
#include <boost/python.hpp>
+#endif
namespace Avogadro {
diff -ru avogadro-1.1.1/libavogadro/src/pythontool_p.h avogadro-1.1.1.patched/libavogadro/src/pythontool_p.h
--- avogadro-1.1.1/libavogadro/src/pythontool_p.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1.patched/libavogadro/src/pythontool_p.h 2014-06-14 13:28:40.003098028 +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>

View File

@ -1,5 +1,5 @@
Name: avogadro Name: avogadro
Version: 1.1.0 Version: 1.1.1
Release: 1mamba Release: 1mamba
Summary: An advanced molecule editor and visualizer Summary: An advanced molecule editor and visualizer
Group: Graphical Desktop/Applications/Scientific Group: Graphical Desktop/Applications/Scientific
@ -8,25 +8,29 @@ Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com> Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://avogadro.openmolecules.net URL: http://avogadro.openmolecules.net
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0: avogadro-1.1.1-boost-1.5.5.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libGL-devel BuildRequires: libGL-devel
BuildRequires: libglew-devel
BuildRequires: libGLU-devel BuildRequires: libGLU-devel
BuildRequires: libICE-devel BuildRequires: libICE-devel
BuildRequires: libpython-devel
BuildRequires: libqt4-devel
BuildRequires: libSM-devel BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXext-devel BuildRequires: libXext-devel
BuildRequires: libgcc
BuildRequires: libglew-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel BuildRequires: libz-devel
BuildRequires: openbabel-devel BuildRequires: openbabel-devel
BuildRequires: python-boost-devel BuildRequires: python-boost-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python-sip-devel BuildRequires: python-sip-devel
BuildRequires: libeigen2-devel
BuildRequires: eigen3-devel
Requires: python-numpy Requires: python-numpy
Requires: libavogadro = %{?epoch:%epoch:}%{version}-%{release} Requires: libavogadro = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -52,16 +56,20 @@ Group: System/Libraries
%prep %prep
%setup -q %setup -q
# use working version included in cmake %patch0 -p1
rm -f cmake/modules/FindPythonLibs.cmake ## use working version included in cmake
#rm -f cmake/modules/FindPythonLibs.cmake
%build %build
%cmake -d build \ %cmake -d build \
-DENABLE_GLSL:BOOL=ON \ -DENABLE_GLSL:BOOL=ON \
-DENABLE_PYTHON:BOOL=ON \ -DENABLE_PYTHON:BOOL=ON \
-DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{python_version}.so \ -DEIGEN2_INCLUDE_DIR=%{_includedir}/eigen2 \
-DPYTHON_INCLUDE_DIR:PATH=%{_includedir}/python%{python_version} \ -DEIGEN3_INCLUDE_DIR=%{_includedir}/eigen3
-DSIP_INCLUDE_DIR=%{_includedir}/python%{python_version}
# -DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{python_version}.so \
# -DPYTHON_INCLUDE_DIR:PATH=%{_includedir}/python%{python_version} \
# -DSIP_INCLUDE_DIR=%{_includedir}/python%{python_version}
%make %make
@ -124,6 +132,9 @@ mv %{buildroot}%{_prefix}/features/avogadro.prf \
#%doc AUTHORS COPYING #%doc AUTHORS COPYING
%changelog %changelog
* Sat Jun 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba * Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0 - update to 1.1.0