96 lines
3.4 KiB
RPMSpec
96 lines
3.4 KiB
RPMSpec
|
|
|
|
%global __requires_exclude qt6qmlimport\\(org\\.kde\\.systemsettings.*
|
|
|
|
%define kf6_version 6.18.0
|
|
%define qt6_version 6.9.0
|
|
|
|
|
|
# Full Plasma 6 version (e.g. 6.0.0)
|
|
%{!?_plasma6_bugfix: %global _plasma6_bugfix %{version}}
|
|
# Latest ABI-stable Plasma (e.g. 6.0 in KF6, but 6.0.80 in KUF)
|
|
%{!?_plasma6_version: %define _plasma6_version %(echo %{_plasma6_bugfix} | awk -F. '{print $1"."$2}')}
|
|
|
|
Name: systemsettings
|
|
Version: 6.5.5
|
|
Release: 0
|
|
Summary: KDE's control center
|
|
License: GPL-2.0-or-later
|
|
URL: https://www.kde.org/
|
|
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Auth) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6DocTools) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6ItemModels) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6ItemViews) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6JobWidgets) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KirigamiPlatform) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Runner) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Service) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6XmlGui) >= %{kf6_version}
|
|
BuildRequires: cmake(PlasmaActivities) >= %{_plasma6_bugfix}
|
|
BuildRequires: cmake(Qt6Qml) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6QuickWidgets) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
|
BuildRequires: docbook-xsl
|
|
BuildRequires: docbook-dtds
|
|
Requires: kf6-kirigami >= %{kf6_version}
|
|
Provides: systemsettings5 = %{version}
|
|
Obsoletes: systemsettings5 < %{version}
|
|
Obsoletes: systemsettings5-lang < %{version}
|
|
|
|
%description
|
|
This package provides modules to control settings of Plasma and other
|
|
applications by KDE.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{version}
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
# todo: fix the name error.
|
|
# Avoid illegal package names
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/*@*
|
|
rm -rf $RPM_BUILD_ROOT%{_kf6_htmldir}/*@*
|
|
rm -rf $RPM_BUILD_ROOT%{_kf6_htmldir}/en_GB
|
|
# Use langpacks macro to auto-split translations
|
|
%find_lang %{name} --with-qt --all-name --with-html --generate-subpackages
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%doc %lang(en) %{_kf6_htmldir}/en/systemsettings/
|
|
%dir %{_datadir}/zsh
|
|
%dir %{_datadir}/zsh/site-functions
|
|
%{_datadir}/zsh/site-functions/_systemsettings
|
|
%{_kf6_applicationsdir}/kdesystemsettings.desktop
|
|
%{_kf6_applicationsdir}/systemsettings.desktop
|
|
%{_kf6_appstreamdir}/org.kde.systemsettings.metainfo.xml
|
|
%{_kf6_bindir}/systemsettings
|
|
%{_kf6_debugdir}/systemsettings.categories
|
|
%dir %{_kf6_plugindir}/kf6/krunner
|
|
%{_kf6_plugindir}/kf6/krunner/krunner_systemsettings.so
|
|
%{_kf6_sharedir}/kglobalaccel/systemsettings.desktop
|
|
%{_kf6_sharedir}/systemsettings/
|
|
|
|
%changelog
|