]> git.pld-linux.org Git - packages/ka5-gwenview.git/blobdiff - ka5-gwenview.spec
- bcond_with tests
[packages/ka5-gwenview.git] / ka5-gwenview.spec
index f9f8dcb561443dfd3e9a260ad505116993193c8c..e268124c0f02008072c5438d93cb6ab11b1a1666 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.04.1
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      21.12.3
 %define                kframever       5.56.0
 %define                qtver           5.9.0
 %define                kaname          gwenview
 Summary:       Simple image viewer
 Name:          ka5-%{kaname}
-Version:       21.04.1
+Version:       21.12.3
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 0c76df7c1991109e010daf2807a5606f
+# Source0-md5: ea23f6ff46018d6a4f90c39f43e431fd
 Patch0:                %{name}-exiv2.patch
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
@@ -45,6 +48,14 @@ easy navigation in your file hierarchy. Image loading is done by the
 Qt library, so it supports all image formats your Qt installation
 supports.
 
+%description -l pl.UTF-8
+Gwenview to przeglądarka obrazków dla KDE.
+
+Wyświetla ona drzewiastą strukturę folderów i okno z listą plików do
+łatwego nawigowania po hieracrchi plików. Ładowanie obrazków jest
+wykonywane przez bibliotę Qt, więc obsługiwane są wszystkie formaty
+obrazów, które wspiera Qt.
+
 %prep
 %setup -q -n %{kaname}-%{version}
 #%patch0
@@ -54,11 +65,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
This page took 0.177929 seconds and 4 git commands to generate.