From bd914f5179b70929c9b9ff006ac7744479f99cdb Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 12 Jul 2025 19:28:09 +0800 Subject: [PATCH] fix: python-pip-system-certs Signed-off-by: madomado --- .../pip-system-certs/python-pip-system-certs.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/anda/langs/python/pip-system-certs/python-pip-system-certs.spec b/anda/langs/python/pip-system-certs/python-pip-system-certs.spec index c301b56d5d..c47d91608a 100644 --- a/anda/langs/python/pip-system-certs/python-pip-system-certs.spec +++ b/anda/langs/python/pip-system-certs/python-pip-system-certs.spec @@ -38,18 +38,31 @@ trusted by your system install. rm -rf %{pypi_name}.egg-info %build +%if 0%{?fedora} <= 41 || 0%{?rhel} pip install git-versioner +%py3_build +%else %pyproject_wheel +%endif %install +%if 0%{?fedora} <= 41 || 0%{?rhel} +%py3_install +%else %pyproject_install - %pyproject_save_files pip_system_certs +%endif +%if 0%{?fedora} <= 41 || 0%{?rhel} +%files -n python3-%{pypi_name} +%else %files -n python3-%{pypi_name} -f %pyproject_files +%endif %license LICENSE %doc README.rst %python3_sitelib/pip_system_certs.pth +%{python3_sitearch}/google/ + %changelog * Thu Apr 04 2024 madomado - 4.0-1