1
0
Adrian Schröter 2019-01-02 11:56:58 +00:00 committed by Git OBS Bridge
parent b8a21ec973
commit dcc0d771a2

View File

@ -50,9 +50,8 @@ This is the LulzBot variation of the engine.
export CC=gcc-6 export CC=gcc-6
export CXX=g++-6 export CXX=g++-6
%endif %endif
# make sure internal lib_CuraEngine is statically build and linked %cmake -DCMAKE_C_FLAGS="%{optflags} -fPIC" \
%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" -DBUILD_SHARED_LIBS="false" -DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fpermissive"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -61,12 +60,13 @@ cd build
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1 install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1
mv %buildroot%_bindir/CuraEngine{,-lulzbot} mv %buildroot%_bindir/CuraEngine{,-lulzbot}
# hack... not ready for the distro
install -Dm0755 lib_CuraEngine.so %{buildroot}%{_libdir}/lib_CuraEngine.so
%files %files
%doc README.md Changelog.md %defattr(-,root,root,-)
%license LICENSE
%_bindir/CuraEngine-lulzbot %_bindir/CuraEngine-lulzbot
%_libdir/*
%_mandir/man1/CuraEngine-lulzbot.1* %_mandir/man1/CuraEngine-lulzbot.1*
%changelog %changelog