[packages/rofi] add tests bcond

atler atler at pld-linux.org
Sun Aug 14 13:46:49 CEST 2022


commit 3a040e6d6495630898b0129b4fba0cc49aa2dd27
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 14 13:39:40 2022 +0200

    add tests bcond

 rofi.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/rofi.spec b/rofi.spec
index 1163ae6..754a1e5 100644
--- a/rofi.spec
+++ b/rofi.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	tests		# don't build tests
+
 Summary:	A window switcher, application launcher and dmenu replacement
 Name:		rofi
 Version:	1.7.3
@@ -9,7 +13,7 @@ Source0:	https://github.com/davatorium/rofi/releases/download/%{version}/%{name}
 URL:		https://github.com/davatorium/rofi
 BuildRequires:	bison
 BuildRequires:	cairo-devel
-BuildRequires:	check-devel >= 0.11.0
+%{?with_tests:BuildRequires:	check-devel >= 0.11.0}
 BuildRequires:	flex >= 2.5.39
 BuildRequires:	gdk-pixbuf2-devel
 BuildRequires:	glib2-devel >= 1:2.40
@@ -17,6 +21,7 @@ BuildRequires:	librsvg-devel
 BuildRequires:	libxcb-devel
 BuildRequires:	pango-devel
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.527
 BuildRequires:	startup-notification-devel
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xcb-util-cursor-devel
@@ -49,7 +54,8 @@ Header files for rofi.
 
 %build
 %configure \
-	--disable-silent-rules
+	--disable-silent-rules \
+	%{__enable_disable check}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rofi.git/commitdiff/09abd9f4f9e93005a356225d45896e6a8fb9b10d



More information about the pld-cvs-commit mailing list