lftp/lftp.spec

Sun, 02 Sep 2012 18:18:43 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 02 Sep 2012 18:18:43 +0200
changeset 659
79e32993cb4d
parent 467
e2558d4b246c
permissions
-rw-r--r--

Introduce new version of tcpdump, reorder taglib and cryptbreaker to
the end because they fail to build on Linux, and correct flawed URLs
probably copied from the doxygen build entry.

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

mercurial