This commit is contained in:
parent
7cedc9e7b8
commit
abfc7ec73f
1 changed files with 7 additions and 4 deletions
11
cura.spec
11
cura.spec
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue