-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkp5-xdg-desktop-portal-kde.spec
85 lines (75 loc) · 2.43 KB
/
kp5-xdg-desktop-portal-kde.spec
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
#
# Conditional build:
%bcond_with tests # build with tests
%define kdeplasmaver 5.27.12
%define qtver 5.15.2
%define kpname xdg-desktop-portal-kde
Summary: KDE XDG Desktop Portal
Name: kp5-%{kpname}
Version: 5.27.12
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
# Source0-md5: d9c81f652e8f2feaa6e27bab67ad9bc8
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 3.16.0
BuildRequires: cups-devel
BuildRequires: fontconfig-devel
BuildRequires: kf5-attica-devel
BuildRequires: kf5-kactivities-stats-devel
BuildRequires: kf5-kauth-devel
BuildRequires: kf5-kcmutils-devel
BuildRequires: kf5-kdbusaddons-devel
BuildRequires: kf5-kdeclarative-devel
BuildRequires: kf5-kdelibs4support-devel
BuildRequires: kf5-kdoctools-devel
BuildRequires: kf5-kglobalaccel-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-knewstuff-devel
BuildRequires: kf5-knotifications-devel
BuildRequires: kf5-knotifyconfig-devel
BuildRequires: kf5-kpeople-devel
BuildRequires: kf5-krunner-devel
BuildRequires: kf5-kwallet-devel
BuildRequires: kf5-plasma-framework-devel
BuildRequires: ninja
BuildRequires: rpmbuild(macros) >= 1.164
BuildRequires: xorg-driver-input-evdev-devel
BuildRequires: xorg-driver-input-synaptics-devel
BuildRequires: xorg-lib-libXft-devel
BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define qt5dir %{_libdir}/qt5
%description
A portal frontend service for Flatpak and possibly other desktop
containment frameworks.
%prep
%setup -q -n %{kpname}-%{version}
%build
%cmake -B build \
-G Ninja \
%{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DHTML_INSTALL_DIR=%{_kdedocdir}
%ninja_build -C build
%if %{with tests}
ctest
%endif
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%find_lang %{kpname} --all-name --with-kde
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{kpname}.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/xdg-desktop-portal-kde
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
%{_datadir}/xdg-desktop-portal/portals/kde.portal
%{_datadir}/xdg-desktop-portal/kde-portals.conf
%{_desktopdir}/org.freedesktop.impl.portal.desktop.kde.desktop
%{_datadir}/knotifications5/xdg-desktop-portal-kde.notifyrc
%{systemduserunitdir}/plasma-xdg-desktop-portal-kde.service
%{_datadir}/qlogging-categories5/xdp-kde.categories