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
|
2018-07-16 06:31:19 +00:00
|
|
|
Version: 3.4.1
|
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
|
2018-07-25 09:59:46 +00:00
|
|
|
Source0: CuraEngine-%{version}.tar.xz
|
2016-12-23 10:00:09 +00:00
|
|
|
Source1: CuraEngine.1
|
2018-07-30 08:54:34 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: fix-build.patch
|
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
|
2018-07-26 08:41:30 +00:00
|
|
|
BuildRequires: stb-devel
|
2016-12-23 10:25:51 +00:00
|
|
|
|
2016-12-23 10:00:09 +00:00
|
|
|
%description
|
2018-07-27 08:22:38 +00:00
|
|
|
CuraEngine is an engine for processing 3D models into 3D printing
|
|
|
|
instruction for Ultimaker and other GCode-based 3D printers.
|
|
|
|
It is part of the larger project called "Cura".
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%prep
|
2017-06-26 07:10:06 +00:00
|
|
|
%setup -q -n CuraEngine-%version
|
2018-07-30 08:54:34 +00:00
|
|
|
%patch1 -p1
|
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
|
2018-07-09 13:11:23 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2017-06-26 07:10:06 +00:00
|
|
|
%_bindir/CuraEngine
|
|
|
|
%_mandir/man1/CuraEngine.1*
|
2016-12-23 10:00:09 +00:00
|
|
|
|
|
|
|
%changelog
|