]> git.pld-linux.org Git - packages/lftp.git/blob - lftp.spec
- force to use openssl >= 0.9.7, idea by kloczek
[packages/lftp.git] / lftp.spec
1 #
2 # Conditional build:
3 # _without_ssl - do not use SSL
4 #
5 Summary:        Commandline ftp client
6 Summary(ko):    ¸í·ÉÁÙ¿¡¼­ µ¹¾Æ°¡´Â FTP/HTTP Å¬¶óÀ̾ðÆ®
7 Summary(pl):    Zaawansowany klient ftp
8 Summary(pt_BR): Sofisticado programa de transferência de arquivos (cliente ftp/http)
9 Summary(zh_CN): lftp ¿Í»§¶Ë³ÌÐò
10 Name:           lftp
11 Version:        2.6.4
12 Release:        1
13 License:        GPL
14 Group:          Applications/Networking
15 Source0:        ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
16 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
17 Patch0:         %{name}-amfix.patch
18 Patch1:         %{name}-home_etc.patch
19 Patch2:         %{name}-pl.patch
20 Icon:           ftp.gif
21 URL:            http://lftp.yar.ru/
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  gettext-devel
25 BuildRequires:  gcc-c++
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool >= 1:1.4.2-9
28 BuildRequires:  ncurses-devel >= 5.2
29 %{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.7}
30 BuildRequires:  readline-devel >= 4.2
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
34 %if %{_gcc_ver} == 2
35 %define         __cxx           "%{__cc}"
36 %endif
37
38 %description
39 LFTP is a shell-like command line ftp client. The main two advantages
40 over other ftp clients are reliability and ability to perform tasks in
41 background. It will reconnect and reget the file being transferred if
42 the connection broke. You can start a transfer in background and
43 continue browsing on the ftp site. It does this all in one process.
44 When you have started background jobs and feel you are done, you can
45 just exit lftp and it automatically moves to nohup mode and completes
46 the transfers. It has also such nice features as reput and mirror.
47
48 %description -l pl
49 Lftp jest zaawansowanym klientem ftp. Potrafi automatycznie po³±czyæ
50 siê z serwerem ftp po zerwanym po³±czeniu i dokoñczyæ ¶ci±ganie
51 archiwów. Lftp mo¿e pracowaæ w tle i nie zrywa przy tym po³±czenia po
52 tym jak siê wylogujesz. Program ten honoruje komendy pow³oki podczas
53 sesji, np. `ls -al | less` itp. Doskonale siê spisuje jako aplikacja
54 do mirrorowania serwerów FTP.
55
56 %description -l pt_BR
57 O lftp é um programa de transferência de arquivos por linha de
58 comando. Ele suporta os protocolos FTP e HTTP. Suporta: proxy ftp,
59 proxy http, ftp sobre http, opie/skey, transferências fxp, repetição
60 de tentativa automática em erros não-fatais e timeouts, ipv6, socks.
61 Veja o arquivo FEATURES para uma lista mais detalhada.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68
69 %build
70 rm -f missing
71 %{__libtoolize}
72 %{__gettextize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__automake}
76 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
77 %configure \
78         --with-modules \
79         --with%{?_without_ssl:out}-ssl
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT%{_sysconfdir}
85
86 %{__make} install DESTDIR=$RPM_BUILD_ROOT
87
88 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
89
90 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
91
92 %find_lang %{name}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files -f %{name}.lang
98 %defattr(644,root,root,755)
99 %doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
100 %attr(755,root,root) %{_bindir}/*
101 # All modules specified here because lftp breaks things
102 %attr(755,root,root) %{_libdir}/lftp/%{version}/cmd-mirror.so
103 %attr(755,root,root) %{_libdir}/lftp/%{version}/cmd-sleep.so
104 %attr(755,root,root) %{_libdir}/lftp/%{version}/libnetwork.so
105 %attr(755,root,root) %{_libdir}/lftp/%{version}/proto-file.so
106 %attr(755,root,root) %{_libdir}/lftp/%{version}/proto-fish.so
107 %attr(755,root,root) %{_libdir}/lftp/%{version}/proto-ftp.so
108 %attr(755,root,root) %{_libdir}/lftp/%{version}/proto-http.so
109
110 %attr(755,root,root) %{_datadir}/lftp
111 %dir %{_libdir}/lftp
112 %dir %{_libdir}/lftp/%{version}
113 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
114 %{_mandir}/man1/*
115 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.179448 seconds and 4 git commands to generate.