From 72734a8176c4a22cd0ee3322f4c2a226c20bb33211b84d7818e8748a1a344956 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 20 Sep 2024 20:43:06 +0000 Subject: [PATCH] Clean up the SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-incremental?expand=0&rev=19 --- python-incremental.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-incremental.spec b/python-incremental.spec index 50d0b8e..95c9a4c 100644 --- a/python-incremental.spec +++ b/python-incremental.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -59,7 +58,7 @@ Incremental is a small library that versions your Python projects. %pyproject_wheel %install -%if !%{with test} +%if %{without test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -70,12 +69,12 @@ Incremental is a small library that versions your Python projects. %pytest -k 'not test_examples.py' %endif -%if !%{with test} +%if %{without test} %files %{python_files} %license LICENSE %doc NEWS.rst README.rst %{python_sitelib}/incremental -%{python_sitelib}/incremental-%{version}.dist-info +%{python_sitelib}/incremental-%{version}*-info %endif %changelog