]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeplasmaver 5.27.11 | |
5 | %define qtver 5.15.2 | |
6 | %define kpname xdg-desktop-portal-kde | |
7 | ||
8 | Summary: KDE XDG Desktop Portal | |
9 | Name: kp5-%{kpname} | |
10 | Version: 5.27.11 | |
11 | Release: 1 | |
12 | License: LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz | |
15 | # Source0-md5: da938f11c9caab561a4452810bec93d3 | |
16 | URL: http://www.kde.org/ | |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 3.16.0 | |
19 | BuildRequires: cups-devel | |
20 | BuildRequires: fontconfig-devel | |
21 | BuildRequires: kf5-attica-devel | |
22 | BuildRequires: kf5-kactivities-stats-devel | |
23 | BuildRequires: kf5-kauth-devel | |
24 | BuildRequires: kf5-kcmutils-devel | |
25 | BuildRequires: kf5-kdbusaddons-devel | |
26 | BuildRequires: kf5-kdeclarative-devel | |
27 | BuildRequires: kf5-kdelibs4support-devel | |
28 | BuildRequires: kf5-kdoctools-devel | |
29 | BuildRequires: kf5-kglobalaccel-devel | |
30 | BuildRequires: kf5-ki18n-devel | |
31 | BuildRequires: kf5-knewstuff-devel | |
32 | BuildRequires: kf5-knotifications-devel | |
33 | BuildRequires: kf5-knotifyconfig-devel | |
34 | BuildRequires: kf5-kpeople-devel | |
35 | BuildRequires: kf5-krunner-devel | |
36 | BuildRequires: kf5-kwallet-devel | |
37 | BuildRequires: kf5-plasma-framework-devel | |
38 | BuildRequires: ninja | |
39 | BuildRequires: rpmbuild(macros) >= 1.164 | |
40 | BuildRequires: xorg-driver-input-evdev-devel | |
41 | BuildRequires: xorg-driver-input-synaptics-devel | |
42 | BuildRequires: xorg-lib-libXft-devel | |
43 | BuildRequires: xz | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %define qt5dir %{_libdir}/qt5 | |
47 | ||
48 | %description | |
49 | A portal frontend service for Flatpak and possibly other desktop | |
50 | containment frameworks. | |
51 | ||
52 | %prep | |
53 | %setup -q -n %{kpname}-%{version} | |
54 | ||
55 | %build | |
56 | %cmake -B build \ | |
57 | -G Ninja \ | |
58 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
60 | -DHTML_INSTALL_DIR=%{_kdedocdir} | |
61 | %ninja_build -C build | |
62 | ||
63 | %if %{with tests} | |
64 | ctest | |
65 | %endif | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | %ninja_install -C build | |
70 | ||
71 | %find_lang %{kpname} --all-name --with-kde | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files -f %{kpname}.lang | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_libexecdir}/xdg-desktop-portal-kde | |
79 | %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service | |
80 | %{_datadir}/xdg-desktop-portal/portals/kde.portal | |
81 | %{_datadir}/xdg-desktop-portal/kde-portals.conf | |
82 | %{_desktopdir}/org.freedesktop.impl.portal.desktop.kde.desktop | |
83 | %{_datadir}/knotifications5/xdg-desktop-portal-kde.notifyrc | |
84 | %{systemduserunitdir}/plasma-xdg-desktop-portal-kde.service | |
85 | %{_datadir}/qlogging-categories5/xdp-kde.categories |