## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Build conditionals %bcond ispc 1 Name: embree Version: 4.4.0 Release: %autorelease Summary: High-performance ray tracing kernels License: Apache-2.0 URL: https://embree.github.io # Snapshot build configuration (disabled by default) %global with_snapshot 0 %if %{with_snapshot} # Example snapshot variables (uncomment and modify as needed) #%%global prerelease beta #%%global commit 40b9aca2668f443cae6bfbfa7cc5a354f1087011 #%%global shortcommit %%(c=%%{commit}; echo ${c:0:7}) Source: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz#/%{name}-%{version}-%{shortcommit}.tar.gz %else Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: giflib-devel %if %{with ispc} BuildRequires: ispc %endif BuildRequires: pkgconfig(glut) BuildRequires: pkgconfig(glfw3) BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(OpenImageIO) BuildRequires: pkgconfig(tbb) # Supported architectures with SIMD optimizations ExclusiveArch: aarch64 x86_64 %description Embree provides high-performance ray tracing kernels optimized for modern CPUs, targeting graphics application engineers seeking to accelerate their rendering workloads. %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}. %prep %if %{with_snapshot} %autosetup -n %{name}-%{commit} %else %autosetup -p1 -n %{name}-%{version} %endif %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="%{optflags} -Wl,--as-needed" \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_SKIP_RPATH=ON \ -DEMBREE_COMPACT_POLYS=ON \ -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF \ %if %{with ispc} -DEMBREE_ISPC_SUPPORT=ON \ %endif -DEMBREE_MAX_ISA=NONE \ %ifarch x86_64 -DEMBREE_ISA_SSE2=ON \ -DEMBREE_ISA_SSE4=ON \ -DEMBREE_ISA_AVX=ON \ -DEMBREE_ISA_AVX2=ON \ %else -DEMBREE_ARM=ON \ -DEMBREE_ISA_NEON=ON \ %endif -DEMBREE_TUTORIALS=ON \ -DEMBREE_TESTING=ON \ -DEMBREE_STATIC_LIB=OFF %cmake_build %check %ctest --output-on-failure %install %cmake_install # Clean up installation rm -fv %{buildroot}%{_prefix}/%{name}-vars.{csh,sh} rm -frv %{buildroot}%{_prefix}/src \ %{buildroot}%{_bindir}/models \ %{buildroot}%{_bindir}/embree_*_tests # Organize documentation mv %{buildroot}%{_docdir}/%{name}4 %{buildroot}%{_docdir}/%{name} rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt %files %license LICENSE.txt %doc README.md CHANGELOG.md readme.pdf third-party-programs{,-TBB,-DPCPP,-OIDN,-oneAPI-DPCPP}.txt %{_bindir}/%{name}* %{_libdir}/lib%{name}4.so.4 %{_mandir}/man3/* %files devel %{_libdir}/lib%{name}4.so %{_includedir}/%{name}4/ %{_libdir}/cmake/%{name}-%{version}/ %changelog ## START: Generated by rpmautospec * Wed Aug 20 2025 Jerry James - 4.4.0-1 - Rebuild for tbb 2022.2.0 ## END: Generated by rpmautospec