Miro Hrončok 2020-07-26 15:35:12 +02:00
commit abfc7ec73f

View file

@ -48,6 +48,9 @@ Requires: libglvnd-devel
# So that it just works
Requires: 3dprinter-udev-rules
# Get Fedora 33++ behavior on anything older
%undefine __cmake_in_source_build
%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
@ -72,14 +75,14 @@ dos2unix docs/How_to_use_the_flame_graph_profiler.md
sed -i '1s=^#!/usr/bin/\(python\|env python\)3*=#!%{__python3}=' cura_app.py
%build
%{cmake} \
%cmake \
-DCURA_VERSION:STRING=%{version} \
-DCURA_BUILDTYPE=RPM \
-DCURA_CLOUD_API_ROOT:STRING=%{cura_cloud_api_root} \
-DCURA_CLOUD_API_VERSION:STRING=%{cura_cloud_api_version} \
-DCURA_CLOUD_ACCOUNT_API_ROOT:STRING=%{cura_cloud_account_api_root} \
-DLIB_SUFFIX:STR= .
make %{?_smp_mflags}
-DLIB_SUFFIX:STR=
%cmake_build
# rebuild locales
cd resources/i18n
@ -95,7 +98,7 @@ cd -
%install
make install DESTDIR=%{buildroot}
%cmake_install
# Sanitize the location of locale files
pushd %{buildroot}%{_datadir}