3 %bcond_without ssl # do not use SSL
5 Summary: Sophisticated command line FTP/HTTP client
6 Summary(ko): ¸í·ÉÁÙ¿¡¼ µ¹¾Æ°¡´Â FTP/HTTP Ŭ¶óÀ̾ðÆ®
7 Summary(pl): Zaawansowany klient FTP/HTTP
8 Summary(pt_BR): Sofisticado programa de transferência de arquivos (cliente FTP/HTTP)
9 Summary(zh_CN): lftp ¿Í»§¶Ë³ÌÐò
14 Group: Applications/Networking
15 Source0: ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
16 # Source0-md5: c1c79fccedbeaf1386d94db27215517f
17 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
18 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
19 Source2: %{name}.desktop
20 Patch0: %{name}-home_etc.patch
21 Patch1: %{name}-pl.po-update.patch
23 URL: http://lftp.yar.ru/
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: gettext-devel
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtool >= 1:1.4.2-9
29 BuildRequires: ncurses-devel >= 5.2
30 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
31 BuildRequires: readline-devel >= 4.2
32 BuildRequires: sed >= 4.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _gcc_ver %(%{__cc} -dumpversion | cut -b 1)
37 %define __cxx "%{__cc}"
41 LFTP is a shell-like command line FTP/HTTP client. The main two
42 advantages over other FTP clients are reliability and ability to
43 perform tasks in background. It will reconnect and reget the file
44 being transferred if the connection broke. You can start a transfer in
45 background and continue browsing on the FTP site. It does this all in
46 one process. When you have started background jobs and feel you are
47 done, you can just exit lftp and it automatically moves to nohup mode
48 and completes the transfers. It has also such nice features as reput
52 Lftp jest zaawansowanym klientem FTP/HTTP. Potrafi automatycznie
53 po³±czyæ siê z serwerem FTP po zerwanym po³±czeniu i dokoñczyæ
54 ¶ci±ganie archiwów. Lftp mo¿e pracowaæ w tle i nie zrywa przy tym
55 po³±czenia po tym jak siê wylogujesz. Program ten honoruje komendy
56 pow³oki podczas sesji, np. `ls -al | less` itp. Doskonale siê spisuje
57 jako aplikacja do mirrorowania serwerów FTP.
60 O lftp é um programa de transferência de arquivos por linha de
61 comando. Ele suporta os protocolos FTP/HTTP. Suporta: proxy FTP, proxy
62 HTTP, FTP sobre HTTP, opie/skey, transferências fxp, repetição de
63 tentativa automática em erros não-fatais e timeouts, ipv6, socks. Veja
64 o arquivo FEATURES para uma lista mais detalhada.
70 sed -i -e 's#pkgverlibdir.*=.*#pkgverlibdir = $(pkglibdir)#g' src/Makefile*
72 # allow pl.gmo regeneration
81 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
84 --with%{!?with_ssl:out}-ssl
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
92 DESTDIR=$RPM_BUILD_ROOT
94 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
95 install contrib/lftp-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/lftp.png
96 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
98 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
103 rm -rf $RPM_BUILD_ROOT
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
108 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
109 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lftp/*.so
112 %attr(755,root,root) %{_datadir}/lftp
114 %lang(pl) %{_mandir}/pl/man1/*
115 %{_desktopdir}/lftp.desktop
116 %{_pixmapsdir}/lftp.png