]> git.pld-linux.org Git - packages/lftp.git/commitdiff
- added am patch (fixes build with automake 1.13)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Feb 2013 18:34:36 +0000 (19:34 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Feb 2013 18:34:36 +0000 (19:34 +0100)
- added dante,dnssec bconds

lftp-am.patch [new file with mode: 0644]
lftp.spec

diff --git a/lftp-am.patch b/lftp-am.patch
new file mode 100644 (file)
index 0000000..d97635e
--- /dev/null
@@ -0,0 +1,11 @@
+--- lftp-4.4.2/configure.ac.orig       2013-02-05 18:55:29.963634348 +0100
++++ lftp-4.4.2/configure.ac    2013-02-05 19:05:22.556955327 +0100
+@@ -5,7 +5,7 @@
+ AC_CONFIG_MACRO_DIR([m4])
+ AC_CONFIG_LIBOBJ_DIR([lib])
+ AC_CONFIG_SRCDIR([src/ftpclass.cc])
+-AM_CONFIG_HEADER([lib/config.h])
++AC_CONFIG_HEADERS([lib/config.h])
+ AM_INIT_AUTOMAKE
+ dnl This doesn't *require* GNU extensions; it merely enables them if
index 647c71dbc947cf32df219df57b97170a657130c4..d65e4664a32a01c876d3e8d42d63e44f1aae4107 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -4,7 +4,9 @@
 # Conditional build:
 %bcond_without ssl     # do not use SSL
 %bcond_with    gnutls  # use gnutls, otherwise openssl is used when ssl is on
-
+%bcond_without dante   # Dante-based SOCKS support
+%bcond_without dnssec  # DNSSEC local validation
+#
 %if %{with ssl}
 %define with_openssl 1
 %endif
@@ -35,11 +37,12 @@ Patch2:             aliases.patch
 # maintained by me, sent upstream from time to time  --qboosh
 Patch3:                %{name}-pl.po-update.patch
 Patch4:                lftp-4.3.8-gets.patch
+Patch5:                %{name}-am.patch
 URL:           http://lftp.yar.ru/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
-BuildRequires: dante-devel
-BuildRequires: dnssec-tools-devel
+%{?with_dante:BuildRequires:   dante-devel}
+%{?with_dnssec:BuildRequires:  dnssec-tools-devel}
 BuildRequires: expat-devel
 BuildRequires: gettext-devel >= 0.14.2
 %{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
@@ -91,6 +94,7 @@ o arquivo FEATURES para uma lista mais detalhada.
 %patch2 -p1
 #%patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{!?with_gnutls:echo 'AC_DEFUN([AM_PATH_LIBGNUTLS],[/bin/true])' > m4/gnutls.m4}
 
@@ -103,9 +107,9 @@ o arquivo FEATURES para uma lista mais detalhada.
 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
 %configure \
        --without-included-regex \
-       --with-dnssec-local-validation \
+       --with-dnssec-local-validation%{!?with_dnssec:=no} \
        --with-modules \
-       --with-socksdante \
+       --with-socksdante%{!?with_dante:=no} \
        --with%{!?with_openssl:out}-openssl \
        --with%{!?with_gnutls:out}-gnutls
 
This page took 0.040186 seconds and 4 git commands to generate.