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