forked from pool/python-incremental
Clean up the SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-incremental?expand=0&rev=19
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user