%_torchdir %python3_sitelibdir/torch/share/cmake/Torch

%remove_torch_deps \
	%filter_from_requires /^python3[(]torch[)]/d \
        %filter_from_requires /^python3[(]torch[.]/d \
	%filter_from_requires /^python3[(]torchgen/d \
	%filter_from_requires /^python3[(]functorch/d \
        %filter_from_requires /^libtorch[.]so/d \
        %filter_from_requires /^libtorch_/d \
        %filter_from_requires /^libc10[.]so/d \
        %filter_from_requires /^libc10_/d \
        %filter_from_requires /^libshm[.]so/d

%remove_torch_debug_deps \
        %filter_from_requires /debug64(libc10\.so)/d \
        %filter_from_requires /debug64(libtorch\.so)/d\
        %filter_from_requires /debug64(libtorch_cpu\.so)/d
