From dcc0d771a243a1f1c9c033b378e0f3b3d7f4d3f8e982fc2282e99e2355aefedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 2 Jan 2019 11:56:58 +0000 Subject: [PATCH] sync OBS-URL: https://build.opensuse.org/package/show/science/cura-engine-lulzbot?expand=0&rev=41 --- cura-engine-lulzbot.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cura-engine-lulzbot.spec b/cura-engine-lulzbot.spec index 5d5e9d7..fb13dfb 100644 --- a/cura-engine-lulzbot.spec +++ b/cura-engine-lulzbot.spec @@ -50,9 +50,8 @@ This is the LulzBot variation of the engine. export CC=gcc-6 export CXX=g++-6 %endif -# make sure internal lib_CuraEngine is statically build and linked -%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" -DBUILD_SHARED_LIBS="false" - +%cmake -DCMAKE_C_FLAGS="%{optflags} -fPIC" \ + -DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fpermissive" make %{?_smp_mflags} %install @@ -61,12 +60,13 @@ cd build install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1 mv %buildroot%_bindir/CuraEngine{,-lulzbot} +# hack... not ready for the distro +install -Dm0755 lib_CuraEngine.so %{buildroot}%{_libdir}/lib_CuraEngine.so %files -%doc README.md Changelog.md -%license LICENSE +%defattr(-,root,root,-) %_bindir/CuraEngine-lulzbot - +%_libdir/* %_mandir/man1/CuraEngine-lulzbot.1* %changelog