]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- added pl.po-update patch
[packages/lftp.git] / lftp.spec
index 6e0efc4ea747d487f56e3ae267cf4ade8cd621c7..0c94473b580323f2df47da0e4dc5fc4b07747425 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -1,19 +1,30 @@
+# TODO
+# - package itself defaults to GNUTLS (prefferring over openssl) should we too?
 #
 # Conditional build:
-%bcond_without ssl     # do not use SSL
-#
+%bcond_without ssl             # do not use SSL
+%bcond_with            gnutls  # use gnutls, otherwise openssl is used when ssl is on
+
+%if %{with ssl}
+%define with_openssl 1
+%endif
+
+%if %{with gnutls} && %{with ssl}
+%undefine with_openssl
+%endif
+
 Summary:       Sophisticated command line FTP/HTTP client
 Summary(ko):   ¸í·ÉÁÙ¿¡¼­ µ¹¾Æ°¡´Â FTP/HTTP Å¬¶óÀ̾ðÆ®
 Summary(pl):   Zaawansowany klient FTP/HTTP
 Summary(pt_BR):        Sofisticado programa de transferência de arquivos (cliente FTP/HTTP)
 Summary(zh_CN):        lftp ¿Í»§¶Ë³ÌÐò
 Name:          lftp
-Version:       3.0.10
+Version:       3.4.0
 Release:       1
 License:       GPL
 Group:         Applications/Networking
-Source0:       ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
-# Source0-md5: 4bd653e8a6f9888fff090caec07194b1
+Source0:       ftp://ftp.yars.free.net/pub/source/lftp/%{name}-%{version}.tar.bz2
+# Source0-md5: 5d39a8b250691a693470b1773b5c6bd4
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
 Source2:       %{name}.desktop
@@ -23,11 +34,12 @@ Icon:               ftp.gif
 URL:           http://lftp.yar.ru/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gettext-devel
+BuildRequires: gettext-devel >= 0.14.2
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 1:1.4.2-9
 BuildRequires: ncurses-devel >= 5.2
-%{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
+%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
+%{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
 BuildRequires: readline-devel >= 4.2
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -67,10 +79,13 @@ o arquivo FEATURES para uma lista mais detalhada.
 %setup -q
 #%patch0 -p1
 %patch1 -p1
+rm -f po/stamp-po
+
 sed -i -e 's#pkgverlibdir.*=.*#pkgverlibdir = $(pkglibdir)#g' src/Makefile*
+# for gettext >= 0.14.2
+sed -i -e 's/jm_AC/gl_AC/' m4/human.m4
 
-# allow pl.gmo regeneration
-rm -f po/stamp-po
+%{!?with_gnutls:echo 'AC_DEFUN([AM_PATH_LIBGNUTLS],[/bin/true])' > m4/gnutls.m4}
 
 %build
 %{__libtoolize}
@@ -81,7 +96,10 @@ rm -f po/stamp-po
 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
 %configure \
        --with-modules \
-       --with%{!?with_ssl:out}-ssl
+       --with%{!?with_ssl:out}-ssl \
+       --with%{!?with_openssl:out}-openssl \
+       --with%{!?with_gnutls:out}-gnutls
+
 %{__make}
 
 %install
@@ -102,12 +120,16 @@ bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lftp.conf
 %attr(755,root,root) %{_bindir}/*
 %dir %{_libdir}/lftp
+%attr(755,root,root) %{_libdir}/liblftp*.so.*.*.*
 %attr(755,root,root) %{_libdir}/lftp/*.so
 %attr(755,root,root) %{_datadir}/lftp
 %{_mandir}/man1/*
This page took 0.684854 seconds and 4 git commands to generate.