Update sddm-kcm6.spec

This commit is contained in:
2026-03-16 18:18:30 +08:00
parent 363c1f6ade
commit ebf4031f45

View File

@@ -37,10 +37,8 @@ Obsoletes: kcm_sddm-lang < %{version}
%description %description
SDDM control module for Plasma. It provides a graphical frontend for the SDDM. SDDM control module for Plasma. It provides a graphical frontend for the SDDM.
%lang_package
%prep %prep
%autosetup -p1 -n %{}-%{version} %autosetup -p1 -n %{name}-%{version}
%build %build
%cmake_kf6 %cmake_kf6
@@ -50,7 +48,12 @@ SDDM control module for Plasma. It provides a graphical frontend for the SDDM.
%install %install
%kf6_install %kf6_install
%find_lang kcm_sddm # 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 kcm_sddm --with-qt --all-name --generate-subpackages
%files %files
%doc README.md %doc README.md
@@ -64,6 +67,4 @@ SDDM control module for Plasma. It provides a graphical frontend for the SDDM.
%{_kf6_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy %{_kf6_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
%{_kf6_libexecdir}/kauth/kcmsddm_authhelper %{_kf6_libexecdir}/kauth/kcmsddm_authhelper
%files lang -f kcm_sddm.lang
%changelog %changelog