]> git.pld-linux.org Git - packages/kf5-kinit.git/blobdiff - kf5-kinit.spec
- bcond_with tests
[packages/kf5-kinit.git] / kf5-kinit.spec
index 7d6c9039d9cc9130aae5002fb554b65af9670e93..590d5b2ada27da065598b140d7769bae2d84d902 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.82
+#
+# 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.82.0
+Version:       5.92.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: eee0f9b3c7bd6ea73208fc62b1dbb2d1
+Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# 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.036324 seconds and 4 git commands to generate.