## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 # Use clang by default. %bcond gcc 0 %bcond hip %{undefined flatpak} #%%global prerelease beta Name: oidn Version: 2.5.1 Release: %autorelease %{?prerelease: -p -e %{prerelease}} Summary: Library of noise reduction filters for images rendered with ray tracing License: Apache-2.0 URL: https://openimagedenoise.github.io/ Source0: https://github.com/OpenImageDenoise/%{name}/releases/download/v%{version}%{?prerelease:-%{prerelease}}/%{name}-%{version}%{?prerelease:-%{prerelease}}.src.tar.gz %if %{without gcc} %global toolchain clang %endif %if %{with hip} # Work around flags unsupported by hipcc. This currently affects all C++ # targets; scope the workaround to the HIP external project when possible. %global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong//' -e 's/-fcf-protection//' -e 's/-mtls-dialect=gnu2//' ) %endif # This package currently enables only x86_64 builds. ExclusiveArch: x86_64 BuildRequires: cmake >= 3.21 BuildRequires: cmake-rpm-macros # Enable HIP support %if %{with hip} BuildRequires: hipcc BuildRequires: rocm-hip-devel BuildRequires: rocm-runtime %endif # Needed to remove rpath from apps BuildRequires: chrpath BuildRequires: binutils %if %{with gcc} BuildRequires: gcc-c++ %else BuildRequires: clang %endif BuildRequires: help2man BuildRequires: cmake(ispcrt) BuildRequires: ispc >= 1.30.0 BuildRequires: python3 BuildRequires: pkgconfig(OpenImageIO) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(tbb) %description Intel Open Image Denoise is an open source library of high-performance, high-quality noise reduction filters for images rendered with ray tracing. %package libs Summary: Libraries for %{name} %description libs The %{name}-libs package contains shared libraries for %{name}. # Enable HIP support %if %{with hip} %package libs-hip Summary: HIP backend for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} # Select the backend when OIDN and the HIP runtime are installed. Supplements: (%{name}-libs%{?_isa} = %{version}-%{release} and rocm-hip%{?_isa}) %description libs-hip The %{name}-libs-hip package provides the AMD GPU noise reduction backend. %endif %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package docs Summary: Documentation for %{name} BuildArch: noarch %description docs The %{name}-docs package contains documentation for %{name}. %prep %autosetup -n %{name}-%{version}%{?prerelease:-%{prerelease}} %build %cmake \ -DOIDN_DEVICE_CPU=ON \ %if %{with hip} -DOIDN_DEVICE_HIP=ON \ -DROCM_PATH=%{_libdir} \ -DOIDN_DEVICE_HIP_COMPILER=%{_bindir}/hipcc \ %else -DOIDN_DEVICE_HIP=OFF \ %endif -DOIDN_APPS=ON \ -DOIDN_APPS_OPENIMAGEIO=ON \ -DOIDN_INSTALL_DEPENDENCIES=OFF %cmake_build %install %cmake_install # Generate and install man pages. install -d '%{buildroot}%{_mandir}/man1' for app in %{name}Denoise %{name}Test %{name}Benchmark do cmd="%{buildroot}%{_bindir}/${app}" LD_LIBRARY_PATH='%{buildroot}%{_libdir}' \ help2man \ --no-info --no-discard-stderr --version-string='%{version}' \ --output="%{buildroot}%{_mandir}/man1/$(basename "${cmd}").1" \ "${cmd}" done # Remove RPATH/RUNPATH from regular ELF files, skipping symlinks. find %{buildroot}%{_bindir} %{buildroot}%{_libdir} -type f | while IFS= read -r elf do if readelf -h "$elf" >/dev/null 2>&1; then if readelf -d "$elf" | grep -qE '\((RPATH|RUNPATH)\)'; then chrpath --delete "$elf" fi fi done # Remove upstream-installed documentation; package it explicitly below. rm -rf %{buildroot}%{_docdir}/OpenImageDenoise %check # Run upstream tests on the CPU; builders do not need GPU access. OIDN_DEVICE_HIP=0 \ OIDN_DEVICE_SYCL=0 \ OIDN_DEVICE_CUDA=0 \ OIDN_DEVICE_METAL=0 \ LD_LIBRARY_PATH="%{buildroot}%{_libdir}" \ %{buildroot}%{_bindir}/oidnTest --device cpu %files %doc CHANGELOG.md %{_bindir}/%{name}{Denoise,Test,Benchmark} %{_mandir}/man1/%{name}{Denoise,Test,Benchmark}.1.gz %files libs %license LICENSE.txt third-party-programs.txt %{_libdir}/libOpenImageDenoise{,_core,_device_cpu}.so.2 %{_libdir}/libOpenImageDenoise{,_core,_device_cpu}.so.%{version} %if %{with hip} %files libs-hip %license LICENSE.txt third-party-programs.txt %{_libdir}/libOpenImageDenoise_device_hip.so.%{version} %endif %files docs %license LICENSE.txt %doc README.md readme.pdf third-party-programs-DPCPP.txt third-party-programs-oneTBB.txt %files devel %doc README.md %{_libdir}/cmake/OpenImageDenoise-%{version}/ %{_includedir}/OpenImageDenoise/ %{_libdir}/libOpenImageDenoise.so %changelog ## START: Generated by rpmautospec * Thu Nov 26 2026 Luya Tshimbalanga - 2.5.1-4 - Use conditional weak dependency for OIDN HIP backend - Replace unconditional HIP backend recommendation with Supplements - Select the HIP backend when OIDN libraries and ROCm HIP are present - Avoid pulling ROCm dependencies into CPU-only installations - Include the license in the HIP backend subpackage * Sat Nov 14 2026 Luya Tshimbalanga - 2.5.1-3 - Split hip backend as recommended subpackage * Sat Oct 03 2026 Luya Tshimbalanga - 2.5.1-2 - Disable HIP support for now * Wed Aug 19 2026 Luya Tshimbalanga - 2.5.1-1 - Update to 2.5.1 upstream release - Resolves: rhbz#2518058 * Thu Jul 16 2026 Fedora Release Engineering - 2.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat Jun 27 2026 Luya Tshimbalanga - 2.5.0-2 - Rebuild for ispc 1.31.0 * Wed Jun 03 2026 Luya Tshimbalanga - 2.5.0-1 - Update to 2.5.0 (rhbz#2428382) * Fri Jan 16 2026 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Jan 11 2026 Luya Tshimbalanga - 2.4.0-1 - Update to 2.4.0 (rhbz#2428382) * Wed Dec 17 2025 Luya Tshimbalanga - 2.3.3-10 - Rebuild for ispc 1.29.0 * Sun Dec 07 2025 Richard Shaw - 2.3.3-9 - Rebuild for OpenImageIO 3.1. * Thu Sep 25 2025 Tom Rix - 2.3.3-8 - Disable hip build * Tue Sep 16 2025 Richard Shaw - 2.3.3-7 - Rebuild for OpenImageIO 3. * Wed Aug 20 2025 Jerry James - 2.3.3-6 - Rebuild for tbb 2022.2.0 * Thu Aug 14 2025 Luya Tshimbalanga - 2.3.3-5 - Rebuild for ispc 1.28.0 * Mon Aug 04 2025 Tom Rix - 2.3.3-4 - Fix hip build * Thu Jul 24 2025 Fedora Release Engineering - 2.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat May 17 2025 Luya Tshimbalanga - 2.3.3-2 - Rebuild for ispc 1.27.0 * Sat Apr 05 2025 Luya Tshimbalanga - 2.3.3-1 - Update to 2.3.3 (rhbz#2357507) * Fri Mar 28 2025 Yaakov Selkowitz - 2.3.2-3 - Disable HIP for flatpaks * Fri Jan 17 2025 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jan 16 2025 Luya Tshimbalanga - 2.3.2-1 - Update to 2.3.2 (rhbz#2337565) * Wed Nov 13 2024 Luya Tshimbalanga - 2.3.1-1 - Update to 2.3.1 (rhbz#2325495) * Sun Sep 22 2024 Tom Rix - 2.3.0-5 - Enable hip * Thu Jul 18 2024 Fedora Release Engineering - 2.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 18 2024 Luya Tshimbalanga - 2.3.0-3 - Update to 2.3.0 (rhbz#2292770) * Tue May 28 2024 Luya Tshimbalanga - 2.3.0-0.2.beta - Rebuild for ispc 1.24.0 * Sun May 05 2024 Luya Tshimbalanga - 2.3.0-0.1.beta - Update to 2.3.0 beta (rhbz#2269787) * Sun Mar 17 2024 Luya Tshimbalanga - 2.2.2-1 - Update to 2.2.2 (#2269787) * Sun Mar 03 2024 Luya Tshimbalanga - 2.2.1-1 - Update to 2.2.1 (rhbz#2267055) * Sat Feb 17 2024 Luya Tshimbalanga - 2.2.0-1 - Update to 2.2.0 (rhbz#2262488) * Tue Jan 30 2024 Richard Shaw - 2.1.0-5 - Rebuild for OpenImageIO 2.5.x. * Thu Jan 25 2024 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 17 2024 Jonathan Wakely - 2.1.0-2 - Rebuilt for TBB 2021.11 * Fri Oct 13 2023 Luya Tshimbalanga - 2.1.0-1 - Update to 2.1.0 (rhbz#2243422) * Thu Jul 20 2023 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 27 2023 Luya Tshimbalanga - 2.0.1-1 - Update to 2.0.1 (rhbz#2209815) * Fri Jun 02 2023 Ali Erdinc Koroglu - 2.0.0-2 - ahead-of-time (only for development) disabled and lib versioning added * Tue May 30 2023 Luya Tshimbalanga - 2.0.0-1 - Update to oidn 2.0.0 * Thu Jan 19 2023 Fedora Release Engineering - 1.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 10 2022 Daan De Meyer - 1.4.3-2 - Remove explicit build directory argument from cmake call * Tue Feb 22 2022 Luya Tshimbalanga - 1.4.3-1 - Update to oidn 1.4.3 (#2020201) * Thu Jan 20 2022 Fedora Release Engineering - 1.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 23 2021 Luya Tshimbalanga - 1.4.1-1 - Update to 1.4.1 Resolves rhbz#1975015 * Wed May 19 2021 Luya Tshimbalanga - 1.4.0-1 - Update to 1.4.0 Drop temporary patch from upstraem Resolves rhbz#1961760 * Tue May 11 2021 Luya Tshimbalanga - 1.3.0-6 - Patch from upstream devel branch addressing glibc change Fixes rhbz#1959312 Resolves: fedora#1945579 * Tue May 11 2021 Luya Tshimbalanga - 1.3.0-5 - Patch from upstream devel branch addressing glibc change Fixes rhbz#1959312 Resolves: fedora#1945579 * Tue May 11 2021 Luya Tshimbalanga - 1.3.0-4 - Patch from upstream devel branch addressing glibc change Fixes rhbz#1959312 Resolves: fedora#1945579 * Mon May 10 2021 Jonathan Wakely - 1.3.0-3 - Rebuilt for removed libstdc++ symbols (#1937698) * Tue Mar 30 2021 Jonathan Wakely - 1.3.0-2 - Rebuilt for removed libstdc++ symbol (#1937698) * Fri Feb 05 2021 Luya Tshimbalanga - 1.3.0-1 - Update to 1.3.0 * Tue Jan 26 2021 Fedora Release Engineering - 1.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Dec 02 2020 Luya Tshimbalanga - 1.2.4-1 - Update to 1.2.4 * Mon Sep 14 2020 Luya Tshimbalanga - 1.2.3-1 - Update to 1.2.3 Follow new Fedora cmake guideline * Thu Aug 20 2020 Simone Caronni - 1.2.2-4 - Move cmake files to devel subpackage * Sat Aug 01 2020 Fedora Release Engineering - 1.2.2-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 20 2020 Luya Tshimbalanga - 1.2.2-1 - Update to 1.2.2 (#1855832) Add OpenImageIO dependency * Sun Jun 21 2020 Luya Tshimbalanga - 1.2.1-1 - Update to 1.2.1 * Sat Apr 11 2020 Luya Tshimbalanga - 1.2.0-1 - Update to 1.2.0 Add ispc and redhat-rpm-config depedencies * Wed Jan 29 2020 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 17 2019 Luya Tshimbalanga - 1.1.0-1 - Update to 1.1.0 * Sat Aug 17 2019 Luya Tshimbalanga - 1.0.0-1 - Update to 1.0.0 Use pkgconfig for Python 3 * Thu Jul 25 2019 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 2019 Luya Tshimbalanga - 0.9.0-1 - Update to 0.9.0 * Tue Apr 02 2019 Luya Tshimbalanga - 0.8.2-1 - Use spaces on line 47 Make -doc subpackage noarch Make -doc subpackage requiring main package ## END: Generated by rpmautospec