From d09e0471f1e4a6cc822bdaf764eef16ba9aa6999932aa3d3d9d8666654d491e3 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 24 Jul 2024 13:17:32 +0000 Subject: [PATCH] more conflicts OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-torch?expand=0&rev=34 --- python-torch.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/python-torch.spec b/python-torch.spec index e81625e..e39c92e 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -226,6 +226,12 @@ PyTorch provides two high-level features: Summary: Headers for C/C++, cmake build description and libraries needed for development Group: Development/Languages/Python Requires: python-torch = %{version} +%if %{with openmpi4} +Conflicts: %{python_module torch-devel} +%endif +%if %{with vulkan} +Conflicts: %{python_module torch-devel} +%endif %description devel Although the Python interface is more polished and the primary focus of @@ -240,6 +246,13 @@ Requires: python3-click Requires: python3-onnx Requires: python3-pip Requires: python3-pname +%if %{with openmpi4} +Conflicts: %{python_module torch-converters} +%endif +%if %{with vulkan} +Conflicts: %{python_module torch-converters} +%endif + %description converters Converter from caffe2 to onnx and from caffe2 to onnx formated files. @@ -250,6 +263,12 @@ Group: Development/Languages/Python BuildArch: noarch Recommends: python3-lmdb Recommends: python3-networkx +%if %{with openmpi4} +Conflicts: %{python_module torch-examples} +%endif +%if %{with vulkan} +Conflicts: %{python_module torch-examples} +%endif %description examples This example files can be used to start an own pytorch/caffe2 project.