X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=CGAL.spec;fp=CGAL.spec;h=caf5e00859763da428979879e556fb274138573c;hb=68d6bebe191bba606ae819f865c79079baabe788;hp=91fcc0bd1f8016e6b96bd386b8b405a0c6fe5015;hpb=ec63b175af61f520443051ae0a20a9c969b35618;p=packages%2FCGAL.git diff --git a/CGAL.spec b/CGAL.spec index 91fcc0b..caf5e00 100644 --- a/CGAL.spec +++ b/CGAL.spec @@ -17,6 +17,7 @@ License: GPL v3+ and LGPL v3+ Group: Libraries Source0: https://github.com/CGAL/releases/archive/%{name}-%{version}.tar.gz # Source0-md5: 50b29d3f3372cd93aaa31d01f0e45036 +Patch0: %{name}-buildtype.patch URL: http://www.cgal.org/ BuildRequires: OpenGL-GLU-devel BuildRequires: Qt5Core-devel >= %{qt5_ver} @@ -115,6 +116,7 @@ demonstracyjnych do algorytmów CGAL. %prep %setup -q -n releases-%{name}-%{version} +%patch0 -p1 %build install -d build @@ -122,10 +124,8 @@ cd build # override build type, because: # PLD is not a valid build type: only Release or Debug is allowed %cmake .. \ - -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ - -DCMAKE_CXX_FLAGS_Release="%{rpmcxxflags}" \ - -DCMAKE_EXE_LINKER_FLAGS_Release="%{rpmldflags}" \ - -DCMAKE_SHARED_LINKER_FLAGS_Release="%{rpmldflags}" \ + -DCGAL_CXX_FLAGS="%{rpmcxxflags} %{rpmcppflags}" \ + -DCGAL_SHARED_LINKER_FLAGS="%{rpmldflags}" \ -DCGAL_INSTALL_LIB_DIR=%{_lib} \ -DCGAL_INSTALL_DOC_DIR= \ %{?with_qt3:-DWITH_CGAL_Qt3=ON} \