## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 # Experimental image-space guiding buffer feature disabled by default %bcond_with oidn Name: openpgl Version: 0.7.1 Release: %autorelease Summary: Open Path Guiding Library License: Apache-2.0 URL: https://github.com/OpenPathGuidingLibrary/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: embree-devel BuildRequires: gcc-c++ %if %{with oidn} BuildRequires: oidn-devel %endif BuildRequires: pkgconfig(tbb) # Upstream only supports x86_64 and ARM64 architectures ExclusiveArch: aarch64 x86_64 %description The Intel Open Path Guiding Library (Intel Open PGL) implements a set of representations and training algorithms needed to integrate path guiding into a renderer. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 # Convert non-UTF8 third-party file to UTF-8 iconv -f ISO-8859-1 -t UTF-8 -o third-party-programs-oneTBB.txt.new \ third-party-programs-oneTBB.txt && mv third-party-programs-oneTBB.txt.new third-party-programs-oneTBB.txt # Remove LICENSE.txt from installation list sed -i '/LICENSE.txt/d' openpgl/CMakeLists.txt %build # TODO: Please submit an issue to upstream (rhbz#2380794) export CMAKE_POLICY_VERSION_MINIMUM=3.5 %cmake \ -DCMAKE_CXX_FLAGS="%{optflags} -flax-vector-conversions" \ %{?with_oidn:-DOPENPGL_EF_IMAGE_SPACE_GUIDING_BUFFER=ON} \ %ifarch x86_64 -DOPENPGL_ISA_AVX512=ON \ %else -DOPENPGL_ISA_NEON=ON \ -DOPENPGL_ISA_NEON2X=ON %endif %cmake_build %install %cmake_install %check %ctest -V %files %license LICENSE.txt %doc CHANGELOG.md README.md third-party-programs*.txt %{_libdir}/lib%{name}.so.* %files devel %{_includedir}/%{name} %{_libdir}/cmake/%{name}-%{version} %{_libdir}/lib%{name}.so %changelog ## START: Generated by rpmautospec * Wed Nov 12 2025 Cristian Le - 0.7.1-3 - Allow to build with CMake 4.0 (rhbz#2380794) * Thu Aug 21 2025 Jerry James - 0.7.1-2 - Rebuild for tbb 2022.2.0 * Fri Aug 01 2025 Luya Tshimbalanga - 0.7.1-1 - Update to 0.7.1 (rhbz#2385821) * Thu Jul 24 2025 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jul 10 2025 Luya Tshimbalanga - 0.7.0-1 - Update to 0.7.0 * Fri Jan 17 2025 Fedora Release Engineering - 0.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 17 2024 Jonathan Wakely - 0.5.0-3 - Rebuilt for TBB 2021.11 * Thu Jul 20 2023 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Mar 19 2023 aekoroglu - 0.5.0-1 - Update to 0.5.0 and ARM64 support added * Thu Jan 19 2023 Fedora Release Engineering - 0.4.1-0.2.beta - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 09 2022 Luya Tshimbalanga - 0.4.1-0.1.beta - New package ## END: Generated by rpmautospec