fix(kde-material-you-colors): Metadata changes (#7186) (#7644)

* fix(kde-material-you-colors): Metadata changes

Comment out the appdata XML file entry in the spec.



* feat: Use %terra_appstream for now



* fix: Metainfo



* feat: Rebuild for Qt6 automatically

---------


(cherry picked from commit 0b0e93f426)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-11-24 02:51:39 -08:00
committed by GitHub
parent ffe6af51a7
commit 2a2b44c512
3 changed files with 18 additions and 1 deletions
@@ -0,0 +1 @@
6.10.0
@@ -1,3 +1,7 @@
%global appid luisbocanegra.kdematerialyou.colors
%global developer "Luis Bocanegra"
%global org "com.github.luisbocanegra"
Name: kde-material-you-colors
Version: 2.0.0
Release: 1%?dist
@@ -6,6 +10,7 @@ License: GPL-3.0-only
URL: https://github.com/luisbocanegra/%{name}
# The PyPi source is a more generic install and lacks the Plasmoid config
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: anda-srpm-macros
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.16
@@ -59,6 +64,7 @@ DESTDIR="%{buildroot}" %cmake_install
sed -i "1{/^#!\/usr\/bin\/env python3/d}" %{buildroot}%{python3_sitelib}/kde_material_you_colors/main.py
%fdupes %{buildroot}%{python3_sitelib}/%{name}/
%terra_appstream
%files
%doc CHANGELOG.md
@@ -66,7 +72,7 @@ sed -i "1{/^#!\/usr\/bin\/env python3/d}" %{buildroot}%{python3_sitelib}/kde_mat
%license LICENSE
%{_bindir}/%{name}-screenshot-helper
%{_datadir}/applications/%{name}-screenshot-helper.desktop
%{_datadir}/metainfo/luisbocanegra.kdematerialyou.colors.appdata.xml
%{_metainfodir}/luisbocanegra.kdematerialyou.colors.metainfo.xml
%{_datadir}/plasma/plasmoids/luisbocanegra.kdematerialyou.colors/
%files -n python3-%{name}
@@ -1 +1,11 @@
import "andax/bump_extras.rhai" as bump;
rpm.version(pypi("kde-material-you-colors"));
open_file("anda/themes/kde-material-you-colors/VERSION_qt6-qtbase.txt", "w").write(bump::bodhi("qt6-qtbase", bump::as_bodhi_ver(labels.branch)));
let dir = sub(`/[^/]+$`, "", __script_path);
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
let rel = spec::get_release(rpm).parse_int();
rpm.release(rel + 1);
}