File lftp.spec of Package lftp

# spec file for package lftp
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define vi_version 1.1
Name:           lftp
Version:        4.7.7
Release:        1
Summary:        Command Line File Transfer Program
License:        GPL-3.0+
Group:          Productivity/Networking/Ftp/Clients
# PATCH-FEATURE-OPENSUSE lftp-ssl-cipher.patch -- use stronger cipher [bnc#857148]
Patch0:         lftp-default-ssl-cipher.patch
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(zlib)
Requires:       less
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

LFTP is a reliable shell-like command line FTP client. It can retry
operations and does reget automatically. It can do several transfers
simultaneously in the background. With LFTP, you can start a transfer
in the background and continue browsing that FTP site or another one.
This is all done in one process. Background jobs are completed in nohup
mode if you exit or close the modem connection. LFTP has reput, mirror,
and reverse mirror among its features. Since version 2.0, it also
supports the HTTP protocol. Other features include IPV6 support,
context sensitive completion, output redirection to files or to pipe,
FTP and HTTP proxy support, transfer rate throttling for each
connection and for all connections in sum, job queueing, job execution
at specified times, opie and skey support in the FTP protocol, SSL for
HTTP and FTP, and FXP transfers.

%setup -q
%autopatch -p1

%configure \
   --disable-silent-rules \
   --without-included-regex \
   --disable-static \
   --with-modules \
   --without-gnutls \
   --with-openssl \
   --with-debug \
   --without-profiling \
   --enable-largefile \
   --with-zlib \
   --with-pager=%{_bindir}/less \
   --with-libresol \
   --with-zlibv \
   --with-libidn \
make %{?_smp_mflags}


# We don't package the .la files
find %{buildroot} -type f -name "*.la" -delete -print

%find_lang %{name}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f "lftp.lang"
%config %{_sysconfdir}/lftp.conf
%dir %{_libdir}/lftp
%dir %{_libdir}/lftp/%{version}

openSUSE Build Service is sponsored by