|
1 ## |
|
2 ## lftp.spec -- OpenPKG RPM Package Specification |
|
3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
4 ## |
|
5 ## Permission to use, copy, modify, and distribute this software for |
|
6 ## any purpose with or without fee is hereby granted, provided that |
|
7 ## the above copyright notice and this permission notice appear in all |
|
8 ## copies. |
|
9 ## |
|
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
21 ## SUCH DAMAGE. |
|
22 ## |
|
23 |
|
24 # package information |
|
25 Name: lftp |
|
26 Summary: Interactive Client for FTP and HTTP protocol |
|
27 URL: http://lftp.yar.ru/ |
|
28 Vendor: Alexander V. Lukyanov |
|
29 Packager: OpenPKG Foundation e.V. |
|
30 Distribution: OpenPKG Community |
|
31 Class: BASE |
|
32 Group: FTP |
|
33 License: GPL |
|
34 Version: 4.3.8 |
|
35 Release: 20120704 |
|
36 |
|
37 # list of sources |
|
38 Source0: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2 |
|
39 Patch0: lftp.patch |
|
40 |
|
41 # build information |
|
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc |
|
43 PreReq: OpenPKG, openpkg >= 20100101 |
|
44 BuildPreReq: readline, libiconv, openssl, ncurses |
|
45 PreReq: readline, libiconv, openssl, ncurses |
|
46 |
|
47 %description |
|
48 LFTP is a full-featured interactive FTP, SFTP and HTTP/HTTPS |
|
49 command-line client. |
|
50 |
|
51 %track |
|
52 prog lftp = { |
|
53 version = %{version} |
|
54 url = http://ftp.yars.free.net/pub/source/lftp/ |
|
55 regex = lftp-(__VER__)\.tar\.bz2 |
|
56 } |
|
57 |
|
58 %prep |
|
59 %setup -q |
|
60 %patch -p0 |
|
61 |
|
62 %build |
|
63 srcdir=`pwd` |
|
64 CC="%{l_cc}" \ |
|
65 CXX="%{l_cxx}" \ |
|
66 CFLAGS="%{l_cflags -O}" \ |
|
67 CXXFLAGS="%{l_cxxflags -O}" \ |
|
68 CPPFLAGS="%{l_cppflags}" \ |
|
69 GREP="grep" \ |
|
70 ./configure \ |
|
71 --srcdir=$srcdir \ |
|
72 --prefix=%{l_prefix} \ |
|
73 --mandir=%{l_prefix}/man \ |
|
74 --sysconfdir=%{l_prefix}/etc/lftp \ |
|
75 --with-openssl=%{l_prefix} \ |
|
76 --without-gnutls |
|
77 %{l_make} %{l_mflags -O} |
|
78 |
|
79 %install |
|
80 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
81 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
|
82 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias |
|
83 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/liblftp* |
|
84 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale |
|
85 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \ |
|
86 '%config %{l_prefix}/etc/lftp/*' |
|
87 |
|
88 %files -f files |
|
89 |
|
90 %clean |
|
91 |