#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeframever 5.92
-%define qtver 5.9.0
+%define kdeframever 5.110
+%define qtver 5.15.2
%define kfname purpose
Summary: Offers available actions for a specific purpose
Name: kf5-%{kfname}
-Version: 5.92.0
+Version: 5.110.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 21bf48d0fce4110c8c0c9c9cc3cd8cc0
+# Source0-md5: a007abef9234eebe7d32910951190d13
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Test-devel >= %{qtver}
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
BuildRequires: gettext-devel
BuildRequires: ka5-kaccounts-integration-devel
BuildRequires: kf5-extra-cmake-modules >= %{version}
%setup -q -n %{kfname}-%{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 \
- ../
-%ninja_build
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
%if %{with tests}
-ctest
+%ninja_build -C build test
%endif
%dir %{_libdir}/qt5/qml/org/kde/purpose/phabricator
%attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/phabricator/libphabricatorquickplugin.so
%{_libdir}/qt5/qml/org/kde/purpose/phabricator/qmldir
-%{_libdir}/qt5/qml/org/kde/purpose/plugins.qmltypes
%{_libdir}/qt5/qml/org/kde/purpose/qmldir
%dir %{_libdir}/qt5/qml/org/kde/purpose/reviewboard
%attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/reviewboard/librbpurposequickplugin.so
%{_iconsdir}/hicolor/64x64/actions/kipiplugin_youtube.png
%{_datadir}/purpose
%{_datadir}/qlogging-categories5/purpose.renamecategories
-%{_libdir}/qt5/plugins/kf5/purpose/twitterplugin.so
+%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/twitterplugin.so
+%{_libdir}/qt5/qml/org/kde/purpose/AlternativesView.qml
+%{_libdir}/qt5/qml/org/kde/purpose/JobView.qml
%files devel
%defattr(644,root,root,755)