diff --git a/spice-gtk.spec b/spice-gtk.spec index ea45526..21fd7b4 100644 --- a/spice-gtk.spec +++ b/spice-gtk.spec @@ -33,6 +33,7 @@ BuildRequires: polkit-devel BuildRequires: gtk-doc BuildRequires: vala-tools BuildRequires: usbutils +BuildRequires: libsoup-devel >= 2.49.91 BuildRequires: libphodav2-devel BuildRequires: lz4-devel %if %{with_gtk3} @@ -154,14 +155,21 @@ cp -a spice-gtk-%{version} spice-gtk3-%{version} %build +CONFIGURE_ARGS=" + --enable-gtk-doc + --enable-webdav + --with-usb-acl-helper-dir=%{_libexecdir}/spice-gtk-%{_arch}/ + --enable-lz4 +" + cd spice-gtk-%{version} -%configure --with-gtk=2.0 --enable-gtk-doc --with-usb-acl-helper-dir=%{_libexecdir}/spice-gtk-%{_arch}/ --enable-lz4 +%configure $CONFIGURE_ARGS --with-gtk=2.0 make %{?_smp_mflags} cd .. %if %{with_gtk3} cd spice-gtk3-%{version} -%configure --with-gtk=3.0 --enable-vala --with-usb-acl-helper-dir=%{_libexecdir}/spice-gtk-%{_arch}/ --enable-lz4 +%configure $CONFIGURE_ARGS --with-gtk=3.0 make %{?_smp_mflags} cd .. %endif