X-Git-Url: https://git.pld-linux.org/?p=packages%2Fkp5-xdg-desktop-portal-kde.git;a=blobdiff_plain;f=kp5-xdg-desktop-portal-kde.spec;h=3ac5bdf4f88182aaf56efc9b29e15f0f371bc0fb;hp=cbf9d9af16fa1252a1e567849d61af6ae3c90d9c;hb=HEAD;hpb=b479898e9cb78cbb32c95816ec06bacb5e8981bd diff --git a/kp5-xdg-desktop-portal-kde.spec b/kp5-xdg-desktop-portal-kde.spec index cbf9d9a..213ad9c 100644 --- a/kp5-xdg-desktop-portal-kde.spec +++ b/kp5-xdg-desktop-portal-kde.spec @@ -1,18 +1,22 @@ -%define kdeplasmaver 5.22.4 -%define qtver 5.9.0 +# +# Conditional build: +%bcond_with tests # build with tests +%define kdeplasmaver 5.27.11 +%define qtver 5.15.2 %define kpname xdg-desktop-portal-kde Summary: KDE XDG Desktop Portal Name: kp5-%{kpname} -Version: 5.22.4 +Version: 5.27.11 Release: 1 License: LGPL v2.1+ Group: X11/Libraries -Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz -# Source0-md5: 900994c0628b8b3767c83db0b4f16e0c +Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz +# Source0-md5: da938f11c9caab561a4452810bec93d3 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.16.0 +BuildRequires: cups-devel BuildRequires: fontconfig-devel BuildRequires: kf5-attica-devel BuildRequires: kf5-kactivities-stats-devel @@ -49,13 +53,16 @@ containment frameworks. %setup -q -n %{kpname}-%{version} %build -install -d build -cd build -%cmake -G Ninja \ +%cmake -B build \ + -G Ninja \ + %{!?with_tests:-DBUILD_TESTING=OFF} \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DHTML_INSTALL_DIR=%{_kdedocdir} \ - ../ -%ninja_build + -DHTML_INSTALL_DIR=%{_kdedocdir} +%ninja_build -C build + +%if %{with tests} +ctest +%endif %install rm -rf $RPM_BUILD_ROOT @@ -71,9 +78,8 @@ rm -rf $RPM_BUILD_ROOT %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 -%dir %{_datadir}/xdg-desktop-portal-kde -%dir %{_datadir}/xdg-desktop-portal-kde/qml -%{_datadir}/xdg-desktop-portal-kde/qml/AppChooserDialog.qml -%{_datadir}/xdg-desktop-portal-kde/qml/UserInfoDialog.qml +%{systemduserunitdir}/plasma-xdg-desktop-portal-kde.service +%{_datadir}/qlogging-categories5/xdp-kde.categories