]> git.pld-linux.org Git - packages/kf5-kinit.git/blobdiff - kf5-kinit.spec
- bcond_with tests
[packages/kf5-kinit.git] / kf5-kinit.spec
index 54eeb958726347533987d6c4e45123344e914006..590d5b2ada27da065598b140d7769bae2d84d902 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.87
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.92
 %define                qtver           5.14.0
 %define                kfname          kinit
 
 Summary:       Helper library to speed up start of applications on KDE workspaces
 Name:          kf5-%{kfname}
-Version:       5.87.0
+Version:       5.92.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: b0d62ffc86b7f2fc1fa66dcde1fa554c
+# Source0-md5: 25bdf1343c9a9babb830f7fb9c627913
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5DBus-devel >= %{qtver}
@@ -76,10 +79,16 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -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.056508 seconds and 4 git commands to generate.