michael@466: ## michael@466: ## lftp.spec -- OpenPKG RPM Package Specification michael@466: ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. michael@466: ## michael@466: ## Permission to use, copy, modify, and distribute this software for michael@466: ## any purpose with or without fee is hereby granted, provided that michael@466: ## the above copyright notice and this permission notice appear in all michael@466: ## copies. michael@466: ## michael@466: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@466: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@466: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@466: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@466: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@466: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@466: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@466: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@466: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@466: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@466: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@466: ## SUCH DAMAGE. michael@466: ## michael@466: michael@466: # package information michael@466: Name: lftp michael@466: Summary: Interactive Client for FTP and HTTP protocol michael@466: URL: http://lftp.yar.ru/ michael@466: Vendor: Alexander V. Lukyanov michael@466: Packager: OpenPKG Foundation e.V. michael@466: Distribution: OpenPKG Community michael@466: Class: BASE michael@466: Group: FTP michael@466: License: GPL michael@466: Version: 4.3.8 michael@467: Release: 20120800 michael@466: michael@466: # list of sources michael@466: Source0: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.bz2 michael@466: Patch0: lftp.patch michael@466: michael@466: # build information michael@466: BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc michael@466: PreReq: OpenPKG, openpkg >= 20100101 michael@466: BuildPreReq: readline, libiconv, openssl, ncurses michael@466: PreReq: readline, libiconv, openssl, ncurses michael@466: michael@466: %description michael@466: LFTP is a full-featured interactive FTP, SFTP and HTTP/HTTPS michael@466: command-line client. michael@466: michael@466: %track michael@466: prog lftp = { michael@466: version = %{version} michael@466: url = http://ftp.yars.free.net/pub/source/lftp/ michael@466: regex = lftp-(__VER__)\.tar\.bz2 michael@466: } michael@466: michael@466: %prep michael@466: %setup -q michael@466: %patch -p0 michael@653: %{l_shtool} subst \ michael@653: -e 's;\(for gl_func in .*\) gets;\1;' \ michael@653: configure michael@466: michael@466: %build michael@466: srcdir=`pwd` michael@466: CC="%{l_cc}" \ michael@466: CXX="%{l_cxx}" \ michael@466: CFLAGS="%{l_cflags -O}" \ michael@466: CXXFLAGS="%{l_cxxflags -O}" \ michael@466: CPPFLAGS="%{l_cppflags}" \ michael@466: GREP="grep" \ michael@466: ./configure \ michael@466: --srcdir=$srcdir \ michael@466: --prefix=%{l_prefix} \ michael@466: --mandir=%{l_prefix}/man \ michael@466: --sysconfdir=%{l_prefix}/etc/lftp \ michael@466: --with-openssl=%{l_prefix} \ michael@466: --without-gnutls michael@466: %{l_make} %{l_mflags -O} michael@466: michael@466: %install michael@466: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@466: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@466: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias michael@466: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/liblftp* michael@466: rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale michael@466: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \ michael@466: '%config %{l_prefix}/etc/lftp/*' michael@466: michael@466: %files -f files michael@466: michael@466: %clean michael@466: