Add all missing CMakeCache parameters to populate CuraVersion.py
Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
This commit is contained in:
parent
abf7cc4c99
commit
d2d4084c19
1 changed files with 14 additions and 2 deletions
16
cura.spec
16
cura.spec
|
|
@ -57,6 +57,9 @@ needs. As it's open source, our community helps enrich it even more.
|
|||
|
||||
# see: https://github.com/Ultimaker/Cura/issues/5142
|
||||
%define cura_sdk_version 6.0.0
|
||||
%define cura_cloud_api_root https://api.ultimaker.com
|
||||
%define cura_cloud_api_version 1
|
||||
%define cura_cloud_account_api_root https://account.ultimaker.com
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -S git -n Cura-%{version}
|
||||
|
|
@ -67,9 +70,15 @@ dos2unix docs/How_to_use_the_flame_graph_profiler.md
|
|||
# Wrong shebang
|
||||
sed -i '1s=^#!/usr/bin/\(python\|env python\)3*=#!%{__python3}=' cura_app.py
|
||||
|
||||
|
||||
%build
|
||||
%{cmake} -DCURA_VERSION:STRING=%{version} -DCURA_SDK_VERSION:STRING=%{cura_sdk_version} -DLIB_SUFFIX:STR= .
|
||||
%{cmake} \
|
||||
-DCURA_VERSION:STRING=%{version} \
|
||||
-DCURA_BUILDTYPE=RPM \
|
||||
-DCURA_SDK_VERSION:STRING=%{cura_sdk_version} \
|
||||
-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}
|
||||
|
||||
# rebuild locales
|
||||
|
|
@ -129,6 +138,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|||
%{_prefix}/lib/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Apr 04 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue