forked from pool/python-hatchling
Accepting request 1300716 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only OBS-URL: https://build.opensuse.org/request/show/1300716 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatchling?expand=0&rev=31
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 08:27:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 10 12:42:43 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Thu Jul 10 12:42:43 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hatchling
|
Name: python-hatchling
|
||||||
Version: 1.27.0
|
Version: 1.27.0
|
||||||
@@ -32,16 +36,21 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: %{python_module pluggy >= 1.0.0}
|
BuildRequires: %{python_module pluggy >= 1.0.0}
|
||||||
BuildRequires: %{python_module tomli >= 1.2.2 if %python-base < 3.11}
|
BuildRequires: %{python_module tomli >= 1.2.2 if %python-base < 3.11}
|
||||||
BuildRequires: %{python_module trove-classifiers}
|
BuildRequires: %{python_module trove-classifiers}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Requires: python-packaging >= 21.3
|
Requires: python-packaging >= 21.3
|
||||||
Requires: python-pathspec >= 0.10.1
|
Requires: python-pathspec >= 0.10.1
|
||||||
Requires: python-pluggy >= 1.0.0
|
Requires: python-pluggy >= 1.0.0
|
||||||
Requires: python-trove-classifiers
|
Requires: python-trove-classifiers
|
||||||
Requires: (python-tomli >= 1.2.2 if python-base < 3.11)
|
Requires: (python-tomli >= 1.2.2 if python-base < 3.11)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -63,6 +72,12 @@ This is the extensible, standards compliant build backend used by Hatch.
|
|||||||
# (git clone, pip install ...), so they cannot work on obs
|
# (git clone, pip install ...), so they cannot work on obs
|
||||||
# see tests/downstream/integrate.py for details
|
# see tests/downstream/integrate.py for details
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative hatchling
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative hatchling
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative hatchling
|
%python_libalternatives_reset_alternative hatchling
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user