]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp.spec
- 2.4.0
[packages/lftp.git] / lftp.spec
index c30769650569e6773d6dff825bf47409e1110997..2a5f92eec748df6821d08b9f61dd82e41e5a44e0 100644 (file)
--- a/lftp.spec
+++ b/lftp.spec
+#
+# Conditional build:
+# _without_ssl - do not use SSL
+#
 Summary:       Commandline ftp client
 Summary(pl):   Zaawansowany klient ftp
 Name:          lftp
-Version:       1.2.4
-Release:       3
-Group:         Networking/Utilities                                                                                          
-Group(pl):     Sieciowe/Narzêdzia
-Group(pl):     Sieciowe
-Copyright:     GPL
-Source:                ftp://ftp.yars.free.net:/pub/software/unix/net/ftp/client/%{name}-%{version}.tar.gz
+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
-BuildPrereq:   ncurses-devel
-BuildPrereq:   readline-devel
-Buildroot:     /tmp/%{name}-%{version}-root
+URL:           http://ftp.yars.free.net/projects/lftp/
+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)
 
 %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
-background. It will reconnect and reget the file being transferred if the
-connection broke. You can start a transfer in background and continue
-browsing on the ftp site. It does this all in one process. When you have
-started background jobs and feel you are done, you can just exit lftp and it
-automatically moves to nohup mode and completes the transfers. It has also
-such nice features as reput and mirror.
+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
+background. It will reconnect and reget the file being transferred if
+the connection broke. You can start a transfer in background and
+continue browsing on the ftp site. It does this all in one process.
+When you have started background jobs and feel you are done, you can
+just exit lftp and it automatically moves to nohup mode and completes
+the transfers. It has also such nice features as reput and mirror.
 
 %description -l pl
-Lftp jest zaawansowanym klientem ftp. Potrafi automatycznie po³±czyæ siê z 
-serwerem ftp po zerwanym po³±czeniu i dokoñczyæ ¶ci±ganie archiwów. Lftp mo¿e 
-pracowaæ w tle i nie zrywa przy tym po³±czenia po tym jak siê wylogujesz. 
-Program ten honoruje komendy shellowe podczas sesji, np. `ls -al | less` itp. 
-Doskonale siê spisuje jako aplikacja do mirrorowania serwerów FTP.
+Lftp jest zaawansowanym klientem ftp. Potrafi automatycznie po³±czyæ
+siê z serwerem ftp po zerwanym po³±czeniu i dokoñczyæ ¶ci±ganie
+archiwów. Lftp mo¿e pracowaæ w tle i nie zrywa przy tym po³±czenia po
+tym jak siê wylogujesz. Program ten honoruje komendy pow³oki podczas
+sesji, np. `ls -al | less` itp. Doskonale siê spisuje jako aplikacja
+do mirrorowania serwerów FTP.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
-       --prefix=/usr
-make 
+rm missing
+libtoolize --copy --force
+gettextize --copy --force
+aclocal -I m4
+autoconf
+automake -a -c
+CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates"
+%configure \
+       --with-modules \
+       --with%{?_without_ssl:out}-ssl
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
-make prefix=$RPM_BUILD_ROOT/usr install
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install lftp.conf $RPM_BUILD_ROOT/etc
+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
 
-gzip -9fn $RPM_BUILD_ROOT/usr/man/man1/* \
-       README NEWS 
+gzip -9nf README NEWS FAQ FEATURES BUGS ChangeLog TODO
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {README,NEWS}.gz
-
-%attr(755,root,root) /usr/bin/*
-/usr/man/man1/*
-
-%attr(755,root,root) /usr/share/lftp
-
-%lang(es)    /usr/share/locale/es/LC_MESSAGES/lftp.mo
-%lang(ru)    /usr/share/locale/ru/LC_MESSAGES/lftp.mo
-%lang(it)    /usr/share/locale/it/LC_MESSAGES/lftp.mo
-%lang(pt_BR) /usr/share/locale/pt_BR/LC_MESSAGES/lftp.mo
-%lang(pl)    /usr/share/locale/pl/LC_MESSAGES/lftp.mo
-
-%config(noreplace) %verify(not size mtime md5) /etc/lftp.conf
-  [1.2.4-4]
-%changelog
-- more rpm macros,
-- added rpm BuildPrereq rules.
-* Tue Apr 20 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-- removed %requires_pkg (dependences for ncurses is generted automatycally).
-- changed Group to Networking/Utilities,
-- added resdline-devel to BuildPrereq,
-- removed %%requires_pkg (dependences for ncurses is generted automatycally).
-
-* Mon Apr 20 1999 Piotr Czerwiñski <pius@pld.org.pl>
-- recompiled on rpm 3,
-- added %requires_pkg macro and BuildPrereq,
-- replacements in %files.
-
-* Thu Mar 18 1999 Micha³ Kuratczyk <kura@pld.org.pl>
-  [1.2.4-2]
-- gzipping documentation (instead bzipping)
-
-* Tue Feb 23 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.2.4-1]
-- removed man group from man pages,
-- added "Requires: ncurses => 4.2-12" for prevent using lftp with proper
-  version ncurses,
-- removed "rm -rf $RPM_BUILD_ROOT" from %prep,
-- simplification in %files,
-- changed %lang to pt_BR on pt_BR lftp.mo.
-
-* Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- moved %changelog at the end of spec.- build against glibc-2.1,
-- translation modified for pl,
-- moved %changelog at the end of spec.
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lftp/%{version}/*.so
+%attr(755,root,root) %{_datadir}/lftp
+%dir %{_libdir}/lftp
+%dir %{_libdir}/lftp/%{version}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lftp.conf
+%{_mandir}/man1/*
+%doc *.gz
This page took 0.056021 seconds and 4 git commands to generate.