commit 9df1d0ed5ce4fc81f414a3d00d1cdf74ad113d72
Author: Witold Filipczyk <[email protected]>
Date:   Wed Mar 30 15:43:44 2022 +0200

    - updated to 5.24.4
    - added bcond_with tests

 kp5-kwrited.spec | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-kwrited.spec b/kp5-kwrited.spec
index b779ec7..d7abfd7 100644
--- a/kp5-kwrited.spec
+++ b/kp5-kwrited.spec
@@ -1,14 +1,17 @@
-%define                kdeplasmaver    5.24.3
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeplasmaver    5.24.4
 %define                qtver           5.9.0
 %define                kpname          kwrited
 Summary:       kwrited
 Name:          kp5-%{kpname}
-Version:       5.24.3
+Version:       5.24.4
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         Base
 Source0:       
http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5: cb4e6e7e8b533585bdbb30a83a0d7af7
+# Source0-md5: e63d70c0c3f3ba9e20236bc1e8c9040a
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel
 BuildRequires: Qt5Gui-devel >= %{qtver}
@@ -38,11 +41,16 @@ KDE Plasma daemon listening for wall and write messages.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
        ..
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kp5-kwrited.git/commitdiff/9df1d0ed5ce4fc81f414a3d00d1cdf74ad113d72

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to