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=751db267a6...
https://src.fedoraproject.org/cgit/rpms/embree3.git/commit/?id=6227dd13f4...
https://src.fedoraproject.org/cgit/rpms/embree3.git/commit/?id=1c9514e4c3...
https://src.fedoraproject.org/cgit/rpms/embree3.git/commit/?id=1901056403....
Change:
+%ifarch x86_64
-%ifarch x86_64
+%ifarch x86_64
+ExclusiveArch: aarch64 x86_64
Thanks.
Full change:
============
commit 751db267a64a71468077b4fa5780782ba1ff6b51
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Mon Feb 26 09:22:53 2024 +0000
Unretirement releng request:
https://pagure.io/releng/issue/11964
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ba040a1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/embree-3.13.5.tar.gz
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ab3de62
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# embree3
+
+The embree3 package
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/dead.package b/dead.package
deleted file mode 100644
index 640cbf6..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-No longer needed by blender and other packages
diff --git a/embree3.spec b/embree3.spec
new file mode 100644
index 0000000..bc02cde
--- /dev/null
+++ b/embree3.spec
@@ -0,0 +1,119 @@
+%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 \
+%endif
+%ifarch x86_64
+ -DEMBREE_ISA_SSE2=ON \
+ -DEMBREE_ISA_SSE4=ON \
+ -DEMBREE_ISA_AVX=ON \
+ -DEMBREE_ISA_AVX2=ON \
+%else
+ -DEMBREE_ISA_NEON=ON \
+%endif
+ -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..11931af
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (embree-3.13.5.tar.gz) =
13ae19b1750197fb4887ba601c75d1b54b3c388224672b6561dd922bc9b9747139cf46ce554727e3afa13dcf152ce4d703935cb9105ced792b011f2d05fa3e95
commit 6227dd13f494458f4726758fdae534b6cf86caf5
Author: Luya Tshimbalanga <luya(a)fedoraproject.org>
Date: Sat Feb 10 12:53:50 2024 -0800
No longer needed by blender and other packages
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index ba040a1..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/embree-3.13.5.tar.gz
diff --git a/README.md b/README.md
deleted file mode 100644
index ab3de62..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# embree3
-
-The embree3 package
diff --git a/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
b/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
deleted file mode 100644
index 8098b22..0000000
--- a/ace05ce4e3bcee8ff4d6204f4dac835f86f17d4a.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-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/dead.package b/dead.package
new file mode 100644
index 0000000..640cbf6
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+No longer needed by blender and other packages
diff --git a/embree3.spec b/embree3.spec
deleted file mode 100644
index bc02cde..0000000
--- a/embree3.spec
+++ /dev/null
@@ -1,119 +0,0 @@
-%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 \
-%endif
-%ifarch x86_64
- -DEMBREE_ISA_SSE2=ON \
- -DEMBREE_ISA_SSE4=ON \
- -DEMBREE_ISA_AVX=ON \
- -DEMBREE_ISA_AVX2=ON \
-%else
- -DEMBREE_ISA_NEON=ON \
-%endif
- -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
deleted file mode 100644
index 11931af..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-SHA512 (embree-3.13.5.tar.gz) =
13ae19b1750197fb4887ba601c75d1b54b3c388224672b6561dd922bc9b9747139cf46ce554727e3afa13dcf152ce4d703935cb9105ced792b011f2d05fa3e95
commit 81be1990ff257a87e05e0e261aed419a536aca2f
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Jan 24 10:25:38 2024 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
commit b6dd47c26f00f7d2768b82259938ef32d7caa4ee
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jan 19 18:11:55 2024 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
commit 6354ff44b93b004b41f500b7889beb3cdcd1b683
Author: Jonathan Wakely <jwakely(a)redhat.com>
Date: Wed Jan 17 23:18:24 2024 +0000
Rebuilt for TBB 2021.11
commit 440a65156cac29e3cae332a33f1665d45989571a
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Jul 19 18:31:38 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit 1c9514e4c38e526c1b4c566059f2271eb5756a85
Author: Luya Tshimbalanga <luya(a)fedoraproject.org>
Date: Sun Mar 19 20:21:24 2023 -0700
Port required ISA changes for ospray
diff --git a/embree3.spec b/embree3.spec
index 6649b6d..bc02cde 100644
--- a/embree3.spec
+++ b/embree3.spec
@@ -80,10 +80,15 @@ The %{name}-examples package contains sample binaries using %{name}.
-DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF \
%if %{with ispc}
-DEMBREE_ISPC_SUPPORT=ON \
+%endif
+%ifarch x86_64
+ -DEMBREE_ISA_SSE2=ON \
+ -DEMBREE_ISA_SSE4=ON \
+ -DEMBREE_ISA_AVX=ON \
+ -DEMBREE_ISA_AVX2=ON \
%else
- -DEMBREE_ISPC_SUPPORT=OFF \
+ -DEMBREE_ISA_NEON=ON \
%endif
- -DEMBREE_MAX_ISA=DEFAULT \
-DEMBREE_TUTORIALS=OFF
%cmake_build
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