]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- up to 4.4.9
[packages/lftp.git] / lftp.spec
index 647c71dbc947cf32df219df57b97170a657130c4..8e585c81fa6716b377c24adbb37b5cf7eb24c027 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -4,7 +4,10 @@
 # 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
+# broken currently https://www.dnssec-tools.org/trac/ticket/173
+%bcond_with    dnssec  # DNSSEC local validation
+#
 %if %{with ssl}
 %define with_openssl 1
 %endif
@@ -19,12 +22,12 @@ Summary(pl.UTF-8):  Zaawansowany klient FTP/HTTP
 Summary(pt_BR.UTF-8):  Sofisticado programa de transferência de arquivos (cliente FTP/HTTP)
 Summary(zh_CN.UTF-8):  lftp 客户端程序
 Name:          lftp
-Version:       4.4.2
+Version:       4.4.9
 Release:       1
 License:       GPL v3+
 Group:         Applications/Networking
-Source0:       http://ftp.yars.free.net/pub/source/lftp/%{name}-%{version}.tar.xz
-# Source0-md5: 3c9411d859e1df9c09d3de0f32774cf3
+Source0:       ftp://ftp.yar.ru/pub/source/lftp/%{name}-%{version}.tar.xz
+# Source0-md5: 3cbf1c4c39d2f66358aad7933a5e1d38
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
 Source2:       %{name}.desktop
@@ -35,11 +38,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 +95,9 @@ o arquivo FEATURES para uma lista mais detalhada.
 %patch2 -p1
 #%patch3 -p1
 %patch4 -p1
+%patch5 -p1
+
+%{__rm} po/stamp-po
 
 %{!?with_gnutls:echo 'AC_DEFUN([AM_PATH_LIBGNUTLS],[/bin/true])' > m4/gnutls.m4}
 
@@ -103,9 +110,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.03341 seconds and 4 git commands to generate.