From dc82282bb748adb806be51785b41bec4f3ba9e89 Mon Sep 17 00:00:00 2001 From: Gilver Date: Mon, 26 May 2025 09:11:29 -0500 Subject: [PATCH] chore(modern-colorthief): The Ifcondening Signed-off-by: Gilver --- .../tools/modern-colorthief/modern-colorthief.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/anda/tools/modern-colorthief/modern-colorthief.spec b/anda/tools/modern-colorthief/modern-colorthief.spec index 6520327e91..51514ba1df 100644 --- a/anda/tools/modern-colorthief/modern-colorthief.spec +++ b/anda/tools/modern-colorthief/modern-colorthief.spec @@ -62,7 +62,11 @@ Documentation for Modern Colorthief. %cargo_prep_online %build +%if 0%{?fedora} <= 41 || 0%{?rhel} +%py3_build +%else %pyproject_wheel +%endif %if %{with docs} # Generates the docs in all languages Sphinx can translate most or all of the docs for this project in @@ -74,7 +78,11 @@ done %endif %install +%if 0%{?fedora} <= 41 || 0%{?rhel} +%py3_install +%else %pyproject_install +%endif %{cargo_license_online} > LICENSE.dependencies @@ -97,7 +105,11 @@ poetry run pytest %license LICENSE %license LICENSE.dependencies %{python3_sitearch}/%{pypi_name} -%{python3_sitearch}/%{pypi_name}-%{version}.dist-info +%if 0%{?fedora} <= 41 || 0%{?rhel} +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%else +%{python3_sitearch}/%{pypi_name}-%{version}.dist-info/ +%endif %if %{with docs} %files -n python3-%{name}-doc