lftp/lftp.spec

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
parent 467
e2558d4b246c
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

     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 ##
    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:      20120800
    37 #   list of sources
    38 Source0:      http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2
    39 Patch0:       lftp.patch
    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
    47 %description
    48     LFTP is a full-featured interactive FTP, SFTP and HTTP/HTTPS
    49     command-line client.
    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     }
    58 %prep
    59     %setup -q
    60     %patch -p0
    61     %{l_shtool} subst \
    62         -e 's;\(for gl_func in .*\) gets;\1;' \
    63         configure
    65 %build
    66     srcdir=`pwd`
    67     CC="%{l_cc}" \
    68     CXX="%{l_cxx}" \
    69     CFLAGS="%{l_cflags -O}" \
    70     CXXFLAGS="%{l_cxxflags -O}" \
    71     CPPFLAGS="%{l_cppflags}" \
    72     GREP="grep" \
    73     ./configure \
    74         --srcdir=$srcdir \
    75         --prefix=%{l_prefix} \
    76         --mandir=%{l_prefix}/man \
    77         --sysconfdir=%{l_prefix}/etc/lftp \
    78         --with-openssl=%{l_prefix} \
    79         --without-gnutls
    80     %{l_make} %{l_mflags -O}
    82 %install
    83     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    84     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    85     rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
    86     rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/liblftp*
    87     rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
    88     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
    89         '%config %{l_prefix}/etc/lftp/*'
    91 %files -f files
    93 %clean

mercurial