[packages/libsolv] - fix bcond inside macro

baggins baggins at pld-linux.org
Mon Feb 22 13:18:33 CET 2021


commit ccd8528ee54fd2a2e874b3db2d5dd8d068edf7b2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Feb 22 13:18:16 2021 +0100

    - fix bcond inside macro

 libsolv.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libsolv.spec b/libsolv.spec
index cf5bd51..044acd8 100644
--- a/libsolv.spec
+++ b/libsolv.spec
@@ -194,12 +194,9 @@ Wiązania języka Tcl do bibliotek libsolv.
 	-DENABLE_LZMA_COMPRESSION=ON \\\
 	-DENABLE_PUBKEY=ON \\\
 	-DENABLE_RPMDB=ON \\\
-%if %{with rpm5}
-	-DENABLE_RPMDB_BDB=ON \\\
-%else
-	-DENABLE_RPMDB_LIBRPM=ON \\\
-	-DENABLE_RPMPKG_LIBRPM=ON \\\
-%endif
+	%{?with_rpm5:-DENABLE_RPMDB_BDB=ON} \\\
+	%{!?with_rpm5:-DENABLE_RPMDB_LIBRPM=ON} \\\
+	%{!?with_rpm5:-DENABLE_RPMPKG_LIBRPM=ON} \\\
 	-DENABLE_RPMDB_BYRPMHEADER=ON \\\
 	-DENABLE_RPMMD=ON \\\
 	-DENABLE_RPMPKG=ON \\\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsolv.git/commitdiff/ccd8528ee54fd2a2e874b3db2d5dd8d068edf7b2



More information about the pld-cvs-commit mailing list