File cura.spec of Package cura
#
# spec file for package cura
#
# 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
Version: 15.04
Release: 0
Summary: 3D printer control software
License: AGPL-3.0
Group: BLAH
Url: http://daid.github.com/Cura/
Source0: https://github.com/daid/Cura/archive/%{version}/Cura-%{version}.tar.xz
Patch1: fix-build.patch
BuildArch: noarch
BuildRequires: update-desktop-files
BuildRequires: dos2unix
BuildRequires: python3-devel
BuildRequires: icoutils
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: uranium
Requires: cura-engine
Requires: uranium
Requires: python3-numpy
Requires: python3-opengl
Requires: python3-power
Requires: python3-pyserial
Requires: python3-qt5
Requires: python3-sip
Requires: python3-scipy
%description
Cura is a project which aims to be an single software solution for 3D printing.
While it is developed to be used with the Ultimaker 3D printer, it can be used
with other RepRap based designs.
Cura helps you to setup an Ultimaker, shows your 3D model, allows for scaling /
positioning, can slice the model to G-Code, with sane editable configuration
settings and send this G-Code to the 3D printer for printing.
%prep
%setup -q -n Cura-%version
%patch1 -p1
%build
%cmake -DURANIUM_DIR=/usr/lib/uranium -DURANIUM_SCRIPTS_DIR=/usr/share/uranium/resources/scripts
make %{?_smp_mflags}
%install
cd build
%make_install
%suse_update_desktop_file cura Robotics Graphics 3DGraphics
%files
%defattr (-,root,root,-)
%doc LICENSE CHANGES README.md
%{python3_sitelib}/cura
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/cura.xml
%{_datadir}/appdata/cura.appdata.xml
%{_bindir}/cura
/usr/lib/cura
%changelog