1
0
Adrian Schröter 2019-01-07 15:15:35 +00:00 committed by Git OBS Bridge
parent df8e48b584
commit 77f6b57390
2 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 7 15:01:49 UTC 2019 - Adrian Schröter <adrian@suse.de>
- update to version 3.6.1
- run test suite during build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 20 15:47:01 UTC 2018 - Adrian Schröter <adrian@suse.de> Tue Nov 20 15:47:01 UTC 2018 - Adrian Schröter <adrian@suse.de>

View File

@ -26,6 +26,7 @@ Conflicts: cura-engine
Url: https://code.alephobjects.com/diffusion/CTE/cura-engine.git Url: https://code.alephobjects.com/diffusion/CTE/cura-engine.git
Source0: CuraEngine-%{version}.tar.xz Source0: CuraEngine-%{version}.tar.xz
Source1: CuraEngine.1 Source1: CuraEngine.1
#Patch1: fix-build.patch
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
BuildRequires: gcc6-c++ BuildRequires: gcc6-c++
#!BuildIgnore: libgcc_s1 #!BuildIgnore: libgcc_s1
@ -33,6 +34,7 @@ BuildRequires: gcc6-c++
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%endif %endif
BuildRequires: cmake BuildRequires: cmake
BuildRequires: cppunit-devel
BuildRequires: libArcus-devel BuildRequires: libArcus-devel
BuildRequires: stb-devel BuildRequires: stb-devel
@ -45,22 +47,29 @@ This is the LulzBot variation of the engine.
%prep %prep
%setup -q -n CuraEngine-%version %setup -q -n CuraEngine-%version
#%patch1 -p1
%build %build
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
export CC=gcc-6 export CC=gcc-6
export CXX=g++-6 export CXX=g++-6
%endif %endif
%cmake -DCMAKE_C_FLAGS="%{optflags} -fPIC" \ %cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" \
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fpermissive" -DBUILD_SHARED_LIBS="false" \
make %{?_smp_mflags} -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=ON
%make_jobs
%install %install
cd build cd build
%make_install %make_install
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1
mv %buildroot%_bindir/CuraEngine{,-lulzbot} mv %buildroot%_bindir/CuraEngine{,-lulzbot}
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1
%check
cd build
make test
%files %files
%license LICENSE %license LICENSE