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