SonicDE-rpmspecs/sonic-frameworks-quick-ui-addons/sonic-frameworks-quick-ui-addons.spec
test a88703e93e
Some checks failed
Build RPMs / build (push) Has been cancelled
Add EPEL apps at latest versions and fix all EPEL dependency conflicts
Add 8 new packages built from upstream KDE sources at versions matching
the rest of SonicDE (Gear 26.04.3, Plasma 6.7.4):
- colord-kde 26.04.3
- dolphin-plugins 26.04.3
- filelight 26.04.3
- kde-gtk-config 6.7.4
- kde-inotify-survey 26.04.3
- ksanecore 26.04.3 (dependency for skanpage)
- plasma-discover 6.7.4 (with snap backend disabled)
- skanpage 26.04.3

These packages replace the EPEL versions and use SonicDE dependencies
instead of kf6-*/plasma-* packages, ensuring they are upgraded (not
removed) when SonicDE is installed alongside EPEL KDE.

Fix EPEL dependencies in existing SonicDE packages that caused packages
to be removed during dnf upgrade --allowerasing:
- sonic-desktop-interface: kde-cli-tools -> sonic-terminal-tools,
  kmenuedit -> sonic-launcher-menu-edit, kwrited -> sonic-write-daemon,
  signon-plugin-oauth2 and plasma-systemsettings changed to Recommends
- sonic-workspace: kio-fuse -> sonic-frameworks-io-fuse,
  polkit-kde -> sonic-polkit-agent,
  xdg-desktop-portal-kde -> xdg-desktop-portal-sonicde,
  plasma-keyboard and kde-settings-plasma changed to Recommends
- sonic-workspace-addons: kf6-plasma -> sonic-interface-libraries
- kde-gtk-config: breeze-gtk-common -> sonic-silver-gtk-common
- sonic-login-manager: kde-settings-plasma changed to Recommends
- kcm-soniclogin: plasma-systemsettings changed to Recommends
- sonic-rpm-macros: kde-qdoc-common changed to Recommends
- sonic-welcome-center: add Obsoletes for plasma-welcome

Also includes Obsoletes/Provides fixes across all spec files for proper
EPEL package replacement, and Conflicts tag removal from spec files.

Result: dnf upgrade --allowerasing from standard EPEL KDE removes 0
packages. dnf install of SonicDE packages installs 195 packages with
0 removals.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-08-27 17:11:06 +00:00

126 lines
4.9 KiB
RPMSpec

# Generated for SonicDE from Fedora's kf6-kirigami-addons.spec.
# SonicDE is a hard fork of KDE Plasma; the sources come from the
# https://github.com/Sonic-DE/sonic-frameworks-quick-ui-addons fork, not from download.kde.org.
%define _disable_source_fetch 0
%define debug_package %{nil}
%global reponame sonic-frameworks-quick-ui-addons
# Upstream KDE project: kirigami-addons
%global oldname kf6-kirigami-addons
%global framework kirigami-addons
#Name: kf6-%%{framework}
Name: sonic-frameworks-quick-ui-addons
Version: 1.13.1
Release: 3%{?dist}
License: BSD-2-Clause AND CC-BY-SA-4.0 AND CC0-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only) AND LicenseRef-KFQF-Accepted-GPL
Summary: Convergent visual components ("widgets") for Kirigami-based applications
Url: https://github.com/Sonic-DE/%{reponame}
#Source: https://download.kde.org/stable/%%{framework}/%%{framework}-%%{version}.tar.xz
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{reponame}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: sonic-frameworks-cmake-modules
BuildRequires: gcc-c++
BuildRequires: sonic-rpm-macros
BuildRequires: cmake(KF6Config)
BuildRequires: cmake(KF6CoreAddons)
BuildRequires: cmake(KF6I18n)
BuildRequires: cmake(KF6GlobalAccel)
BuildRequires: cmake(KF6GuiAddons)
BuildRequires: cmake(KF6Kirigami2)
BuildRequires: cmake(KF6Svg)
BuildRequires: cmake(KF6ColorScheme)
BuildRequires: cmake(KF6Crash)
BuildRequires: cmake(KF6IconThemes)
BuildRequires: cmake(Qt6)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Quick)
BuildRequires: cmake(Qt6QuickControls2)
# Doesn't need qtbase-private-devel, but private stuff from qtdeclarative
# so we still need to rebuild it
#BuildRequires: qt6-qtbase-private-devel
Requires: kf6-filesystem
### Renamed from kf6-kirigami2-addons (which was at epoch 1)
Obsoletes: kf6-kirigami2-addons < 1:0.11.76-5
Provides: kf6-kirigami2-addons = 1:%{version}-%{release}
Provides: kf6-kirigami2-addons%{?_isa} = 1:%{version}-%{release}
### Merged subpackages back into main package
# The old name
Obsoletes: kf6-kirigami2-addons-dateandtime < 1:0.11.76-5
Provides: kf6-kirigami2-addons-dateandtime = 1:%{version}-%{release}
Provides: kf6-kirigami2-addons-dateandtime%{?_isa} = 1:%{version}-%{release}
Obsoletes: kf6-kirigami2-addons-treeview < 1:0.11.76-5
Provides: kf6-kirigami2-addons-treeview = 1:%{version}-%{release}
Provides: kf6-kirigami2-addons-treeview%{?_isa} = 1:%{version}-%{release}
# The new name
Obsoletes: kf6-kirigami-addons-dateandtime < 0.11.76-5
Provides: kf6-kirigami-addons-dateandtime%{?_isa} = %{version}-%{release}
Provides: kf6-kirigami-addons-dateandtime%{?_isa} = %{version}-%{release}
Obsoletes: kf6-kirigami-addons-treeview < 0.11.76-5
Provides: kf6-kirigami-addons-treeview%{?_isa} = %{version}-%{release}
Provides: kf6-kirigami-addons-treeview%{?_isa} = %{version}-%{release}
Provides: kf6-kirigami-addons%{?_isa} = %{version}-%{release}
Obsoletes: kf6-kirigami-addons < %{version}-%{release}
%description
A set of "widgets" i.e visual end user components along with a
code to support them. Components are usable by both touch and
desktop experiences providing a native experience on both, and
look native with any QQC2 style (qqc2-desktop-theme, Material
or Plasma).
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Conflicts: sonic-frameworks-quick-ui-addons < 1.4.0
Provides: kf6-kirigami-addons-devel%{?_isa} = %{version}-%{release}
Obsoletes: kf6-kirigami-addons-devel < %{version}-%{release}
%description devel
The %{name}-devel package contains CMake definitions, libraries
and header files for developing applications that use %{name}.
%prep
%autosetup -n %{reponame}-%{version}
%build
%cmake_kf6 -DBUILD_WITH_QT6=ON
%cmake_build
%install
%cmake_install
%find_lang %{orig_name}6 --all-name
%files -f %{orig_name}6.lang
%doc README.md
%license LICENSES/
%dir %{_kf6_qmldir}/org/kde
%{_kf6_qmldir}/org/kde/kirigamiaddons
%{_kf6_libdir}/libKirigamiAddonsStatefulApp.so.{6,%{version}}
%{_kf6_libdir}/libKirigamiApp.so.%{version}
%{_kf6_libdir}/libKirigamiApp.so.6
%{_kf6_libdir}/libKirigamiAddonsComponents.so.%{version}
%{_kf6_libdir}/libKirigamiAddonsComponents.so.6
%files devel
%{_kf6_libdir}/libKirigamiAddonsComponents.so
%{_kf6_libdir}/libKirigamiApp.so
%{_includedir}/KirigamiAddons/
%{_kf6_libdir}/cmake/KF6KirigamiAddons
%{_kf6_libdir}/libKirigamiAddonsStatefulApp.so
%{_includedir}/KirigamiAddonsStatefulApp/
%{_kf6_datadir}/kdevappwizard/templates/kirigamiaddons6.tar.bz2
%{_kf6_datadir}/kdevappwizard/templates/librarymanager6.tar.bz2
%changelog
* Mon Aug 24 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 1.13.1-1
- SonicDE hard fork build for Enterprise Linux 10 and Fedora