+#
+# Conditional build:
+%bcond_with tests # build with tests
# TODO:
# - runtime Requires if any
-%define kdeframever 5.89
+%define kdeframever 5.104
%define qtver 5.15.2
%define kfname karchive
Summary: Reading, creating, and manipulating file archives
Name: kf5-%{kfname}
-Version: 5.89.0
+Version: 5.104.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 0ad5c95426a4e5c7c38729bffe739c00
+# Source0-md5: 8e165cf7d85f015a82091b05bcb9a951
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Network-devel >= %{qtver}
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
..
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%files devel
%defattr(644,root,root,755)
%{_includedir}/KF5/KArchive
-%{_includedir}/KF5/karchive_version.h
%{_libdir}/libKF5Archive.so
%{_libdir}/cmake/KF5Archive
%{qt5dir}/mkspecs/modules/qt_KArchive.pri