| |
@@ -1,18 +1,12 @@
|
| |
Name: CuraEngine
|
| |
Epoch: 1
|
| |
Version: 4.10.0
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Engine for processing 3D models into G-code instructions for 3D printers
|
| |
License: AGPLv3+
|
| |
URL: https://github.com/Ultimaker/%{name}
|
| |
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
| |
|
| |
- # The cmake stuff would attempt to git clone this:
|
| |
- # TODO package on it's own
|
| |
- %global stb_commit e6afb9cbae4064da8c3e69af3ff5c4629579c1d2
|
| |
- Source1: https://github.com/nothings/stb/archive/%{stb_commit}.tar.gz
|
| |
- Provides: bundled(stb) = %stb_commit
|
| |
-
|
| |
BuildRequires: gcc
|
| |
BuildRequires: gcc-c++
|
| |
BuildRequires: libarcus-devel == %{version}
|
| |
@@ -22,6 +16,10 @@
|
| |
BuildRequires: cmake
|
| |
BuildRequires: git-core
|
| |
|
| |
+ # Header-only package; -static version is for tracking per guidelines
|
| |
+ BuildRequires: stb_image-devel
|
| |
+ BuildRequires: stb_image-static
|
| |
+
|
| |
Patch0: %{name}-rpath.patch
|
| |
Patch1: %{name}-static-libstdcpp.patch
|
| |
|
| |
@@ -37,8 +35,6 @@
|
| |
|
| |
%prep
|
| |
%autosetup -p1 -S git
|
| |
- tar -xf %{SOURCE1}
|
| |
- mv stb-%{stb_commit} stb
|
| |
|
| |
# bundled libraries
|
| |
rm -rf libs
|
| |
@@ -47,7 +43,7 @@
|
| |
sed -i 's/"DEV"/"%{version}"/' src/settings/Settings.h
|
| |
|
| |
%build
|
| |
- %cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DCURA_ENGINE_VERSION:STRING=%{version} -DUSE_SYSTEM_LIBS:BOOL=ON -DCMAKE_CXX_FLAGS_RELEASE_INIT:STRING="%{optflags} -fPIC" -DStb_INCLUDE_DIRS:PATH=${PWD}
|
| |
+ %cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DCURA_ENGINE_VERSION:STRING=%{version} -DUSE_SYSTEM_LIBS:BOOL=ON -DCMAKE_CXX_FLAGS_RELEASE_INIT:STRING="%{optflags} -fPIC" -DStb_INCLUDE_DIRS:PATH=%{_includedir}
|
| |
%cmake_build
|
| |
|
| |
|
| |
@@ -64,6 +60,9 @@
|
| |
%{_bindir}/%{name}
|
| |
|
| |
%changelog
|
| |
+ * Mon Aug 23 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1:4.10.0-2
|
| |
+ - Unbundle stb_image
|
| |
+
|
| |
* Mon Aug 16 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.10.0-1
|
| |
- Update to 4.10.0
|
| |
|
| |
The new
stb
package withstb_image-devel
subpackage is available in all releases, via a newpackage update plus a buildroot override that expires in a week, so feel free to backport this change to other branches.