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