Add curl bcond
I'd like to test this in FAHC, adding a bcond will allow me to enable it.
This commit is contained in:
parent
c17b8d9f76
commit
c6dd158238
@ -1,3 +1,5 @@
|
|||||||
|
%bcond_with curl
|
||||||
|
|
||||||
Summary: Tool for managing bootable, immutable filesystem trees
|
Summary: Tool for managing bootable, immutable filesystem trees
|
||||||
Name: ostree
|
Name: ostree
|
||||||
Version: 2017.2
|
Version: 2017.2
|
||||||
@ -17,7 +19,11 @@ BuildRequires: autoconf automake libtool
|
|||||||
# For docs
|
# For docs
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
# Core requirements
|
# Core requirements
|
||||||
|
%if %{with curl}
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
%else
|
||||||
BuildRequires: pkgconfig(libsoup-2.4)
|
BuildRequires: pkgconfig(libsoup-2.4)
|
||||||
|
%endif
|
||||||
BuildRequires: libattr-devel
|
BuildRequires: libattr-devel
|
||||||
# Extras
|
# Extras
|
||||||
BuildRequires: pkgconfig(libarchive)
|
BuildRequires: pkgconfig(libarchive)
|
||||||
@ -86,6 +92,9 @@ env NOCONFIGURE=1 ./autogen.sh
|
|||||||
%configure --disable-silent-rules \
|
%configure --disable-silent-rules \
|
||||||
--enable-gtk-doc \
|
--enable-gtk-doc \
|
||||||
--with-selinux \
|
--with-selinux \
|
||||||
|
%if %{with curl}
|
||||||
|
--with-curl \
|
||||||
|
%endif
|
||||||
--with-dracut=yesbutnoconf
|
--with-dracut=yesbutnoconf
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user