[packages/msgraph] add tests bcond
atler
atler at pld-linux.org
Sun Nov 30 00:53:39 CET 2025
commit 077bce38972dade7d2ad3348683deff0f933d4ff
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Nov 30 00:50:16 2025 +0100
add tests bcond
msgraph.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/msgraph.spec b/msgraph.spec
index d9e2815..c39efd6 100644
--- a/msgraph.spec
+++ b/msgraph.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without apidocs # API documentation
+%bcond_without tests # build tests
#
Summary: Shared library for accessing MS Graph API
Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do MS Graph API
@@ -19,13 +20,14 @@ BuildRequires: gnome-online-accounts-devel
BuildRequires: json-glib-devel
BuildRequires: librest-devel >= 0.9
BuildRequires: libsoup3-devel >= 3.0
+%{?with_tests:BuildRequires: libxml2-devel}
BuildRequires: meson >= 0.63.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.042
BuildRequires: tar >= 1:1.22
-BuildRequires: uhttpmock1-devel >= 0.11.0
+%{?with_tests:BuildRequires: uhttpmock1-devel >= 0.11.0}
BuildRequires: xz
Requires: glib2 >= 1:2.28
Requires: json-glib
@@ -75,7 +77,8 @@ Dokumentacja API biblioteki msgraph.
%build
%meson \
- %{!?with_apidocs:-Dgtk_doc=false}
+ %{!?with_apidocs:-Dgtk_doc=false} \
+ -Dtests=%{__true_false tests}
%meson_build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/msgraph.git/commitdiff/f103f23a6c262de1a29315ae4a4723e150da4132
More information about the pld-cvs-commit
mailing list