[packages/kp5-libkscreen] - updated to 5.24.4 - added bcond_with tests
witekfl
witekfl at pld-linux.org
Wed Mar 30 15:42:45 CEST 2022
commit ac851ced129098644bfe0a89f9e0dee04e87501c
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Wed Mar 30 15:42:36 2022 +0200
- updated to 5.24.4
- added bcond_with tests
kp5-libkscreen.spec | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-libkscreen.spec b/kp5-libkscreen.spec
index 41abdcb..9a59f09 100644
--- a/kp5-libkscreen.spec
+++ b/kp5-libkscreen.spec
@@ -1,15 +1,18 @@
-%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 libkscreen
Summary: KDE screen management software
Name: kp5-%{kpname}
-Version: 5.24.3
+Version: 5.24.4
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5: beba9674b846dd03719af7dc81a54f6a
+# Source0-md5: 66d6ad76a4a729e5f00b620103b5ae1e
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 2.8.12
@@ -45,11 +48,16 @@ Pliki nagłówkowe dla programistów używających %{kpname}.
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-libkscreen.git/commitdiff/ac851ced129098644bfe0a89f9e0dee04e87501c
More information about the pld-cvs-commit
mailing list