From feaea52c7189bfa1cdf76995f9761801f1e1165e7a61fb1306def44eed6c4d68 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 10 May 2023 20:13:37 +0000 Subject: [PATCH] - Add optional_devpi_process.patch to make the package not depend on devpi_process (which is rather expensive to build). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=98 --- python-tox.changes | 2 ++ python-tox.spec | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-tox.changes b/python-tox.changes index f683472..977ab73 100644 --- a/python-tox.changes +++ b/python-tox.changes @@ -6,6 +6,8 @@ Fri May 5 14:30:53 UTC 2023 - Matej Cepl to the packaged changelog. - Add mark-network-tests.patch to skip test which require network access +- Add optional_devpi_process.patch to make the package not depend + on devpi_process (which is rather expensive to build). ------------------------------------------------------------------- Fri Apr 21 12:37:47 UTC 2023 - Dirk Müller diff --git a/python-tox.spec b/python-tox.spec index a146422..a5d8c11 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -17,6 +17,11 @@ %{?sle15_python_module_pythons} +%if 0%{?sle15_python_module_pythons} +%bcond_without devpi_process +%else +%bcond_with devpi_process +%endif Name: python-tox Version: 4.5.1 Release: 0 @@ -56,6 +61,9 @@ BuildRequires: %{python_module toml >= 0.9.4} BuildRequires: %{python_module tomli >= 2.0.1} BuildRequires: %{python_module virtualenv >= 20.21.0} BuildRequires: %{python_module wheel >= 0.29.0} +%if %{with devpi_process} +BuildRequires: %{python_module devpi-process} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -108,7 +116,11 @@ use for: CI and shell-based testing. %prep -%autosetup -p1 -n tox-%{version} +%setup -q -n tox-%{version} +%if %{with devpi_process} +%patch0 -p1 +%endif +%autopatch -p1 -m 1 %build export LANG=en_US.UTF8