]> git.pld-linux.org Git - packages/wget.git/blobdiff - wget.spec
- release 2 (by relup.sh)
[packages/wget.git] / wget.spec
index b7a8c04cbe6d0405f8a3e30059263f82e6e46825..90f2de3426e585a804c28e1b47fdafbd39f7d32e 100644 (file)
--- a/wget.spec
+++ b/wget.spec
@@ -1,24 +1,48 @@
+# TODO
+# - add --delete-remote patches:
+#  - http://wget-bugs.ferrara.linux.it/issue9
+#  - or http://osdir.com/ml/web.wget.patches/2005-09/msg00006.html
+# - add http://article.gmane.org/gmane.comp.web.wget.patches/2333
+#
+# Conditional build:
+%bcond_with    gnutls  # use GnuTLS (wget default) instead of OpenSSL
+#
 Summary:       A utility for retrieving files using the HTTP or FTP protocols
-Summary(fr):   Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
-Summary(pl):   Wsadowy klient HTTP/FTP 
+Summary(es.UTF-8):     Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
+Summary(fr.UTF-8):     Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
+Summary(pl.UTF-8):     Wsadowy klient HTTP/FTP
+Summary(pt_BR.UTF-8):  Cliente na linha de comando para baixar arquivos WWW/FTP com recursão opcional
+Summary(ru.UTF-8):     Утилита для получения файлов по протоколам HTTP и FTP
+Summary(uk.UTF-8):     Утиліта для отримання файлів по протоколам HTTP та FTP
+Summary(zh_CN.UTF-8):  [通讯]功能强大的下载程序,支持断点续传
 Name:          wget
-Version:       1.6
-Release:       3
-License:       GPL
+Version:       1.15
+Release:       2
+License:       GPL v3+ with OpenSSL exception
 Group:         Networking/Utilities
-Group(de):     Netzwerkwesen/Werkzeuge
-Group(pl):     Sieciowe/Narzêdzia
-Source0:       ftp://ftp.gnu.org/pub/gnu/wget/%{name}-%{version}.tar.gz
-Source1:       http://cade.8m.com/away/%{name}-new-percentage-3.0.tar.gz
-Source2:       wget.pl.po
-Patch0:                %{name}-man.patch
-Patch1:                %{name}-info.patch
-Patch2:                %{name}-DESTDIR.patch
-Patch3:                http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/%{name}-1.6-ipv6-20010102.patch.gz
-URL:           http://sunsite.dk/wget/
+Source0:       http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
+# Source0-md5: 7a279d5ac5594919124d5526e7143e28
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: d8b2b56ec7461606c22edbafaf8a418f
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-wgetrc_path.patch
+Patch2:                %{name}-home_etc.patch
+Patch3:                %{name}-ssl-certs.patch
+URL:           http://www.gnu.org/software/wget/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.9
+BuildRequires: gettext-devel >= 0.17
+%{?with_gnutls:BuildRequires:  gnutls-devel}
+BuildRequires: libidn-devel
+%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
+BuildRequires: perl-devel
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo
+BuildRequires: xz
+Provides:      webclient
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        _sysconfdir     /etc
+%define                _noautoreqfiles         %{_bindir}/rmold
 
 %description
 GNU Wget is a file retrieval utility which can use either the HTTP or
@@ -29,25 +53,66 @@ storage and comparison, use of Rest with FTP servers and Range with
 HTTP servers to retrieve files over slow or unstable connections,
 support for Proxy servers, and configurability.
 
-%description -l fr
-GNU Wget est un utilitaire pour récupérer des fichiers qui peut
-utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
-caractéristiques de Wget, citons la capacité à récupérer des fichiers
-en arrière-plan alors que vous n'êtes pas connecté, la récupération
-récursive de répertoires, la capacité de récupérer des fichiers en
+%description -l es.UTF-8
+GNU wget es una herramienta de red para bajar archivos usando HTTP y
+FTP. Funciona en modo no interactivo, pudiendo trabajar en background.
+Funciona muy bien, incluso en conexiones lentas o inestables, bajando
+el archivo hasta que sea completamente recibido.
+
+%description -l fr.UTF-8
+GNU Wget est un utilitaire pour récupérer des fichiers qui peut
+utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
+caractéristiques de Wget, citons la capacité à récupérer des fichiers
+en arrière-plan alors que vous n'êtes pas connecté, la récupération
+récursive de répertoires, la capacité de récupérer des fichiers en
 appliquant un filtre sur le nom ou sur la date, la gestion de Rest
 avec les serveurs FTP et de Range avec les serveurs HTTP pour
-récupérer des fichiers avec une connexion lente ou instable, le
-support des serveurs Proxy... Wget est particulièrement configurable.
-
-%description -l pl
-Wget jest klientem FTP/HTTP przeznaczonym do ¶ci±gania zasobów
-wsadowo. Umo¿liwia ¶ci±ganie zasobów z podkatalogami, a tak¿e ma opcje
-umo¿liwiaj±ce wykonanie lokalnej kopii zasobów (mirror). W razie
-niemo¿no¶ci dostania siê do zasobów lub gdy po³±czenie z serwerem
-FTP/HTTP zostanie zerwane, mo¿e automatycznie ponawiaæ próby
-kopiowania. Jest tak¿e dobrze przystosowany do tego, ¿eby uruchamiaæ
-go jako zadanie z cron'a.
+récupérer des fichiers avec une connexion lente ou instable, le
+support des serveurs Proxy... Wget est particulièrement configurable.
+
+%description -l ja.UTF-8
+GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる
+ファイルを取得するユーティリティです。wget はログアウトしている
+間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
+取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの
+保存と比較、遅く不安定な接続で FTP サーバの Rest と HTTP サーバの
+Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を
+もっています。
+
+%description -l pl.UTF-8
+Wget jest klientem FTP/HTTP przeznaczonym do ściągania zasobów
+wsadowo. Umożliwia ściąganie zasobów z podkatalogami, a także ma opcje
+umożliwiające wykonanie lokalnej kopii zasobów (mirror). W razie
+niemożności dostania się do zasobów lub gdy połączenie z serwerem
+FTP/HTTP zostanie zerwane, może automatycznie ponawiać próby
+kopiowania. Jest także dobrze przystosowany do tego, żeby uruchamiać
+go jako zadanie z crona.
+
+%description -l pt_BR.UTF-8
+O GNU wget é uma ferramenta de rede para baixar arquivos usando HTTP e
+FTP. Ele funciona em modo não interativo, podendo trabalhar em
+background. Funciona muito bem, mesmo em conexões lentas ou instáveis,
+baixando o arquivo até que ele seja completamente recebido.
+
+%description -l ru.UTF-8
+GNU Wget - это утилита командной строки для получения файлов по
+протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
+режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
+выбор файлов по шаблону, сравнение времени удаленных и локальных
+файлов, сохранение времени удаленных файлов при загрузке,
+использование REST с FTP серверами и Range с HTTP серверами для
+загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
+серверов, конфигурируемость.
+
+%description -l uk.UTF-8
+GNU Wget - це утиліта командного рядка для отримання файлів по
+протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
+режимі коли ви виходите із системи, рекурсивне отримання каталогів,
+вибір файлів по шаблону, порівняння часу віддалених та локальних
+файлів, збереження часу віддалених файлів при завантаженні,
+використання REST з FTP серверами та Range з HTTP серверами для
+завантаження файлів по повільним чи нестабільним каналам, підтримка
+Proxy серверів, настроюваність.
 
 %prep
 %setup -q
@@ -55,48 +120,62 @@ go jako zadanie z cron'a.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-install %{SOURCE2} po/pl.po
-tar xzf %{SOURCE1}
-cd src
-mv -f ../wget-new-percentage/wget-new-percentage.c .
-patch retr.c < ../wget-new-percentage/wget-new-percentage.diff
+%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
+
+# temp hack for 1.13.4
+test -e build-aux/bzr-version-gen || cat <<EOF > build-aux/bzr-version-gen
+#!/bin/sh
+echo -n %{version}
+EOF
+chmod +x build-aux/bzr-version-gen
 
 %build
-autoconf
-autoheader
-%configure --enable-ipv6
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure \
+       --with-ssl%{!?with_gnutls:=openssl}
 %{__make}
-tail -6 util/README >rmold.README
+tail -6 util/README >rmold.README
 
-(cd doc; makeinfo --force %{name}.texi; touch *)
+# 1.13.4 tarball was buggy and produced empty version.
+grep %{version} src/version.c
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-install util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       GETTEXT_PACKAGE=wget
 
-mv -f wget-new-percentage/README README-new_percent
+install -p util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
+cp -a doc/sample.wgetrc        $RPM_BUILD_ROOT%{_sysconfdir}/wgetrc
 
-gzip -9nf AUTHORS ChangeLog NEWS TODO README MAILING-LIST rmold.README \
-       README-new_percent
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/README*
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
 %find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
-%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}rc
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%{_infodir}/*.info*
+%doc AUTHORS ChangeLog NEWS README MAILING-LIST rmold.README
+%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/%{name}rc
+%attr(755,root,root) %{_bindir}/rmold
+%attr(755,root,root) %{_bindir}/wget
+%{_mandir}/man1/wget.1*
+%{_mandir}/hu/man1/wget.1*
+%{_mandir}/pl/man1/wget.1*
+%{_infodir}/wget.info*
This page took 0.040213 seconds and 4 git commands to generate.