[packages/kp5-ksystemstats] - updated to 5.24.4 - added bcond_with tests

witekfl witekfl at pld-linux.org
Wed Mar 30 15:43:36 CEST 2022


commit cb24d086095c2d94225b45f0fecf241ccbe59df1
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Wed Mar 30 15:43:32 2022 +0200

    - updated to 5.24.4
    - added bcond_with tests

 kp5-ksystemstats.spec | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-ksystemstats.spec b/kp5-ksystemstats.spec
index 87abf26..b7966cb 100644
--- a/kp5-ksystemstats.spec
+++ b/kp5-ksystemstats.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		ksystemstats
 Summary:	ksystemstats
 Name:		kp5-%{kpname}
-Version:	5.24.3
+Version:	5.24.4
 Release:	1
 License:	BSD Clause 2
 Group:		X11/Libraries
 Source0:	http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5:	91a2aab921e13ae27fb144ae4de416ea
+# Source0-md5:	ea01a92180f14f62b2eef2e73e68a335
 URL:		http://www.kde.org/
 BuildRequires:	Qt5Core-devel >= 5.15.0
 BuildRequires:	cmake >= 2.8.12
@@ -43,11 +46,16 @@ system.
 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
 install -d $RPM_BUILD_ROOT%{_iconsdir}/{breeze-dark,breeze}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kp5-ksystemstats.git/commitdiff/cb24d086095c2d94225b45f0fecf241ccbe59df1



More information about the pld-cvs-commit mailing list