# TODO:
# - runtime Requires if any
-%define kdeframever 5.83
-%define qtver 5.14.0
+%define kdeframever 5.93
+%define qtver 5.15.2
%define kfname attica
Summary: A Qt library that implements the Open Collaboration Services API
Name: kf5-%{kfname}
-Version: 5.83.0
+Version: 5.93.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 097b4993b4a0617da23169cb700b9aea
+Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 16b115bea733e85860f1ca99f6a47f15
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Network-devel >= %{qtver}
%if %{with tests}
BuildRequires: Qt5Test-devel >= %{qtver}
%endif
-BuildRequires: cmake >= 3.5
+BuildRequires: cmake >= 3.16
BuildRequires: kf5-extra-cmake-modules >= %{version}
BuildRequires: ninja
BuildRequires: qt5-build >= %{qtver}
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
..
%ninja_build
%{?with_tests:%ninja_build test}
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%defattr(644,root,root,755)
%{_libdir}/libKF5Attica.so
%{_includedir}/KF5/Attica
-%{_includedir}/KF5/attica_version.h
%{_libdir}/cmake/KF5Attica
%{_pkgconfigdir}/libKF5Attica.pc
%{_libdir}/qt5/mkspecs/modules/qt_Attica.pri