]> git.pld-linux.org Git - packages/lftp.git/blob - lftp.spec
f71fde95fcb0b5a5d9595d72922280a4658f6c6e
[packages/lftp.git] / lftp.spec
1 #
2 # Conditional build:
3 # bcond_off_ssl - do not use SSL
4 #
5 Summary:        Commandline ftp client
6 Summary(pl):    Zaawansowany klient ftp
7 Name:           lftp
8 Version:        2.3.10
9 Release:        1
10 License:        GPL
11 Group:          Applications/Networking
12 Group(de):      Applikationen/Netzwerkwesen
13 Group(pl):      Aplikacje/Sieciowe
14 Source0:        ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
15 Patch0:         %{name}-am14_fix.patch
16 Patch1:         %{name}-use_system_gettext.m4.patch
17 Patch2:         %{name}-readline.patch
18 Patch3:         %{name}-OMIT.patch
19 Icon:           ftp.gif
20 URL:            http://ftp.yars.free.net/projects/lftp/
21 BuildRequires:  ncurses-devel >= 5.2
22 BuildRequires:  readline-devel >= 4.2
23 BuildRequires:  gettext-devel
24 BuildRequires:  gcc-c++
25 %{!??bcond_off_ssl:BuildRequires:       openssl-devel >= 0.9.6a}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 LFTP is a shell-like command line ftp client. The main two advantages
30 over other ftp clients are reliability and ability to perform tasks in
31 background. It will reconnect and reget the file being transferred if
32 the connection broke. You can start a transfer in background and
33 continue browsing on the ftp site. It does this all in one process.
34 When you have started background jobs and feel you are done, you can
35 just exit lftp and it automatically moves to nohup mode and completes
36 the transfers. It has also such nice features as reput and mirror.
37
38 %description -l pl
39 Lftp jest zaawansowanym klientem ftp. Potrafi automatycznie po³±czyæ
40 siê z serwerem ftp po zerwanym po³±czeniu i dokoñczyæ ¶ci±ganie
41 archiwów. Lftp mo¿e pracowaæ w tle i nie zrywa przy tym po³±czenia po
42 tym jak siê wylogujesz. Program ten honoruje komendy pow³oki podczas
43 sesji, np. `ls -al | less` itp. Doskonale siê spisuje jako aplikacja
44 do mirrorowania serwerów FTP.
45
46 %prep
47 %setup -q
48 #%patch0 -p1
49 #%patch1 -p1
50 %patch2 -p1
51 %patch3 -p1
52
53 %build
54 libtoolize --copy --force
55 gettextize --copy --force
56 aclocal -I m4
57 autoconf
58 automake -a -c
59 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
60 %configure \
61         --with-modules \
62         --with%{?bcond_off_ssl:out}-ssl
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_sysconfdir}
68
69 %{__make} install DESTDIR=$RPM_BUILD_ROOT
70
71 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
72
73 gzip -9nf README NEWS FAQ
74
75 %find_lang %{name}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %doc *.gz
83 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
84 %attr(755,root,root) %{_bindir}/*
85 %{_mandir}/man1/*
86 %attr(755,root,root) %{_datadir}/lftp
87
88 %dir %{_libdir}/lftp
89 %dir %{_libdir}/lftp/%{version}
90 %attr(755,root,root) %{_libdir}/lftp/%{version}/*.so
This page took 0.158708 seconds and 2 git commands to generate.