From c6dd158238825eafe5728951d680690dcb66d762 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mar 07 2017 21:49:05 +0000 Subject: Add curl bcond I'd like to test this in FAHC, adding a bcond will allow me to enable it. --- diff --git a/ostree.spec b/ostree.spec index 54d0bf9..3e439bf 100644 --- a/ostree.spec +++ b/ostree.spec @@ -1,3 +1,5 @@ +%bcond_with curl + Summary: Tool for managing bootable, immutable filesystem trees Name: ostree Version: 2017.2 @@ -17,7 +19,11 @@ BuildRequires: autoconf automake libtool # For docs BuildRequires: gtk-doc # Core requirements +%if %{with curl} +BuildRequires: pkgconfig(libcurl) +%else BuildRequires: pkgconfig(libsoup-2.4) +%endif BuildRequires: libattr-devel # Extras BuildRequires: pkgconfig(libarchive) @@ -86,6 +92,9 @@ env NOCONFIGURE=1 ./autogen.sh %configure --disable-silent-rules \ --enable-gtk-doc \ --with-selinux \ +%if %{with curl} +--with-curl \ +%endif --with-dracut=yesbutnoconf %make_build