[packages/libgit2] - switch to system cmake_on_off macro, BR: rpmbuild(macros) >= 1.742

adamg adamg at pld-linux.org
Sun Mar 24 12:46:27 CET 2019


commit 3bd4ac363a4afda55193f3bdb001e89d521c72bf
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Sun Mar 24 12:46:18 2019 +0100

    - switch to system cmake_on_off macro, BR: rpmbuild(macros) >= 1.742

 libgit2.spec | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/libgit2.spec b/libgit2.spec
index e0ac8ee..63e21b0 100644
--- a/libgit2.spec
+++ b/libgit2.spec
@@ -25,12 +25,10 @@ BuildRequires:	http-parser-devel >= 2
 BuildRequires:	openssl-devel
 BuildRequires:	pkgconfig
 %{?with_tests:BuildRequires:	python}
+BuildRequires:	rpmbuild(macros) >= 1.742
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# Usage: cmake_with BCOND_NAME [OPTION_NAME]
-%define		cmake_on_off() -D%{?2}%{!?2:%{1}}:BOOL=%{expand:%%{?with_%{1}:ON}%%{!?with_%{1}:OFF}}
-
 %description
 libgit2 is a portable, pure C implementation of the Git core methods
 provided as a re-entrant linkable library with a solid API, allowing
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgit2.git/commitdiff/3bd4ac363a4afda55193f3bdb001e89d521c72bf



More information about the pld-cvs-commit mailing list