]> git.pld-linux.org Git - packages/ka5-kblocks.git/blobdiff - ka5-kblocks.spec
- updated to 22.12.0
[packages/ka5-kblocks.git] / ka5-kblocks.spec
index 1531f5681dda2476fca7baa19638e31e73c30a7e..9494b4cab8b528dcbc3cb6f3dafa09f82e2f0b52 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      19.04.1
-%define                kframever       5.56.0
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      22.12.0
+%define                kframever       5.94.0
+%define                qtver           5.15.2
 %define                kaname          kblocks
 Summary:       Kblocks
 Name:          ka5-%{kaname}
-Version:       19.04.1
+Version:       22.12.0
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Applications/Games
-Source0:       http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: a03617a566d92c624075815f29e9497e
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 280bd192a60bb15418ca607abd258c0a
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
@@ -46,6 +49,12 @@ line is completed it is removed, and more space is available in the
 play area. When there is not enough space for blocks to fall, the game
 is over.
 
+%description -l pl.UTF-8
+KBlocks jest klasyczną grą w spadające bloki. Ideą gry jest
+układać spadające bloki tak, aby tworzyły poziome linie bez przerw.
+Kompletne linie są usuwane i robi się więcej miejsca w obszarze gry.
+Gdy nie ma już miejsca na spadające bloki, gra się kończy.
+
 %prep
 %setup -q -n %{kaname}-%{version}
 
@@ -54,11 +63,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
@@ -70,8 +85,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{kaname}.lang
 %defattr(644,root,root,755)
-/etc/xdg/kblocks.categories
-/etc/xdg/kblocks.knsrc
 %attr(755,root,root) %{_bindir}/kblocks
 %{_desktopdir}/org.kde.kblocks.desktop
 %{_datadir}/config.kcfg/kblocks.kcfg
@@ -82,5 +95,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/48x48/apps/kblocks.png
 %{_iconsdir}/hicolor/64x64/apps/kblocks.png
 %{_datadir}/kblocks
-%{_datadir}/kxmlgui5/kblocks
 %{_datadir}/metainfo/org.kde.kblocks.appdata.xml
+%{_datadir}/qlogging-categories5/kblocks.categories
+%{_datadir}/knsrcfiles/kblocks.knsrc
This page took 0.123447 seconds and 4 git commands to generate.