-%define kdeappsver 21.04.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 22.08.1
+%define qtver 5.15.2
%define kaname palapeli
Summary: Puzzle game
Name: ka5-%{kaname}
-Version: 21.04.0
+Version: 22.08.1
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Applications/Games
-Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 40e413c75309d342684d785e8fa9e588
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 0fc8d439a0a406d5439cea171bd07fc0
URL: http://www.kde.org/
BuildRequires: Qt5Concurrent-devel
BuildRequires: Qt5Core-devel >= %{qtver}
The pieces are freely moveable. Also, Palapeli features real
persistency, i.e. everything you do is saved on your disk immediately.
+%description -l pl.UTF-8
+Palapeli jest jednosobową grą w układanie puzli. W odróżnieniu do
+innych gier z tego gatunku pojedyncze puzle nie są "przywiązane"
+do siatki. Możesz je dowolnie przesuwać. Jedną z cech Palapeli jest
+zapis wszystkich ruchów w czasie rzeczywistym na dysku.
+
%package devel
Summary: Header files for %{kaname} development
Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname}
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
%{_datadir}/mime/packages/palapeli-mimetypes.xml
%{_datadir}/palapeli
%{_datadir}/qlogging-categories5/palapeli.categories
+%dir %{_libdir}/qt5/plugins/palapelislicers
%attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_goldbergslicer.so
%attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_jigsawslicer.so
%attr(755,root,root) %{_libdir}/qt5/plugins/palapelislicers/palapeli_rectslicer.so