forked from pool/python-hatch-fancy-pypi-readme
Accepting request 1300713 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only OBS-URL: https://build.opensuse.org/request/show/1300713 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch-fancy-pypi-readme?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 08:25:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 10 12:36:07 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Thu Jul 10 12:36:07 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -24,7 +24,11 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%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-hatch-fancy-pypi-readme%{psuffix}
|
Name: python-hatch-fancy-pypi-readme%{psuffix}
|
||||||
Version: 25.1.0
|
Version: 25.1.0
|
||||||
@@ -36,14 +40,19 @@ Source: https://files.pythonhosted.org/packages/source/h/hatch_fancy_pyp
|
|||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module hatchling}
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-generators
|
BuildRequires: python-rpm-generators
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
|
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%{?python_enable_dependency_generator}
|
%{?python_enable_dependency_generator}
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# SECTION test
|
# SECTION test
|
||||||
BuildRequires: %{python_module hatch-fancy-pypi-readme >= %version}
|
BuildRequires: %{python_module hatch-fancy-pypi-readme >= %version}
|
||||||
@@ -86,6 +95,12 @@ release? You've come to the right place!
|
|||||||
%pytest --ignore tests/test_end_to_end.py
|
%pytest --ignore tests/test_end_to_end.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative hatch-fancy-pypi-readme
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative hatch-fancy-pypi-readme
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative hatch-fancy-pypi-readme
|
%python_libalternatives_reset_alternative hatch-fancy-pypi-readme
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user