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