Update kf6-kcolorscheme.spec

This commit is contained in:
2026-02-14 11:53:03 +08:00
parent 21217029c2
commit eb06ac0fc5

View File

@@ -17,7 +17,7 @@ Summary: Classes to read and interact with KColorScheme
License: LGPL-2.0-or-later
URL: https://www.kde.org
VCS: https://invent.kde.org/frameworks/kcolorscheme
#!RemoteAsset:
#!RemoteAsset
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildRequires: fdupes
@@ -46,8 +46,6 @@ Requires: cmake(Qt6Gui) >= %{qt6_version}
%description devel
Classes to read and interact with KColorScheme. Development files.
%lang_package -n libKF6ColorScheme6
%prep
%autosetup -p1 -n %{rname}-%{version}
@@ -61,12 +59,18 @@ Classes to read and interact with KColorScheme. Development files.
%fdupes %{buildroot}
# todo: fix the name error.
# Avoid illegal package names
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
# Use langpacks macro to auto-split translations
%find_lang %{name}6 --with-qt --all-name --generate-subpackages
%files
%license LICENSES/*
%doc README.md
%{_kf6_debugdir}/kcolorscheme.categories
%{_kf6_libdir}/libKF6ColorScheme.so.*
%{_datadir}/locale/*/LC_MESSAGES/kcolorscheme6.mo
%files devel
%{_kf6_cmakedir}/KF6ColorScheme/