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