]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- Up to 4.1.1
[packages/lftp.git] / lftp.spec
index e18002d2266b5ce2fb23ad1cd7e01e2b5ea7f55b..b1f9fb7784c6770d89fc54e7165b99fca8438d8c 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -19,19 +19,22 @@ 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:       3.5.10
+Version:       4.1.1
 Release:       1
-License:       GPL v2+
+License:       GPL v3+
 Group:         Applications/Networking
-Source0:       ftp://ftp.yars.free.net/pub/source/lftp/%{name}-%{version}.tar.bz2
-# Source0-md5: c09e88fa4f595ac776dc6d307a5e5f21
+Source0:       http://ftp.yars.free.net/pub/source/lftp/%{name}-%{version}.tar.xz
+# Source0-md5: ab8b4533d15f5ab4bda721c2be1130ce
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
 # Source1-md5: cdad8fb5342eebd9916eccefc98a855b
 Source2:       %{name}.desktop
+Source3:       %{name}-icon.png
+# outdated and nobody cared for 8+ years... will be dropped
 Patch0:                %{name}-home_etc.patch
 Patch1:                %{name}-makefile.patch
-Patch2:                %{name}-as_needed-fix.patch
-Patch3:                %{name}-pl.po-update.patch
+# ALWAYS send updated patch to lftp mailing lists
+Patch2:                %{name}-pl.po-update.patch
+Patch3:                %{name}-m4.patch
 URL:           http://lftp.yar.ru/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -41,6 +44,7 @@ BuildRequires:        libstdc++-devel
 BuildRequires: libtool >= 1:1.4.2-9
 BuildRequires: ncurses-devel >= 5.2
 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
+BuildRequires: pkgconfig
 BuildRequires: readline-devel >= 4.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -80,9 +84,9 @@ o arquivo FEATURES para uma lista mais detalhada.
 #%%patch0 -p1
 %patch1 -p1
 %patch2 -p1
-#patch3 -p1
+%patch3 -p1
 
-rm -f po/stamp-po
+%{__rm} po/stamp-po
 
 %{!?with_gnutls:echo 'AC_DEFUN([AM_PATH_LIBGNUTLS],[/bin/true])' > m4/gnutls.m4}
 
@@ -92,10 +96,9 @@ rm -f po/stamp-po
 %{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
-CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
+CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
 %configure \
        --with-modules \
-       --with%{!?with_ssl:out}-ssl \
        --with%{!?with_openssl:out}-openssl \
        --with%{!?with_gnutls:out}-gnutls
 
@@ -109,12 +112,12 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
        DESTDIR=$RPM_BUILD_ROOT
 
 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install contrib/lftp-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/lftp.png
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/lftp.png
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-rm -f $RPM_BUILD_ROOT%{_mandir}/{README.lftp-man-pages,lftpget.diff}
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.lftp-man-pages,lftpget.diff}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.{la,so}
 
 %find_lang %{name}
 
@@ -128,12 +131,16 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lftp.conf
-%attr(755,root,root) %{_bindir}/*
-%dir %{_libdir}/lftp
+%attr(755,root,root) %{_bindir}/lftp
+%attr(755,root,root) %{_bindir}/lftpget
 %attr(755,root,root) %{_libdir}/liblftp*.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblftp*.so.0
+%dir %{_libdir}/lftp
 %attr(755,root,root) %{_libdir}/lftp/*.so
 %attr(755,root,root) %{_datadir}/lftp
-%{_mandir}/man1/*
-%lang(pl) %{_mandir}/pl/man1/*
+%{_mandir}/man1/lftp.1*
+%{_mandir}/man1/lftpget.1*
+%lang(pl) %{_mandir}/pl/man1/lftpget.1*
+%{_mandir}/man5/lftp.conf.5*
 %{_desktopdir}/lftp.desktop
 %{_pixmapsdir}/lftp.png
This page took 0.047 seconds and 4 git commands to generate.