SonicDE-rpmspecs/sonic-partition-manager/sonic-partition-manager.spec
test ad442ae622 Fix spec files for RHEL 10 compatibility and SonicDE source changes
- sonic-win: Add sonic-win binary and systemd service to %files
- sonic-drawing-tablet: Stub WACOM_PROP_* constants (xorg-wacom not on RHEL 10)
- sonic-workspace: Remove Fedora look-and-feel setup, fix libklookandfeel version,
  add unpackaged files (kconf_update, plasma-startup-sound, plasmanotify.portal)
- sonic-desktop-interface: Remove non-applicable SDDM patch, fix find_lang names,
  remove non-existent files from %files, add unpackaged keyboardlayout/kconf_update
- sonic-login-manager: Rename plasmalogin -> soniclogin throughout spec,
  patch CMakeLists.txt to use Xwayland instead of Xorg, update %files for new paths
- sonic-workspace-addons: Add missing dbus service file
- sonic-dr-robotnik: Add unpackaged systemd files and binaries
- sonic-system-info: Remove missing desktop file
- sonic-breeze: Add unpackaged kcursorgen, cmake, desktoptheme files
- sonic-sysguard-library: Fix tarball directory name, add ksysguard-identify
- sonic-ecco: Disable tests (xorg-x11-server-Xvfb not on RHEL 10)
- sonic-network-manager: Accept older Qt6Keychain version
- sonic-partition-manager: Accept older KPMcore version
- Various other find_lang and %files fixes

All 136 packages now build successfully on RHEL 10.
2026-08-26 11:01:20 +02:00

109 lines
3.8 KiB
RPMSpec

# Generated for SonicDE from Fedora's kde-partitionmanager.spec.
# SonicDE is a hard fork of KDE Plasma; the sources come from the
# https://github.com/Sonic-DE/sonic-partition-manager fork, not from download.kde.org.
%define _disable_source_fetch 0
%define debug_package %{nil}
%global reponame sonic-partition-manager
# Upstream KDE project: partitionmanager
%global oldname kde-partitionmanager
%global base_name partitionmanager
%global kf6min 5.240.0
%global qt6min 6.5.0
%global kpmcoremin 24.01
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
#Name: kde-partitionmanager
Name: sonic-partition-manager
Version: 26.04.3
Release: 1%{?dist}
Summary: KDE Partition Manager
License: GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND CC-BY-4.0 AND CC0-1.0 AND GFDL-1.2-or-later
#URL: https://apps.kde.org/partitionmanager/
URL: https://github.com/Sonic-DE/%{reponame}
#Source0: https://download.kde.org/%%{stable_kf6}/release-service/%%{version}/src/partitionmanager-%%{version}.tar.xz
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{reponame}-%{version}.tar.gz
BuildRequires: cmake >= 3.16
BuildRequires: desktop-file-utils
BuildRequires: sonic-frameworks-cmake-modules
BuildRequires: gettext
BuildRequires: sonic-rpm-macros
BuildRequires: libappstream-glib
BuildRequires: cmake(Qt6Core) >= %{qt6min}
BuildRequires: cmake(Qt6Gui) >= %{qt6min}
BuildRequires: cmake(Qt6Widgets) >= %{qt6min}
BuildRequires: cmake(KF6Config) >= %{kf6min}
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6min}
BuildRequires: cmake(KF6CoreAddons) >= %{kf6min}
BuildRequires: cmake(KF6Crash) >= %{kf6min}
BuildRequires: cmake(KF6DBusAddons) >= %{kf6min}
BuildRequires: cmake(KF6I18n) >= %{kf6min}
BuildRequires: cmake(KF6JobWidgets) >= %{kf6min}
BuildRequires: cmake(KF6KIO) >= %{kf6min}
BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6min}
BuildRequires: cmake(KF6WindowSystem) >= %{kf6min}
BuildRequires: cmake(KF6XmlGui) >= %{kf6min}
BuildRequires: cmake(KF6DocTools) >= %{kf6min}
BuildRequires: cmake(PolkitQt6-1)
BuildRequires: cmake(KPMcore) >= %{kpmcoremin}
Requires: kf6-filesystem
Provides: kde-partitionmanager = %{version}-%{release}
Conflicts: kde-partitionmanager < %{version}-%{release}
%description
KDE Partition Manager is a utility program to help you manage the disk devices,
partitions and file systems on your computer. It allows you to easily create,
copy, move, delete, resize without losing data, backup and restore partitions.
KDE Partition Manager supports a large number of file systems,
including ext2/3/4, reiserfs, NTFS, FAT16/32, jfs, xfs and more.
Starting from version 1.9.50 KDE Partition Manager has become the GUI part of
KPMcore (KDE PartitionManager core) which contain the libraries used to
manipulate filesystems.
%prep
%autosetup -p1 -n %{reponame}-%{version}
sed -i 's/set(KPMCORE_MIN_VERSION.*/set(KPMCORE_MIN_VERSION "25.12")/' CMakeLists.txt
%build
%cmake_kf6
%cmake_build
%install
%cmake_install
%find_lang partitionmanager --with-kde --with-html
%check
# Validate .desktop file
desktop-file-validate %{buildroot}%{_kf6_datadir}/applications/*partitionmanager.desktop
# Validate appdata file
appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/*.appdata.xml
%files -f partitionmanager.lang
%license LICENSES/*
%{_kf6_bindir}/partitionmanager
%{_kf6_datadir}/applications/*partitionmanager.desktop
%{_kf6_datadir}/solid/actions/open_in_partitionmanager.desktop
%{_kf6_datadir}/config.kcfg/partitionmanager.kcfg
%{_datadir}/icons/hicolor/*/*/*
%{_kf6_metainfodir}/*partitionmanager.appdata.xml
%changelog
* Mon Aug 24 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 26.04.3-1
- SonicDE hard fork build for Enterprise Linux 10 and Fedora