]> git.pld-linux.org Git - packages/wget.git/commitdiff
metalink bcond added
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 23 Oct 2018 11:44:23 +0000 (13:44 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 23 Oct 2018 11:44:23 +0000 (13:44 +0200)
wget.spec

index 5f86e95797acf394772dc8092073b2892857339e..082c2b28170658669b4de418e138f9b13ed74b24 100644 (file)
--- a/wget.spec
+++ b/wget.spec
@@ -6,6 +6,7 @@
 #
 # Conditional build:
 %bcond_without tests   # check target
+%bcond_without metalink # build without metalink support
 %bcond_with    gnutls  # use GnuTLS (wget default) instead of OpenSSL
 
 Summary:       A utility for retrieving files using the HTTP or FTP protocols
@@ -35,9 +36,9 @@ BuildRequires:        autoconf >= 2.61
 BuildRequires: automake >= 1:1.9
 BuildRequires: gettext-tools >= 0.18.1
 %{?with_gnutls:BuildRequires:  gnutls-devel}
-BuildRequires: gpgme-devel >= 0.4.2
+%{?with_metalink:BuildRequires:        gpgme-devel >= 0.4.2}
 BuildRequires: libidn2-devel
-BuildRequires: libmetalink-devel
+%{?with_metalink:BuildRequires:        libmetalink-devel}
 BuildRequires: libpsl-devel >= 0.16.0
 BuildRequires: libuuid-devel
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
@@ -164,7 +165,7 @@ chmod +x build-aux/bzr-version-gen
        --enable-pcre \
        --disable-silent-rules \
        --with-libpsl \
-       --with-metalink \
+       %{__with_without metalink} \
        --with-ssl%{!?with_gnutls:=openssl} \
        --with-zlib \
        %{nil}
This page took 0.15946 seconds and 4 git commands to generate.