Fri, 03 Aug 2012 16:55:16 +0200
Import package vendor original specs for necessary manipulations.
lftp/lftp.patch | file | annotate | diff | comparison | revisions | |
lftp/lftp.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lftp/lftp.patch Fri Aug 03 16:55:16 2012 +0200 1.3 @@ -0,0 +1,32 @@ 1.4 +Index: src/lftp_tinfo.cc 1.5 +--- src/lftp_tinfo.cc.orig 2008-11-27 06:56:39 +0100 1.6 ++++ src/lftp_tinfo.cc 2009-09-13 21:09:13 +0200 1.7 +@@ -23,20 +23,20 @@ 1.8 + #include <config.h> 1.9 + 1.10 + extern "C" { 1.11 +-#if defined(HAVE_CURSES_H) 1.12 +-# include <curses.h> 1.13 +-# if defined(HAVE_TERM_H) 1.14 +-# include <term.h> 1.15 +-# elif defined(HAVE_NCURSES_TERM_H) 1.16 +-# include <ncurses/term.h> 1.17 +-# endif 1.18 +-#elif defined(HAVE_NCURSES_CURSES_H) 1.19 ++#if defined(HAVE_NCURSES_CURSES_H) 1.20 + # include <ncurses/curses.h> 1.21 + # if defined(HAVE_NCURSES_TERM_H) 1.22 + # include <ncurses/term.h> 1.23 + # elif defined(HAVE_TERM_H) 1.24 + # include <term.h> 1.25 + # endif 1.26 ++#elif defined(HAVE_CURSES_H) 1.27 ++# include <curses.h> 1.28 ++# if defined(HAVE_TERM_H) 1.29 ++# include <term.h> 1.30 ++# elif defined(HAVE_NCURSES_TERM_H) 1.31 ++# include <ncurses/term.h> 1.32 ++# endif 1.33 + #elif defined(HAVE_TERMCAP_H) 1.34 + # include <termcap.h> 1.35 + #endif
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/lftp/lftp.spec Fri Aug 03 16:55:16 2012 +0200 2.3 @@ -0,0 +1,91 @@ 2.4 +## 2.5 +## lftp.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package information 2.28 +Name: lftp 2.29 +Summary: Interactive Client for FTP and HTTP protocol 2.30 +URL: http://lftp.yar.ru/ 2.31 +Vendor: Alexander V. Lukyanov 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: BASE 2.35 +Group: FTP 2.36 +License: GPL 2.37 +Version: 4.3.8 2.38 +Release: 20120704 2.39 + 2.40 +# list of sources 2.41 +Source0: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2 2.42 +Patch0: lftp.patch 2.43 + 2.44 +# build information 2.45 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc 2.46 +PreReq: OpenPKG, openpkg >= 20100101 2.47 +BuildPreReq: readline, libiconv, openssl, ncurses 2.48 +PreReq: readline, libiconv, openssl, ncurses 2.49 + 2.50 +%description 2.51 + LFTP is a full-featured interactive FTP, SFTP and HTTP/HTTPS 2.52 + command-line client. 2.53 + 2.54 +%track 2.55 + prog lftp = { 2.56 + version = %{version} 2.57 + url = http://ftp.yars.free.net/pub/source/lftp/ 2.58 + regex = lftp-(__VER__)\.tar\.bz2 2.59 + } 2.60 + 2.61 +%prep 2.62 + %setup -q 2.63 + %patch -p0 2.64 + 2.65 +%build 2.66 + srcdir=`pwd` 2.67 + CC="%{l_cc}" \ 2.68 + CXX="%{l_cxx}" \ 2.69 + CFLAGS="%{l_cflags -O}" \ 2.70 + CXXFLAGS="%{l_cxxflags -O}" \ 2.71 + CPPFLAGS="%{l_cppflags}" \ 2.72 + GREP="grep" \ 2.73 + ./configure \ 2.74 + --srcdir=$srcdir \ 2.75 + --prefix=%{l_prefix} \ 2.76 + --mandir=%{l_prefix}/man \ 2.77 + --sysconfdir=%{l_prefix}/etc/lftp \ 2.78 + --with-openssl=%{l_prefix} \ 2.79 + --without-gnutls 2.80 + %{l_make} %{l_mflags -O} 2.81 + 2.82 +%install 2.83 + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 2.84 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.85 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias 2.86 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/liblftp* 2.87 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale 2.88 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \ 2.89 + '%config %{l_prefix}/etc/lftp/*' 2.90 + 2.91 +%files -f files 2.92 + 2.93 +%clean 2.94 +