103 lines
3.3 KiB
RPMSpec
103 lines
3.3 KiB
RPMSpec
|
|
|
|
%global __requires_exclude qt6qmlimport\\(org\\.kde\\.private\\.kscreen.*
|
|
|
|
%define kf6_version 6.18.0
|
|
%define qt6_version 6.9.0
|
|
|
|
%define rname kscreen
|
|
|
|
Name: kscreen6
|
|
Version: 6.5.5
|
|
Release: 0
|
|
# Full Plasma 6 version (e.g. 6.0.0)
|
|
%{!?_plasma6_bugfix: %define _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}')}
|
|
Summary: Screen management software by KDE
|
|
License: GPL-2.0-or-later
|
|
URL: https://www.kde.org
|
|
Source: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz
|
|
|
|
BuildRequires: fdupes
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: qt6-base-private-devel >= %{qt6_version}
|
|
BuildRequires: qt6-wayland-devel >= %{qt6_version}
|
|
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6GlobalAccel) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Screen) >= %{_plasma6_bugfix}
|
|
BuildRequires: cmake(KF6Svg) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6XmlGui) >= %{kf6_version}
|
|
BuildRequires: cmake(LayerShellQt) >= %{_plasma6_bugfix}
|
|
BuildRequires: cmake(Plasma) >= %{_plasma6_bugfix}
|
|
BuildRequires: cmake(PlasmaQuick) >= %{_plasma6_bugfix}
|
|
BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Sensors) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.41
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.9
|
|
BuildRequires: pkgconfig(xcb-atom)
|
|
BuildRequires: pkgconfig(xi)
|
|
Requires: kf6-kded
|
|
Requires: libkscreen6-plugin >= %{_plasma6_bugfix}
|
|
# For graz.avif
|
|
Requires: kf6-kimageformats
|
|
Requires: xrdb
|
|
Supplements: (libkscreen6-plugin and plasma6-workspace)
|
|
Obsoletes: kscreen5 < %{version}
|
|
Obsoletes: kscreen5-lang < %{version}
|
|
Obsoletes: kscreen5-plasmoid < %{version}
|
|
Provides: kscreen6-plasmoid < %{version}
|
|
Obsoletes: kscreen6-plasmoid < %{version}
|
|
|
|
%description
|
|
KScreen handles screen management for both X11 and Wayland sessions, including rotation, size, refresh rate, and scaling.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{rname}-%{version}
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
%find_lang %{name} --all-name
|
|
|
|
%post
|
|
%{systemd_user_post plasma-kscreen-osd.service}
|
|
|
|
%preun
|
|
%{systemd_user_preun plasma-kscreen-osd.service}
|
|
|
|
%postun
|
|
%{systemd_user_postun plasma-kscreen-osd.service}
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%{_kf6_applicationsdir}/kcm_kscreen.desktop
|
|
%{_kf6_bindir}/hdrcalibrator
|
|
%{_kf6_bindir}/kscreen-console
|
|
%{_kf6_debugdir}/kscreen.categories
|
|
%{_kf6_plugindir}/kf6/kded/kscreen.so
|
|
%{_kf6_plugindir}/plasma/applets/org.kde.kscreen.so
|
|
%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_kscreen.so
|
|
%{_kf6_sharedir}/dbus-1/services/org.kde.kscreen.osdService.service
|
|
%{_kf6_sharedir}/kglobalaccel/org.kde.kscreen.desktop
|
|
%{_libexecdir}/kscreen_osd_service
|
|
%{_userunitdir}/plasma-kscreen-osd.service
|
|
|
|
%files lang -f kscreen6.lang
|
|
|
|
%changelog
|