]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- rebuild with readline 7.0
[packages/lftp.git] / lftp.spec
index bf77eaca278f8334643f86258cce1a6c31e39c07..a984b3fd51e331b28b0b6e8b92565e9212ee18d0 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -4,7 +4,11 @@
 # Conditional build:
 %bcond_without ssl     # do not use SSL
 %bcond_with    gnutls  # use gnutls, otherwise openssl is used when ssl is on
-
+# better just preload it instead forcing linking
+%bcond_with    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,26 +23,30 @@ 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.3.1
+Version:       4.7.3
 Release:       2
 License:       GPL v3+
 Group:         Applications/Networking
-Source0:       http://ftp.yars.free.net/pub/source/lftp/%{name}-%{version}.tar.xz
-# Source0-md5: ccef0f84416fc964b7b8a5e3f2e87631
+Source0:       http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
+# Source0-md5: 23deda16014412c802f095fbaa0bebee
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
 Source2:       %{name}.desktop
 Source3:       %{name}-icon.png
-# outdated and nobody cared for 8+ years... will be dropped
-Patch0:                %{name}-home_etc.patch
-Patch1:                %{name}-makefile.patch
-Patch2:                %{name}-m4.patch
-Patch3:                aliases.patch
-Patch4:                %{name}-pl.po-update.patch
+Patch100:      %{name}-git.patch
+Patch0:                %{name}-makefile.patch
+Patch1:                %{name}-m4.patch
+Patch2:                aliases.patch
+# when updated attach at https://github.com/lavv17/lftp/issues
+Patch3:                %{name}-pl.po-update.patch
+Patch4:                %{name}-am.patch
 URL:           http://lftp.yar.ru/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
-BuildRequires: gettext-devel >= 0.14.2
+%{?with_dante:BuildRequires:   dante-devel}
+%{?with_dnssec:BuildRequires:  dnssec-tools-devel}
+BuildRequires: expat-devel
+BuildRequires: gettext-tools >= 0.14.2
 %{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 1:1.4.2-9
@@ -83,12 +91,15 @@ o arquivo FEATURES para uma lista mais detalhada.
 
 %prep
 %setup -q
-#%%patch0 -p1
+#%patch100 -p1
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 
+%{__rm} po/stamp-po
+
 %{!?with_gnutls:echo 'AC_DEFUN([AM_PATH_LIBGNUTLS],[/bin/true])' > m4/gnutls.m4}
 
 %build
@@ -99,7 +110,10 @@ o arquivo FEATURES para uma lista mais detalhada.
 %{__automake}
 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
 %configure \
+       --without-included-regex \
+       --with-dnssec-local-validation%{!?with_dnssec:=no} \
        --with-modules \
+       --with-socksdante%{!?with_dante:=no} \
        --with%{!?with_openssl:out}-openssl \
        --with%{!?with_gnutls:out}-gnutls
 
This page took 0.063132 seconds and 4 git commands to generate.