The package rpms/embree3.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/embree3.git/commit/?id=1901056403....
Change:
+ExclusiveArch: aarch64 x86_64
Thanks.
Full change:
============
commit 49ec2bc4cbc591a6a42230f6a2df554e4e2f28fb
Author: Luya Tshimbalanga <luya(a)fedoraproject.org>
Date: Wed Mar 1 00:09:02 2023 -0800
New package release
This releases keep compatibilty with dependent packages like Blender,
luxcorerender and godot until upstreams port to embree 4 series
diff --git a/.gitignore b/.gitignore
index e69de29..ba040a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/embree-3.13.5.tar.gz
diff --git a/sources b/sources
index e69de29..11931af 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (embree-3.13.5.tar.gz) =
13ae19b1750197fb4887ba601c75d1b54b3c388224672b6561dd922bc9b9747139cf46ce554727e3afa13dcf152ce4d703935cb9105ced792b011f2d05fa3e95
commit 1901056403bd3b6022e99c1ebe805b4f55992fa3
Author: Luya Tshimbalanga <luya(a)fedoraproject.org>
Date: Wed Mar 1 00:01:12 2023 -0800
New package release
This releae keeps compatibilty with dependent packages until their
upstream port to embree 4.x series
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
b/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
new file mode 100644
index 0000000..8098b22
--- /dev/null
+++ b/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
@@ -0,0 +1,40 @@
+From ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a Mon Sep 17 00:00:00 2001
+From: Matthew Dwyer <Mluckydwyer(a)users.noreply.github.com>
+Date: Tue, 25 Oct 2022 02:07:41 -0500
+Subject: [PATCH] Fix Linux aarch64 support on GCC with lax vector conversions
+
+---
+ CMakeLists.txt | 7 +++++++
+ common/cmake/gnu.cmake | 1 +
+ 2 files changed, 8 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 36f77a5520..86343eaae6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -167,6 +167,13 @@ IF (APPLE)
+ ENDIF()
+ ENDIF()
+
++IF (UNIX)
++ IF (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL
"aarch64")
++ MESSAGE(STATUS "Building for ARM64")
++ SET(EMBREE_ARM ON)
++ ENDIF()
++ENDIF()
++
+ SET(EMBREE_TASKING_SYSTEM "TBB" CACHE STRING "Selects tasking
system")
+ SET(EMBREE_TBB_COMPONENT "tbb" CACHE STRING "The TBB component/library
name.")
+
+diff --git a/common/cmake/gnu.cmake b/common/cmake/gnu.cmake
+index 1b2682d9eb..00ace8152d 100644
+--- a/common/cmake/gnu.cmake
++++ b/common/cmake/gnu.cmake
+@@ -28,6 +28,7 @@ ENDIF()
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ IF (EMBREE_ARM)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char") # treat
'char' as 'signed char'
++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flax-vector-conversions") # allow
lax SIMD vector type conversions (required for aarch64 support)
+ ENDIF (EMBREE_ARM)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") #
enables most warnings
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Wformat-security") #
enables string format vulnerability warnings
diff --git a/embree3.spec b/embree3.spec
new file mode 100644
index 0000000..6649b6d
--- /dev/null
+++ b/embree3.spec
@@ -0,0 +1,114 @@
+%global srcname embree
+%global with_snapshot 0
+%global with_examples 0
+%bcond_without ispc
+
+Name: %{srcname}3
+Version: 3.13.5
+Release: %autorelease
+Summary: Collection of high-performance ray tracing kernels
+
+License: Apache-2.0
+URL:
https://embree.github.io
+%if %{with_snapshot}
+Source:
https://github.com/%{srcname}/%{srcname}/archive/%{commit}/%{srcname}-%{c...
+%else
+Source:
https://github.com/%{srcname}/%{srcname}/archive/v%{version}%{?prerelease...
+%endif
+
+#[PATCH] Fix Linux aarch64 support on GCC with lax vector conversions
+#
https://github.com/embree/embree/pull/408/commits/ace05ce4e3bcee8ff4d6204...
+Patch: ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: giflib-devel
+%if %{with ispc}
+BuildRequires: ispc
+%endif
+BuildRequires: pkgconfig(glut)
+BuildRequires: pkgconfig(glfw3)
+BuildRequires: pkgconfig(xmu)
+# Optional dependencies needed for examples
+%if %{with_examples}
+BuildRequires: pkgconfig(libjpeg)
+BuildRequires: pkgconfig(libopenjp2)
+BuildRequires: pkgconfig(libpng)
+BuildRequires: pkgconfig(libtiff-4)
+BuildRequires: pkgconfig(OpenImageIO)
+%endif
+BuildRequires: pkgconfig(tbb)
+
+# Embree only supports these architectures with SSE2 and up enabled
+ExclusiveArch: aarch64 x86_64
+
+%description
+A collection of high-performance ray tracing kernels intended to graphics
+application engineers that want to improve the performance of their application.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+ applications that use %{name}.
+
+%if %{with_examples}
+%package examples
+Summary: Example of application using %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description examples
+The %{name}-examples package contains sample binaries using %{name}.
+%endif
+
+%prep
+%if %{with_snapshot}
+%autosetup -n %{srcname}-%{commit}
+%else
+%autosetup -p1 -n %{srcname}-%{version}%{?prerelease:-%{prerelease}.0}
+%endif
+
+%build
+%cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="%{optflags} -Wl,--as-needed" \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DEMBREE_COMPACT_POLYS=ON \
+ -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF \
+%if %{with ispc}
+ -DEMBREE_ISPC_SUPPORT=ON \
+%else
+ -DEMBREE_ISPC_SUPPORT=OFF \
+%endif
+ -DEMBREE_MAX_ISA=DEFAULT \
+ -DEMBREE_TUTORIALS=OFF
+%cmake_build
+
+%install
+%cmake_install
+
+# Remove duplicated license
+rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt
+
+%files
+%license LICENSE.txt
+%doc README.md CHANGELOG.md readme.pdf third-party-programs-TBB.txt
third-party-programs.txt
+%{_libdir}/lib%{name}.so.3
+%{_libdir}/lib%{name}.so.3.*
+%{_mandir}/man3/*
+
+%files devel
+%{_libdir}/lib%{name}.so
+%{_includedir}/%{name}/
+%{_libdir}/cmake/%{srcname}-%{version}/
+
+%if %{with_examples}
+%files examples
+%{_bindir}/%{name}/*
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..e69de29