From efcaec53ce1ea79ce10cdf75ae2e098ffe52f294 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 18 Jan 2026 20:30:40 -0800 Subject: [PATCH] fix(kde-material-you-colors): Use file-magic instead of magic (#9303) (#9313) * fix(kde-material-you-colors): Use file-magic instead of magic * If it's this again * fix: BuildRequires * chore: See if Mock is needed * Aghhhh * I swear * Try this first I guess? * fix: Python macro weirdness * fix: This is how the dev does it so this is how I will --------- (cherry picked from commit ec9c48060b6db08dae726f02f7d3bad9670333f3) Signed-off-by: Gilver Co-authored-by: Gilver --- .../kde-material-you-colors.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/anda/themes/kde-material-you-colors/kde-material-you-colors.spec b/anda/themes/kde-material-you-colors/kde-material-you-colors.spec index 88d25dd3fd..1bca587084 100644 --- a/anda/themes/kde-material-you-colors/kde-material-you-colors.spec +++ b/anda/themes/kde-material-you-colors/kde-material-you-colors.spec @@ -4,7 +4,7 @@ Name: kde-material-you-colors Version: 2.0.0 -Release: 1%?dist +Release: 2%?dist Summary: Automatic Material You Colors Generator from your wallpaper for the Plasma Desktop License: GPL-3.0-only URL: https://github.com/luisbocanegra/%{name} @@ -17,15 +17,17 @@ BuildRequires: cmake >= 3.16 BuildRequires: extra-cmake-modules >= 6.0.0 BuildRequires: fdupes BuildRequires: generic-logos -BuildRequires: libplasma-devel -BuildRequires: plasma5support-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python-rpm-macros BuildRequires: python3dist(pip) BuildRequires: python3dist(setuptools) >= 61.0 BuildRequires: python3dist(wheel) >= 0.37.1 -BuildRequires: qt5-qtbase-devel +BuildRequires: cmake(KF6KirigamiPlatform) +BuildRequires: cmake(Plasma) +BuildRequires: cmake(Plasma5Support) +BuildRequires: cmake(Qt5Core) +BuildRequires: pkgconfig(ocl-icd) Requires: qt5-qtbase Requires: kf6-filesystem >= 6.0.0 Requires: python3-%{name} = %{version}-%{release} @@ -49,6 +51,7 @@ Python files for KDE Material You Colors. %prep %autosetup -p1 -n %{name}-%{version} +sed -iE 's:\"python-magic.*\":\"file-magic\":' pyproject.toml %build %pyproject_wheel @@ -61,7 +64,7 @@ Python files for KDE Material You Colors. %pyproject_install DESTDIR="%{buildroot}" %cmake_install -sed -i "1{/^#!\/usr\/bin\/env python3/d}" %{buildroot}%{python3_sitelib}/kde_material_you_colors/main.py +sed -Ei "s:^(#!.*)env (python.*)$:\1python3:" %{buildroot}%{python3_sitelib}/kde_material_you_colors/main.py %fdupes %{buildroot}%{python3_sitelib}/%{name}/ %terra_appstream