]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- 2.4.0
[packages/lftp.git] / lftp.spec
index 70b6f08cfffebe950713a23a8096c8f53a5bda76..2a5f92eec748df6821d08b9f61dd82e41e5a44e0 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
@@ -1,22 +1,29 @@
+#
+# Conditional build:
+# _without_ssl - do not use SSL
+#
 Summary:       Commandline ftp client
 Summary(pl):   Zaawansowany klient ftp
 Name:          lftp
-Version:       2.3.0
+Version:       2.4.0
 Release:       1
 License:       GPL
 Group:         Applications/Networking
 Group(de):     Applikationen/Netzwerkwesen
 Group(pl):     Aplikacje/Sieciowe
 Source0:       ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/%{name}-%{version}.tar.bz2
+Patch0:                %{name}-OMIT.patch
+Patch1:                %{name}-readline.patch
 Icon:          ftp.gif
 URL:           http://ftp.yars.free.net/projects/lftp/
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: readline-devel >= 4.1
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.2
 BuildRequires: gettext-devel
+BuildRequires: gcc-c++
+BuildRequires: libstdc++-devel
+%{!??_without_ssl:BuildRequires:       openssl-devel >= 0.9.6a}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc
-
 %description
 LFTP is a shell-like command line ftp client. The main two advantages
 over other ftp clients are reliability and ability to perform tasks in
@@ -37,12 +44,20 @@ do mirrorowania serwer
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+rm missing
+libtoolize --copy --force
 gettextize --copy --force
-CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -fno-implicit-templates"
+aclocal -I m4
+autoconf
+automake -a -c
+CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
 %configure \
-       --with-modules
+       --with-modules \
+       --with%{?_without_ssl:out}-ssl
 %{__make}
 
 %install
@@ -52,11 +67,10 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 install lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install src/.libs/proto-ftp.so[A-Z] $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/proto-ftp.so
+install src/.libs/proto-http.so[A-Z] $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/proto-http.so
 
-chmod +x $RPM_BUILD_ROOT%{_libdir}/lftp/*
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       README NEWS
+gzip -9nf README NEWS FAQ FEATURES BUGS ChangeLog TODO
 
 %find_lang %{name}
 
@@ -65,12 +79,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {README,NEWS}.gz
-
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
 %attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_libdir}/lftp/%{version}/*.so
 %attr(755,root,root) %{_datadir}/lftp
-
 %dir %{_libdir}/lftp
-%attr(755,root,root) %{_libdir}/lftp/*.so
+%dir %{_libdir}/lftp/%{version}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
+%{_mandir}/man1/*
+%doc *.gz
This page took 0.049245 seconds and 4 git commands to generate.