]> git.pld-linux.org Git - packages/libgit2.git/commitdiff
- switch to system cmake_on_off macro, BR: rpmbuild(macros) >= 1.742
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 24 Mar 2019 11:46:18 +0000 (12:46 +0100)
committerAdam Gołębiowski <adamg@pld-linux.org>
Sun, 24 Mar 2019 11:46:18 +0000 (12:46 +0100)
libgit2.spec

index e0ac8ee21cf1a3e1a1be07ea62c6a4b179ab8bc4..63e21b01d6a889f4d7ed1387ce664ef2d7b86787 100644 (file)
@@ -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
This page took 0.149587 seconds and 4 git commands to generate.