-%define kdeappsver 21.04.3
-%define kframever 5.56.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 22.12.3
+%define kframever 5.94.0
+%define qtver 5.15.2
%define kaname kig
Summary: kig
Name: ka5-%{kaname}
-Version: 21.04.3
+Version: 22.12.3
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Applications
-Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: a742667f33933d3a47751c0cea1ed30a
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 055eba40a9fb0ee326cedd5ee708f5a8
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel >= 5.11.1
using the computer; Serves as a WYSIWYG tool for drawing mathematical
figures and including them in other documents.
+%description -l pl.UTF-8
+Kig jest programem do interaktywnej geometrii. Pozwala studentom
+interaktywnie poznawać matematyczny figury i koncepty używając
+komputera; służy jako narzędzie WYSIWYG do rysowania matematycznych
+figur i dołączania ich do innych dokumentów.
+
%prep
%setup -q -n %{kaname}-%{version}
cd build
%cmake \
-G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DHTML_INSTALL_DIR=%{_kdedocdir} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
..
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/kig
%attr(755,root,root) %{_bindir}/pykig.py
-%attr(755,root,root) %{_libdir}/qt5/plugins/kigpart.so
+%{_libdir}/qt5/plugins/kf5/parts/kigpart.so
%{_desktopdir}/org.kde.kig.desktop
%{_iconsdir}/hicolor/128x128/apps/kig.png
%{_iconsdir}/hicolor/128x128/mimetypes/application-x-kig.png