File lftp.spec of Package lftp
#
# spec file for package lftp (Version 3.6.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: lftp
BuildRequires: gcc-c++ gnutls-devel libstdc++-devel openssl-devel readline-devel update-alternatives
#
# spec file for package lftp (Version 2.6.5)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
License: GPL v2 or later
Group: Productivity/Networking/Ftp/Clients
Url: http://lftp.yar.ru/
AutoReqProv: on
Version: 3.6.3
Release: 5.<RELEASE68>
Summary: LFTP Command Line File Transfer Program
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}-nostrip.patch
Patch2: %{name}-wrapper.patch
Patch3: %{name}-compat-mode.patch
Patch4: %{name}-check-newput.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Conflicts: ftp
Provides: nkitb:/usr/bin/ftp
PreReq: coreutils update-alternatives
%description
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.
Authors:
--------
Alexander V. Lukyanov <lav@yars.free.net>
%prep
%setup -q
%patch1
%patch2
%patch3
%patch4
%build
touch AUTHORS
autoreconf -fi
CFLAGS="-DUSE_VARARGS -DPREFER_STDARG $RPM_OPT_FLAGS -fstack-protector" \
CXXFLAGS="-DUSE_VARARGS -DPREFER_STDARG $RPM_OPT_FLAGS -fstack-protector" \
LDFLAGS=' ' \
%configure \
--with-modules
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
touch ${RPM_BUILD_ROOT}%{_bindir}/ftp
# We don't package the .la files
rm -f $RPM_BUILD_ROOT/%{_libdir}/{lftp/*/,}*.la
%find_lang %{name}
%post
/sbin/ldconfig
test -L %{_bindir}/ftp || rm -f %{_bindir}/ftp
update-alternatives --install %{_bindir}/ftp ftp %{_bindir}/lftp_wrapper 5 \
--slave %{_mandir}/man1/ftp.1.gz ftp.1 %{_mandir}/man1/lftp.1.gz
update-alternatives --auto ftp
%postun -p /sbin/ldconfig
%preun
if [ $1 -eq 0 ]; then
update-alternatives --remove ftp %{_bindir}/lftp_wrapper
fi
%files -f %{name}.lang
%defattr(-,root,root)
%doc BUGS COPYING ChangeLog FAQ FEATURES README* NEWS THANKS TODO lftp.lsm
%config /etc/lftp.conf
%{_bindir}/*
%ghost %{_bindir}/ftp
%{_mandir}/man*/*
%{_datadir}/lftp
%dir %{_libdir}/lftp
%dir %{_libdir}/lftp/%{version}
%{_libdir}/lftp/*/*.so
%{_libdir}/liblftp-*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog