diff --git a/plasma6-disks/plasma6-disks.spec b/plasma6-disks/plasma6-disks.spec index 8e358b4..4baeaf0 100644 --- a/plasma6-disks/plasma6-disks.spec +++ b/plasma6-disks/plasma6-disks.spec @@ -38,8 +38,6 @@ Obsoletes: plasma5-disks-lang < %{version} %description Monitors S.M.A.R.T. capable devices for imminent failure and informs the user. -%lang_package - %prep %autosetup -p1 -n %{rname}-%{version} @@ -51,7 +49,12 @@ Monitors S.M.A.R.T. capable devices for imminent failure and informs the user. %install %kf6_install -%find_lang %{name} --all-name +# 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} --with-qt --all-name --generate-subpackages %check export QT_QPA_PLATFORM=offscreen @@ -70,6 +73,4 @@ export QT_QPA_PLATFORM=offscreen %{_kf6_plugindir}/plasma/kcms/kinfocenter/kcm_disks.so %{_kf6_libexecdir}/kauth/kded-smart-helper -%files lang -f %{name}.lang - %changelog