Update kdecoration6.spec

This commit is contained in:
2026-03-17 14:56:02 +08:00
parent e30a9d05f8
commit c135a82bff

View File

@@ -3,8 +3,6 @@
%define kf6_version 6.18.0
%define qt6_version 6.9.0
%define rname kdecoration
%global sover 6
%global private_sover 2
@@ -14,7 +12,7 @@ Release: 0
Summary: KDE's window decorations library
License: GPL-2.0-or-later
URL: https://www.kde.org
Source: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
@@ -31,26 +29,11 @@ BuildRequires: qt6-linguist
%description
Plugin based library to create window decorations.
%package -n libkdecorations3-%{sover}
Summary: KDE's window decorations library
# boo#1239218: Translation files are unversioned and conflict.
# Needs a redesign, maybe a rename to kdecoration-lang +
# Provides: kdecoration where necessary.
Obsoletes: libkdecorations2-5-lang < %{version}
%description -n libkdecorations3-%{sover}
Plugin based library to create window decorations.
%package -n libkdecorations3private%{private_sover}
Summary: KDE's window decorations library
%description -n libkdecorations3private%{private_sover}
Plugin based library to create window decorations.
%package devel
Summary: KDE's window decorations library (development package)
Requires: libkdecorations3-%{sover} = %{version}
Requires: libkdecorations3private%{private_sover} = %{version}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake(Qt6Gui)
%description devel
@@ -58,7 +41,7 @@ Development files belonging to kdecoration,
plugin based library to create window decorations.
%prep
%autosetup -p1 -n %{rname}-%{version}
%autosetup -p1 -n %{name}-%{version}
%build
%cmake_kf6
@@ -75,15 +58,12 @@ 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
%ldconfig_scriptlets -n libkdecorations3-%{sover}
%ldconfig_scriptlets -n libkdecorations3private%{private_sover}
%ldconfig_scriptlets
%files -n libkdecorations3-%{sover}
%files
%license LICENSES/*
%{_kf6_libdir}/libkdecorations3.so.%{sover}
%{_kf6_libdir}/libkdecorations3.so.*
%files -n libkdecorations3private%{private_sover}
%{_kf6_libdir}/libkdecorations3private.so.%{private_sover}
%{_kf6_libdir}/libkdecorations3private.so.*