Fedora 17 compile fixes

pull/1/head
Sebastian Held 2012-06-18 13:13:31 +02:00
parent c58e4c5868
commit 6d22f23a8e
2 changed files with 20 additions and 1 deletions

13
linux/fedora17.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/openEMS.pro b/openEMS.pro
index 97b0632..b9c3cf7 100644
--- a/openEMS.pro
+++ b/openEMS.pro
@@ -68,7 +68,7 @@ win32 {
/usr/include/vtk-5.10 \
/usr/include/vtk
INCLUDEPATH += /usr/include/CSXCAD
- LIBS += -lvtkCommon \
+ LIBS += -L/usr/lib/vtk -L/usr/lib64/vtk -lvtkCommon \
-lvtkIO \
-lvtksys \
-lvtkFiltering

View File

@ -19,7 +19,7 @@
Name: openEMS Name: openEMS
Version: 0.0.28 Version: 0.0.28
Release: 1 Release: 2
Summary: Free and Open Electromagnetic Field Solver Summary: Free and Open Electromagnetic Field Solver
Group: Productivity/Scientific/Physics Group: Productivity/Scientific/Physics
License: GPLv3 License: GPLv3
@ -28,6 +28,7 @@ Source0: %{name}-%{version}.tar.bz2
Patch0: invoke_openEMS.m.patch Patch0: invoke_openEMS.m.patch
Patch1: README.patch Patch1: README.patch
Patch2: CalcNF2FF.m.patch Patch2: CalcNF2FF.m.patch
Patch3: fedora17.diff
BuildRoot: %_tmppath/%name-%version-build BuildRoot: %_tmppath/%name-%version-build
# libqt4-devel is needed only to provide qmake (the Qt-libraries are not used) # libqt4-devel is needed only to provide qmake (the Qt-libraries are not used)
@ -56,6 +57,9 @@ OpenEMS is a free and open-source electromagnetic field solver using the (EC-)FD
#%endif #%endif
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%if 0%{?fedora} >= 17
%patch3 -p1
%endif
%build %build
ADDFLAGS="-msse" # enable at least the SSE command set (no SSE makes no sense -- way too slow) ADDFLAGS="-msse" # enable at least the SSE command set (no SSE makes no sense -- way too slow)
@ -87,6 +91,8 @@ rm -rf %{buildroot}
%changelog %changelog
* Mon Jun 18 2012 Sebastian Held <sebastian.held@gmx.de> - 0.0.28-2
- Fedora 17 build fixes
* Sun Jun 17 2012 Sebastian Held <sebastian.held@gmx.de> - 0.0.28-1 * Sun Jun 17 2012 Sebastian Held <sebastian.held@gmx.de> - 0.0.28-1
- new upstream version - new upstream version
* Thu Mar 1 2012 Sebastian Held <sebastian.held@gmx.de> - 0.0.27-1 * Thu Mar 1 2012 Sebastian Held <sebastian.held@gmx.de> - 0.0.27-1