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