SonicDE-rpmspecs/sonic-partition-manager/sonic-partition-manager.spec

108 lines
3.7 KiB
RPMSpec
Raw Normal View History

2026-08-25 01:26:42 +02:00
# 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}
%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