2016-12-23 10:00:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package CuraEngine
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cura-engine
|
2017-11-03 07:20:58 +00:00
|
|
|
Version: 3.0.3
|
2016-12-23 10:00:09 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: 3D printer control software
|
2017-12-09 09:40:25 +00:00
|
|
|
License: LGPL-3.0
|
|
|
|
Group: Hardware/Printing
|
2016-12-23 10:00:09 +00:00
|
|
|
Url: http://github.com/Ultimaker/CuraEngine
|
2017-06-26 07:10:06 +00:00
|
|
|
Source0: https://github.com/Ultimaker/CuraEngine/archive/%{version}/CuraEngine-%{version}.tar.xz
|
2016-12-23 10:00:09 +00:00
|
|
|
Source1: CuraEngine.1
|
2017-12-09 09:40:25 +00:00
|
|
|
# On TW/Factory or Leap/SLE 15 use latest gcc, gcc6 otherwise
|
2017-12-07 08:27:58 +00:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2017-12-09 09:40:25 +00:00
|
|
|
BuildRequires: gcc-c++ >= 5
|
2017-12-07 08:27:58 +00:00
|
|
|
%else
|
2017-11-03 07:20:58 +00:00
|
|
|
BuildRequires: gcc6-c++
|
2017-12-07 08:27:58 +00:00
|
|
|
%endif
|
2017-06-26 07:10:06 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libArcus-devel
|
2016-12-23 10:25:51 +00:00
|
|
|
|
2016-12-23 10:00:09 +00:00
|
|
|
%description
|
|
|
|
CuraEngine is the a powerful, fast and robust engine for processing 3D models
|
|
|
|
into 3D printing instruction for Ultimaker and other GCode based 3D printers.
|
|
|
|
It is part of the larger open source project called "Cura".
|
|
|
|
|
|
|
|
%prep
|
2017-06-26 07:10:06 +00:00
|
|
|
%setup -q -n CuraEngine-%version
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-03 07:20:58 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
export CC=gcc-6
|
|
|
|
export CXX=g++-6
|
2017-06-26 07:10:06 +00:00
|
|
|
%endif
|
2018-01-29 15:44:27 +00:00
|
|
|
# make sure lib_CuraEngine is statically build and linked
|
|
|
|
%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" -DBUILD_SHARED_LIBS="false"
|
2017-12-09 09:40:25 +00:00
|
|
|
%make_jobs
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-26 07:10:06 +00:00
|
|
|
cd build
|
|
|
|
%make_install
|
2016-12-23 10:00:09 +00:00
|
|
|
|
2017-06-26 07:10:06 +00:00
|
|
|
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine.1
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2017-06-26 07:10:06 +00:00
|
|
|
%_bindir/CuraEngine
|
|
|
|
%_mandir/man1/CuraEngine.1*
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%changelog
|