# Setup ROCm / HIP related tools # Reference: https://src.fedoraproject.org/rpms/rocfft/blob/f42/f/rocfft.spec %global toolchain rocm # hipcc does not support some clang flags %global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong/-Xarch_host -fstack-protector-strong/' -e 's/-fcf-protection/-Xarch_host -fcf-protection/') Name: vapoursynth-plugin-bm3dcuda-hip Version: 2.14^20250425g200250b Release: %autorelease Summary: BM3D denoising filter for VapourSynth, HIP-only version %define commit 200250b3864d50f0eb5f738686d06d9db3b1fbd3 License: GPL-2.0 URL: https://github.com/WolframRhodium/VapourSynth-BM3DCUDA/ Source0: https://github.com/WolframRhodium/VapourSynth-BM3DCUDA/archive/%{commit}.tar.gz BuildRequires: cmake gcc-c++ rocm-hip-devel rocm-cmake rocm-rpm-macros BuildRequires: pkgconfig(vapoursynth) %description HIP-only (AMD ROCm HIP) BM3D denoising filter for VapourSynth. %prep %autosetup -n VapourSynth-BM3DCUDA-%{commit} %build %cmake \ -DCMAKE_INSTALL_LIBDIR=%{_libdir}/vapoursynth \ -DCMAKE_BUILD_TYPE=Release \ -DVAPOURSYNTH_INCLUDE_DIRECTORY="$(pkg-config --cflags vapoursynth | sed 's|-I||g')" \ -DENABLE_CPU=OFF \ -DENABLE_CUDA=OFF \ -DENABLE_HIP=ON %cmake_build %install %cmake_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %files %license LICENSE %doc README.md %{_libdir}/vapoursynth/libbm3dhip.so %changelog %autochangelog