Репозиторий Sisyphus
Последнее обновление: 19 ноября 2019 | Пакетов: 17513 | Посещений: 15811093
en ru br
Репозитории ALT

Группа :: Engineering
Пакет: cura

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

%global with_check 1
%add_python3_compile_include %_libexecdir/cura

Name: cura
Epoch: 1
Version: 3.6.0
Release: alt2.1
Summary: 3D printer control software
License: LGPLv3+

Group: Engineering
Url: https://github.com/Ultimaker/Cura
Packager: Anton Midyukov <antohami at altlinux.org>

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3 rpm-macros-cmake
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: dos2unix
BuildRequires: python3-devel
BuildRequires: Uranium >= %version
# Tests
%if 0%{?with_check}
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pip
BuildRequires: python3-module-savitar
BuildRequires: python3-module-requests

%py3_requires serial zeroconf
Requires: python3-module-savitar = %version
Requires: Uranium = %version
Requires: qt5-quickcontrols
Requires: qt5-quickcontrols2
Requires: CuraEngine = %epoch:%version
Requires: cura-fdm-materials = %version
Requires: 3dprinter-udev-rules

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 prepares your model for 3D printing. For novices, it makes it easy to get
great results. For experts, there are over 200 settings to adjust to your
needs. As it's open source, our community helps enrich it even more.


# The setup.py is only useful for py2exe, remove it, so noone is tempted to use it

rm setup.py

# Wrong end of line encoding

dos2unix docs/How_to_use_the_flame_graph_profiler.md

# Wrong shebang

%__subst '1s=^#!%_bindir/\(python\|env python\)3*=#!%__python3=' cura_app.py

%cmake -DCURA_VERSION:STRING=%version \


%find_lang cura fdmextruder.def.json fdmprinter.def.json --output=%name.lang

# fix directories appdata

mv %buildroot%_datadir/metainfo %buildroot%_datadir/appdata

%if 0%{?with_check}
python3 -m pip freeze
python3 -m pytest -v

desktop-file-validate %buildroot%_datadir/applications/%name.desktop

%files -f %name.lang


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin