Update kf6-karchive.spec

This commit is contained in:
2026-02-13 16:09:09 +08:00
parent f874dbd81c
commit e5986a36cc

View File

@@ -17,7 +17,7 @@ Summary: Qt 6 addon providing access to numerous types of archives
License: LGPL-2.0-or-later
URL: https://www.kde.org
VCS: https://invent.kde.org/frameworks/karchive
#!RemoteAsset:
#!RemoteAsset
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildRequires: fdupes
@@ -66,13 +66,19 @@ GZip format, via a subclass of QIODevice. 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}/karchive.categories
%{_kf6_debugdir}/karchive.renamecategories
%{_kf6_libdir}/libKF6Archive.so.*
%{_datadir}/locale/*/LC_MESSAGES/karchive6_qt.qm
%files devel
%{_kf6_includedir}/KArchive/