]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- up to 4.9.0
[packages/lftp.git] / lftp.spec
index 7b712faec653b74ef69c5e93f779557522a2e9c1..efc5b68212b77103756b6cc4c4901ddb95a293dd 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -2,6 +2,7 @@
 # - package itself defaults to GNUTLS (prefferring over openssl) should we too?
 #
 # Conditional build:
+%bcond_with    tests
 %bcond_without ssl     # do not use SSL
 %bcond_with    gnutls  # use gnutls, otherwise openssl is used when ssl is on
 # better just preload it instead forcing linking
@@ -23,12 +24,12 @@ Summary(pl.UTF-8):  Zaawansowany klient FTP/HTTP
 Summary(pt_BR.UTF-8):  Sofisticado programa de transferência de arquivos (cliente FTP/HTTP)
 Summary(zh_CN.UTF-8):  lftp 客户端程序
 Name:          lftp
-Version:       4.7.2
+Version:       4.9.0
 Release:       1
 License:       GPL v3+
 Group:         Applications/Networking
-Source0:       http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
-# Source0-md5: 24b64dcd74426803eb1e9bf75a5a590a
+Source0:       https://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
+# Source0-md5: 6e3268506895a446a6c83b6387534070
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
 Source2:       %{name}.desktop
@@ -40,7 +41,7 @@ Patch2:               aliases.patch
 # when updated attach at https://github.com/lavv17/lftp/issues
 Patch3:                %{name}-pl.po-update.patch
 Patch4:                %{name}-am.patch
-URL:           http://lftp.yar.ru/
+URL:           http://lftp.tech/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 %{?with_dante:BuildRequires:   dante-devel}
@@ -48,21 +49,18 @@ BuildRequires:      automake
 BuildRequires: expat-devel
 BuildRequires: gettext-tools >= 0.14.2
 %{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
+BuildRequires: libidn2-devel
 BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 1:1.4.2-9
+BuildRequires: libtool >= 2:2
 BuildRequires: ncurses-devel >= 5.2
 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
 BuildRequires: pkgconfig
-BuildRequires: readline-devel >= 4.2
+BuildRequires: readline-devel >= 5.0
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
+BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
-%if %{_gcc_ver} == 2
-%define                __cxx           "%{__cc}"
-%endif
-
 %description
 LFTP is a shell-like command line FTP/HTTP client. The main two
 advantages over other FTP clients are reliability and ability to
@@ -119,6 +117,8 @@ CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
 
 %{__make}
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
This page took 0.026268 seconds and 4 git commands to generate.