fda45c836fe3e14c68dc18bc14405ab925a91988
[packages/kp5-xdg-desktop-portal-kde.git] / kp5-xdg-desktop-portal-kde.spec
1 %define         kdeplasmaver    5.21.2
2 %define         qtver           5.9.0
3 %define         kpname          xdg-desktop-portal-kde
4
5 Summary:        KDE XDG Desktop Portal
6 Name:           kp5-%{kpname}
7 Version:        5.21.2
8 Release:        1
9 License:        LGPL v2.1+
10 Group:          X11/Libraries
11 Source0:        http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
12 # Source0-md5:  ec21c5c78c286d5d74e680db3e56f4ab
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  cmake >= 2.8.12
16 BuildRequires:  fontconfig-devel
17 BuildRequires:  kf5-attica-devel
18 BuildRequires:  kf5-kactivities-stats-devel
19 BuildRequires:  kf5-kauth-devel
20 BuildRequires:  kf5-kcmutils-devel
21 BuildRequires:  kf5-kdbusaddons-devel
22 BuildRequires:  kf5-kdeclarative-devel
23 BuildRequires:  kf5-kdelibs4support-devel
24 BuildRequires:  kf5-kdoctools-devel
25 BuildRequires:  kf5-kglobalaccel-devel
26 BuildRequires:  kf5-ki18n-devel
27 BuildRequires:  kf5-knewstuff-devel
28 BuildRequires:  kf5-knotifications-devel
29 BuildRequires:  kf5-knotifyconfig-devel
30 BuildRequires:  kf5-kpeople-devel
31 BuildRequires:  kf5-krunner-devel
32 BuildRequires:  kf5-kwallet-devel
33 BuildRequires:  kf5-plasma-framework-devel
34 BuildRequires:  ninja
35 BuildRequires:  rpmbuild(macros) >= 1.164
36 BuildRequires:  xorg-driver-input-evdev-devel
37 BuildRequires:  xorg-driver-input-synaptics-devel
38 BuildRequires:  xorg-lib-libXft-devel
39 BuildRequires:  xz
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         qt5dir          %{_libdir}/qt5
43
44 %description
45 A portal frontend service for Flatpak and possibly other desktop
46 containment frameworks.
47
48 %prep
49 %setup -q -n %{kpname}-%{version}
50
51 %build
52 install -d build
53 cd build
54 %cmake -G Ninja \
55         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
56         -DHTML_INSTALL_DIR=%{_kdedocdir} \
57         ../
58 %ninja_build
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 %ninja_install -C build
63
64 %find_lang %{kpname} --all-name --with-kde
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files -f %{kpname}.lang
70 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_libexecdir}/xdg-desktop-portal-kde
72 %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
73 %{_datadir}/xdg-desktop-portal/portals/kde.portal
74 %{_desktopdir}/org.freedesktop.impl.portal.desktop.kde.desktop
75 %{_datadir}/knotifications5/xdg-desktop-portal-kde.notifyrc
76 %dir %{_datadir}/xdg-desktop-portal-kde
77 %dir %{_datadir}/xdg-desktop-portal-kde/qml
78 %{_datadir}/xdg-desktop-portal-kde/qml/AppChooserDialog.qml
79 %{_datadir}/xdg-desktop-portal-kde/qml/UserInfoDialog.qml
This page took 0.095594 seconds and 2 git commands to generate.