Update kf6-kdesu.spec

This commit is contained in:
2026-04-22 15:14:59 +08:00
parent b896e2fc16
commit d01313e097

View File

@@ -16,11 +16,10 @@ Release: %autorelease
Summary: User interface for running shell commands with root privileges Summary: User interface for running shell commands with root privileges
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
URL: https://www.kde.org URL: https://www.kde.org
VCS: git:https://github.com/KDE/kdesu.git VCS: git:https://invent.kde.org/frameworks/kdesu.git
#!RemoteAsset #!RemoteAsset: sha256:5b5947a2153d9fa0a5009c4a2af5c55dda4c10e970de603356327f2c5962864f
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version} BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: cmake(KF6Config) >= %{_kf6_version} BuildRequires: cmake(KF6Config) >= %{_kf6_version}
@@ -61,16 +60,13 @@ Development files.
%install %install
%kf6_install %kf6_install
%fdupes %{buildroot}
# todo: fix the name error. # todo: fix the name error.
# Avoid illegal package names # Avoid illegal package names
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@* rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
# Use langpacks macro to auto-split translations # Use langpacks macro to auto-split translations
%find_lang kdesud --all-name --generate-subpackages %find_lang kdesud --all-name --generate-subpackages
%files %files -f %{name}.lang
%license LICENSES/* %license LICENSES/*
%doc README.md %doc README.md
%{_kf6_debugdir}/ksu.categories %{_kf6_debugdir}/ksu.categories
@@ -84,4 +80,4 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
%{_kf6_libdir}/libKF6Su.so %{_kf6_libdir}/libKF6Su.so
%changelog %changelog
%{?autochangelog} %autochangelog