Skip to content
Permalink
Browse files

Fix medfile loction on different versions of fedora

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information...
PrzemoF authored and wwmayer committed Jan 5, 2019
1 parent 744f381 commit 0136445404fa1d45fff3d1254f938c147fc3834e
Showing with 7 additions and 1 deletion.
  1. +7 −1 package/fedora/freecad.spec
@@ -140,13 +140,19 @@ rm -rf build && mkdir build && cd build
# Deal with cmake projects that tend to link excessively.
#LDFLAGS='-Wl,--as-needed'; export LDFLAGS

%if 0%{?fedora} > 27
%define MEDFILE_INCLUDE_DIRS %{_includedir}/med/
%else
%define MEDFILE_INCLUDE_DIRS %{_includedir}/
%endif

%cmake -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
-DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
-DRESOURCEDIR=%{_datadir}/%{name} \
-DFREECAD_USE_EXTERNAL_PIVY=TRUE \
-DMEDFILE_INCLUDE_DIRS=%{_includedir}/med/ \
-DMEDFILE_INCLUDE_DIRS=%{MEDFILE_INCLUDE_DIRS} \
../

sed -i 's,FCRevision \"Unknown\",FCRevision \"%{release} (Git)\",' src/Build/Version.h

0 comments on commit 0136445

Please sign in to comment.
You can’t perform that action at this time.