diff --git a/python-requre.changes b/python-requre.changes index 6abda4e..dc9b114 100644 --- a/python-requre.changes +++ b/python-requre.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jul 17 07:00:01 UTC 2023 - Steve Kowalik + +- Remove BuildRequires on setuptools_scm_git_archive. +- Switch to pyproject macros. +- Add missing Requires on update-alternatives. +- Stop using greedy globs in %files. + ------------------------------------------------------------------- Mon Jun 20 06:04:36 UTC 2022 - Steve Kowalik diff --git a/python-requre.spec b/python-requre.spec index d1e69d3..53bb8c1 100644 --- a/python-requre.spec +++ b/python-requre.spec @@ -1,7 +1,7 @@ # # spec file for package python-requre # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-requre Version: 0.8.2 Release: 0 @@ -25,9 +23,10 @@ Summary: Python libray for storing and using objects for testing License: MIT URL: https://github.com/packit-service/requre Source: https://files.pythonhosted.org/packages/source/r/requre/requre-%{version}.tar.gz -BuildRequires: %{python_module setuptools_scm_git_archive} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-GitPython @@ -35,6 +34,8 @@ Requires: python-PyYAML Requires: python-click Requires: python-requests Suggests: python-pytest +Requires(post): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} @@ -60,10 +61,10 @@ sed -i 's/not network_connection_avalilable()/False/' tests/*.py rm tests/test_E2E_ogr.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/requre-patch %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -85,6 +86,7 @@ export LANG=en_US.UTF-8 %doc README.md %license LICENSE %python_alternative %{_bindir}/requre-patch -%{python_sitelib}/* +%{python_sitelib}/requre +%{python_sitelib}/requre-%{version}.dist-info %changelog