]> git.pld-linux.org Git - packages/lftp.git/blob - lftp.spec
- updated to 3.0.3
[packages/lftp.git] / lftp.spec
1 #
2 # Conditional build:
3 %bcond_without ssl      # do not use SSL
4 #
5 Summary:        Sophisticated command line ftp/http client
6 Summary(ko):    ¸í·ÉÁÙ¿¡¼­ µ¹¾Æ°¡´Â ftp/http Å¬¶óÀ̾ðÆ®
7 Summary(pl):    Zaawansowany klient ftp/http
8 Summary(pt_BR): Sofisticado programa de transferência de arquivos (cliente ftp/http)
9 Summary(zh_CN): lftp ¿Í»§¶Ë³ÌÐò
10 Name:           lftp
11 Version:        3.0.3
12 Release:        1
13 License:        GPL
14 Group:          Applications/Networking
15 Source0:        ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
16 # Source0-md5:  ee346d91ecd280a8e7f6ea406ceed144
17 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
18 # Source1-md5:  cdad8fb5342eebd9916eccefc98a855b
19 Source2:        %{name}.desktop
20 Patch0:         %{name}-home_etc.patch
21 Icon:           ftp.gif
22 URL:            http://lftp.yar.ru/
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  gettext-devel
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool >= 1:1.4.2-9
28 BuildRequires:  ncurses-devel >= 5.2
29 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
30 BuildRequires:  readline-devel >= 4.2
31 BuildRequires:  sed >= 4.0
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
35 %if %{_gcc_ver} == 2
36 %define         __cxx           "%{__cc}"
37 %endif
38
39 %description
40 LFTP is a shell-like command line ftp/http client. The main two
41 advantages over other ftp clients are reliability and ability to
42 perform tasks in background. It will reconnect and reget the file
43 being transferred if the connection broke. You can start a transfer in
44 background and continue browsing on the ftp site. It does this all in
45 one process. When you have started background jobs and feel you are
46 done, you can just exit lftp and it automatically moves to nohup mode
47 and completes the transfers. It has also such nice features as reput
48 and mirror.
49
50 %description -l pl
51 Lftp jest zaawansowanym klientem ftp/http. Potrafi automatycznie
52 po³±czyæ siê z serwerem ftp po zerwanym po³±czeniu i dokoñczyæ
53 ¶ci±ganie archiwów. Lftp mo¿e pracowaæ w tle i nie zrywa przy tym
54 po³±czenia po tym jak siê wylogujesz. Program ten honoruje komendy
55 pow³oki podczas sesji, np. `ls -al | less` itp. Doskonale siê spisuje
56 jako aplikacja do mirrorowania serwerów FTP.
57
58 %description -l pt_BR
59 O lftp é um programa de transferência de arquivos por linha de
60 comando. Ele suporta os protocolos ftp/http. Suporta: proxy ftp, proxy
61 http, ftp sobre http, opie/skey, transferências fxp, repetição de
62 tentativa automática em erros não-fatais e timeouts, ipv6, socks. Veja
63 o arquivo FEATURES para uma lista mais detalhada.
64
65 %prep
66 %setup -q
67 #%patch0 -p1
68 sed -i -e 's#pkgverlibdir.*=.*#pkgverlibdir = $(pkglibdir)#g' src/Makefile*
69
70 # allow pl.gmo regeneration
71 rm -f po/stamp-po
72
73 %build
74 %{__libtoolize}
75 %{__gettextize}
76 %{__aclocal} -I m4
77 %{__autoconf}
78 %{__automake}
79 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
80 %configure \
81         --with-modules \
82         --with%{!?with_ssl:out}-ssl
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
93 install contrib/lftp-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/lftp.png
94 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
95
96 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
97
98 %find_lang %{name}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
106 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
107 %attr(755,root,root) %{_bindir}/*
108 %dir %{_libdir}/lftp
109 %attr(755,root,root) %{_libdir}/lftp/*.so
110 %attr(755,root,root) %{_datadir}/lftp
111 %{_mandir}/man1/*
112 %lang(pl) %{_mandir}/pl/man1/*
113 %{_desktopdir}/lftp.desktop
114 %{_pixmapsdir}/lftp.png
This page took 0.192259 seconds and 4 git commands to generate.