[packages/CuraEngine] - initial, from FC

arekm arekm at pld-linux.org
Thu May 14 22:55:34 CEST 2015


commit fd41772a61642dca92f3e94c1e571d527da9ddbd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 14 22:55:15 2015 +0200

    - initial, from FC

 CuraEngine.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/CuraEngine.spec b/CuraEngine.spec
new file mode 100644
index 0000000..15dfa9c
--- /dev/null
+++ b/CuraEngine.spec
@@ -0,0 +1,54 @@
+%bcond_without 	tests
+Summary:	Engine for processing 3D models into G-code instructions for 3D printers
+Name:		CuraEngine
+Version:	15.04
+Release:	1
+License:	AGPLv3
+Group:		Applications/Engineering
+URL:		https://github.com/Ultimaker/CuraEngine
+Source0:	https://github.com/Ultimaker/CuraEngine/archive/%{version}.tar.gz
+# Source0-md5:	75d34492ca18358aa554a56afb2de440
+BuildRequires:	polyclipping-devel >= 6.1.2
+%{?with_tests:BuildRequires:  python}
+
+%description
+%{name} is a C++ console application for 3D printing G-code
+generation. It has been made as a better and faster alternative to the
+old Skeinforge engine.
+
+This is just a console application for G-code generation. For a full
+graphical application look at cura with is the graphical frontend for
+%{name}.
+
+%prep
+%setup -q
+
+# bundled clipper
+rm -rf clipper
+sed -i 's|#include <clipper/clipper.hpp>|#include <polyclipping/clipper.hpp>|' src/utils/*.h
+sed -i 's|-lclipper|-lpolyclipping|g' Makefile
+sed -i 's| $(BUILD_DIR)/libclipper.a||g' Makefile
+
+# allow redefinition of CFLAGS and do not build it static
+sed -i 's|CFLAGS +=|CFLAGS?=|' Makefile
+sed -i 's|--static||g' Makefile
+
+%build
+CXX="%{__cxx}" \
+CFLAGS="-I. -Ilibs -c %{rpmcflags} %{rpmcppflags} -std=c++11 -fomit-frame-pointer" \
+	%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -Dpm 0755 build/%{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/CuraEngine.git/commitdiff/fd41772a61642dca92f3e94c1e571d527da9ddbd



More information about the pld-cvs-commit mailing list