Search
j0ke.net Open Build Service
>
Projects
>
server:ftp
>
lftp
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 13
[-]
[+]
Added
lftp.spec
@@ -0,0 +1,338 @@ +# +# spec file for package lftp (Version 3.5.14) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany +# and modifications by Pascal Bleser <guru@unixtech.be> +# 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://bugs.opensuse.org/ +# + +# norootforbuild + +%if %suse_version >= 910 +%define with_gnutls 1 +%else +%define with_openssl 1 +%endif + +Name: lftp +Version: 3.6.1 +%define vi_version 1.1 +Release: 0 +License: GNU General Public License version 2 or later (GPL v2 or later) +Group: Productivity/Networking/Ftp/Clients +URL: http://lftp.yar.ru/ +Summary: LFTP Command Line File Transfer Program +Source: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2 +Source1: %{name}.desktop +Source2: http://michael.stapelberg.de/lftp_vi/lftp-vi.%{vi_version}.tar.gz +Patch1: %{name}-nostrip.patch +Patch2: %{name}-wrapper.patch +Patch3: %{name}-compat-mode.patch +Patch4: %{name}-autoconf-req.patch +Patch5: %{name}-add-cmd-edit-module.patch +Patch6: http://michael.stapelberg.de/lftp_vi/lftp-completion.patch +Patch7: %{name}-fix-cmd-edit-includes.patch +Patch8: %{name}-old-autoconf.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ gnutls-devel libstdc++-devel openssl-devel readline-devel update-alternatives +BuildRequires: ncurses-devel make autoconf automake libtool update-desktop-files +%if %{?with_gnutls:1}0 +BuildRequires: gnutls-devel +%endif +%if %{?with_openssl:1}0 +BuildRequires: openssl-devel +%endif +Obsoletes: lftp-beta < %{version} +Conflicts: ftp +Provides: nkitb:/usr/bin/ftp +PreReq: 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> + +%debug_package +%prep +%setup -q +pushd src +%__tar xzf "%{SOURCE2}" +popd +%patch1 +%patch2 +%patch3 +%patch4 +%patch5 +pushd src +%patch6 +popd #src +%patch7 +%if 0%{?suse_version:1} && %suse_version < 1020 +%patch8 +%endif + +%build +%{?suse_update_config:%{suse_update_config}} +libtoolize --force +aclocal -I m4 +autoheader +autoconf +touch AUTHORS +automake -a +%if 0%{?suse_version:1} && %suse_version >= 1010 +CFLAGS="$CFLAGS -fstack-protector" +%endif +CFLAGS="$CFLAGS" \ +CXXFLAGS="$CFLAGS" \ +LDFLAGS=' ' \ +%configure \ + --with-modules \ +%if %{?with_gnutls:1}0 + --with-gnutls --without-openssl \ +%endif +%if %{?with_openssl:1}0 + --with-openssl --without-gnutls \ +%endif + --with-modules \ + --with-debug \ + --without-profiling \ + --enable-largefile \ + --with-pager=/usr/bin/less \ + --with-libresolv \ + --without-included-readline + +%__make %{?jobs:-j%jobs} + +%install +%makeinstall +touch "%{buildroot}%{_bindir}/ftp" +# We don't package the .la files +%__rm -f "%{buildroot}/%{_libdir}"/{lftp/*/,}*.la + +%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" +%__install -D -m 0644 contrib/lftp-icon.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png" +%suse_update_desktop_file -r "%{name}" Network FileTransfer + +%find_lang "%{name}" + +%post +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 + +%preun +if [ $1 -eq 0 ]; then + update-alternatives --remove ftp "%{_bindir}/lftp_wrapper" +fi + +%files -f "lftp.lang" +%defattr(-,root,root) +%doc BUGS COPYING ChangeLog FAQ FEATURES README* NEWS THANKS TODO lftp.lsm +%doc contrib/lftp-icon.png +%config %{_sysconfdir}/lftp.conf +%{_bindir}/lftp +%{_bindir}/lftpget +%{_bindir}/lftp_wrapper +%ghost %{_bindir}/ftp +%{_datadir}/lftp +%dir %{_libdir}/lftp +%dir %{_libdir}/lftp/%{version} +%{_libdir}/lftp/%{version}/cmd-edit.so +%{_libdir}/lftp/%{version}/cmd-mirror.so +%{_libdir}/lftp/%{version}/cmd-sleep.so +%{_libdir}/lftp/%{version}/compat-mode.so +%{_libdir}/lftp/%{version}/liblftp-getdate.so +%{_libdir}/lftp/%{version}/liblftp-network.so +%{_libdir}/lftp/%{version}/liblftp-pty.so +%{_libdir}/lftp/%{version}/proto-file.so +%{_libdir}/lftp/%{version}/proto-fish.so +%{_libdir}/lftp/%{version}/proto-ftp.so +%{_libdir}/lftp/%{version}/proto-http.so +%{_libdir}/lftp/%{version}/proto-sftp.so +%{_libdir}/liblftp-*.so +%{_libdir}/liblftp-*.so.* +%doc %{_mandir}/man1/lftp.1* +%doc %{_mandir}/man1/lftpget.1* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/%{name}.png + +%clean +%__rm -rf "%{buildroot}" + +%changelog +* Wed Nov 14 2007 - guru@unixtech.be +- update to 3.6.1 +* Fri Nov 2 2007 - guru@unixtech.be +- fixed silly typo and build debug package properly +* Fri Nov 2 2007 - guru@unixtech.be +- update to 3.6.0 +* Sun Oct 21 2007 - guru@unixtech.be +- update to 3.5.15 +* Sat Oct 6 2007 - guru@unixtech.be +- update to 3.5.14 +- revamped spec file a little +- added vi command +- added desktop file +- explicitly select gnutls or openssl for SSL support +- added Obsoletes against lftp-beta to play nice with 3rd party repositories +* Mon Jul 16 2007 - mkudlvasr@suse.cz +- update to 3.5.11