]> git.pld-linux.org Git - packages/ka5-palapeli.git/blobdiff - ka5-palapeli.spec
- updated to 22.08.1
[packages/ka5-palapeli.git] / ka5-palapeli.spec
index 4d4f991a4d3ef352af20fa69665d95058a87df81..5084232338fd87484ca4ff0dc3b76a98e8017f7d 100644 (file)
@@ -1,14 +1,17 @@
-%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}
@@ -48,6 +51,12 @@ that genre, you are not limited to aligning pieces on imaginary grids.
 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}
@@ -69,11 +78,17 @@ install -d build
 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
@@ -113,6 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_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
This page took 0.03971 seconds and 4 git commands to generate.