blob: 39a90c637e39493b180c7a685e95c3f007358ad9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# filter plugin provides
%global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$
Name: kscreen
Epoch: 1
Version: 5.25.5
Release: 1
Summary: KDE Display Management software
License: GPLv2 or GPLv3
URL: https://invent.kde.org/plasma/%{name}
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global majmin_ver %(echo %{version} | cut -d. -f1,2).50
%global stable unstable
%else
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qtsensors-devel
BuildRequires: libkscreen-qt5-devel >= %{majmin_ver}
Requires: libkscreen-qt5%{?_isa} >= %{majmin_ver}
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kcoreaddons-devel
BuildRequires: kf5-kconfigwidgets-devel
BuildRequires: kf5-kdbusaddons-devel
BuildRequires: kf5-kxmlgui-devel
BuildRequires: kf5-kglobalaccel-devel
BuildRequires: cmake(KF5Declarative)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5Plasma)
BuildRequires: cmake(KF5KCMUtils)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xi)
Requires: qt5-qtgraphicaleffects
%description
KCM and KDED modules for managing displays in KDE.
%prep
%autosetup -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang %{name} --with-kde --all-name
%files -f %{name}.lang
%license LICENSES
%{_bindir}/kscreen-console
%{_kf5_qtplugindir}/plasma/applets/plasma_applet_kscreen.so
%{_kf5_qtplugindir}/kcms/kcm_kscreen.so
%{_kf5_plugindir}/kded/kscreen.so
%{_datadir}/kservices5/plasma-applet-org.kde.kscreen.desktop
%{_datadir}/metainfo/org.kde.kscreen.appdata.xml
%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/InhibitionHint.qml
%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/PresentationModeItem.qml
%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/ScreenLayoutSelection.qml
%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/main.qml
%{_datadir}/plasma/plasmoids/org.kde.kscreen/metadata.desktop
%{_datadir}/plasma/plasmoids/org.kde.kscreen/metadata.json
%{_kf5_datadir}/kded_kscreen/qml/OsdSelector.qml
%{_kf5_datadir}/kservices5/kcm_kscreen.desktop
%{_kf5_datadir}/qlogging-categories5/kscreen.categories
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Orientation.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/OutputIdentifier.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/OutputPanel.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Panel.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/RotationButton.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml
%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/main.qml
%changelog
* Fri Dec 16 2022 misaka00251 <liuxin@iscas.ac.cn> - 1:5.25.5-1
- Init package
|