File OctoPrint.spec of Package OctoPrint

# spec file for package OctoPrint
# Copyright (c) 2015 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

Name:           OctoPrint
Release:        0
Summary:        The snappy web interface for your 3D printer
Group:          Productivity/Graphics/CAD
License:        AGPL-3.0
Source0:        %name-%{version}.tar.xz
Patch0:		rename_websocket.patch
BuildRequires:  python-setuptools
BuildRequires:  python-devel
BuildRequires:	python
BuildRequires:	python-dateutil python-websocket-client
BuildArch:		noarch
Requires:		CuraEngine >= 15.10.0

# Python requirements
Requires: 	python-awesome-slugify
Requires:	python-chainmap
Requires:	python-coverage
Requires:	python-dist
Requires:	python-feedparser
Requires:	python-funcsigs
Requires:	python-future
Requires:	python-hypothesis
Requires:	python-pluggy
Requires:	python-psutil
Requires:	python-py
Requires:	python-pytest
Requires:	python-pytest-cov
Requires:	python-pytest-timeout
Requires:	python-dateutil
Requires:	python-scandir
Requires:	python-setuptools_scm
Requires:	python-six
Requires:	python-tox
Requires:	python-traceback2
Requires:	python-unittest2
Requires:	python-virtualenv
Requires:	python-websocket-client
Requires:	python-monotonic
Requires:	python-emoji
Requires:	python-frozendict
Requires: 	python-semantic_version
Requires:	python-rsa
Requires:	python-click
Requires:	python-pylru
Requires:	python-netifaces
Requires:	python-sarge
Requires:	python-watchdog
Requires:	python-netaddr
Requires:	python-pyserial
Requires:	python-markdown
Requires:	python-Flask-Assets
Requires:	python-Flask-Babel
Requires:	python-Flask-Login
Requires:	python-PyYAML
Requires:	python-tornado
Requires:	python-flask

Control and monitor every aspect of your 3D printer and your printing jobs right from within your browser:

Access the embedded webcam feed and watch remotely how your printer is creating your newest thing.
Get constant feedback regarding the current progress of your print job.
Take a look at the integrated GCODE visualizer to see a rendition of the GCODE you are currently printing.
Keep an eye on the temperatures of your hotends and print bed and adapt them on the fly.
Move the print head along all axes, extrude, retract or just define your own custom controls.
Start, stop or just pause your current print job, you are in full control at any time.

%setup -q
#%patch0 -p1

PATH="/usr/bin:$PATH" CFLAGS="%{optflags}" python build

python install --prefix=%{_prefix} --root=%{buildroot}