From 8ccb9826819a1c64a81b10bd031b9ebae1774f2d Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 18 Apr 2018 13:14:57 -0700 Subject: [PATCH] Add a %bcond for libgit2 --- rust.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rust.spec b/rust.spec index a9e58df..0e827dd 100644 --- a/rust.spec +++ b/rust.spec @@ -27,6 +27,13 @@ %bcond_with bundled_llvm %endif +# Some targets don't have libgit2 +%if 0%{?rhel} && !0%{?epel} +%bcond_without bundled_libgit2 +%else +%bcond_with bundled_libgit2 +%endif + # LLDB only works on some architectures %ifarch %{arm} aarch64 %{ix86} x86_64 # LLDB isn't available everywhere...