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