[packages/bison] - added bcond to allow building without requiring libtextstyle which is optional

hawk hawk at pld-linux.org
Sun Aug 28 11:58:29 CEST 2022


commit 8288f3a384832bd5088661c9e2b5eb8d60f02f6b
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun Aug 28 11:57:42 2022 +0200

    - added bcond to allow building without requiring libtextstyle which is
      optional

 bison.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/bison.spec b/bison.spec
index c26ab08..928384d 100644
--- a/bison.spec
+++ b/bison.spec
@@ -1,3 +1,4 @@
+%bcond_without	libtextstyle	# don't require libtextstyle
 Summary:	A GNU general-purpose parser generator
 Summary(de.UTF-8):	GNU-Parser-Generator
 Summary(es.UTF-8):	Generador de parser de la GNU
@@ -21,7 +22,7 @@ BuildRequires:	flex
 BuildRequires:	gcc >= 5:3.2
 BuildRequires:	gettext-tools >= 0.19
 BuildRequires:	help2man
-BuildRequires:	libtextstyle-devel >= 0.20.5
+%{?with_libtextstyle:BuildRequires:	libtextstyle-devel >= 0.20.5}
 BuildRequires:	libxslt-progs
 BuildRequires:	lzip
 BuildRequires:	m4 >= 1.4.6
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bison.git/commitdiff/8288f3a384832bd5088661c9e2b5eb8d60f02f6b



More information about the pld-cvs-commit mailing list