]> git.pld-linux.org Git - packages/wget.git/blame - wget.spec
up to 1.17.1
[packages/wget.git] / wget.spec
CommitLineData
c3c2be65
ER
1# TODO
2# - add --delete-remote patches:
3# - http://wget-bugs.ferrara.linux.it/issue9
4# - or http://osdir.com/ml/web.wget.patches/2005-09/msg00006.html
2807ff1b 5# - add http://article.gmane.org/gmane.comp.web.wget.patches/2333
3d95b5f9
JB
6#
7# Conditional build:
5e669063 8%bcond_without tests
3d95b5f9 9%bcond_with gnutls # use GnuTLS (wget default) instead of OpenSSL
9a092d10 10
ff914b5b 11Summary: A utility for retrieving files using the HTTP or FTP protocols
94525471
ER
12Summary(es.UTF-8): Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
13Summary(fr.UTF-8): Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
14Summary(pl.UTF-8): Wsadowy klient HTTP/FTP
15Summary(pt_BR.UTF-8): Cliente na linha de comando para baixar arquivos WWW/FTP com recursão opcional
16Summary(ru.UTF-8): Утилита для получения файлов по протоколам HTTP и FTP
17Summary(uk.UTF-8): Утиліта для отримання файлів по протоколам HTTP та FTP
18Summary(zh_CN.UTF-8): [通讯]功能强大的下载程序,支持断点续传
e7b5b8d7 19Name: wget
60e150e8
ER
20Version: 1.17.1
21Release: 1
58cfde73 22License: GPL v3+ with OpenSSL exception
e7b5b8d7 23Group: Networking/Utilities
7470d5b0 24Source0: http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
60e150e8 25# Source0-md5: b0d58ef4963690e71effba24c105ed52
0c70ae83 26Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27# Source1-md5: d8b2b56ec7461606c22edbafaf8a418f
8170b297 28Patch0: %{name}-info.patch
7470d5b0
AM
29Patch1: %{name}-wgetrc_path.patch
30Patch2: %{name}-home_etc.patch
31Patch3: %{name}-ssl-certs.patch
4e0229b5 32Patch4: user.xdg.origin.url.patch
df05581b 33URL: http://www.gnu.org/software/wget/
722521f0 34BuildRequires: attr-devel
58cfde73
JB
35BuildRequires: autoconf >= 2.61
36BuildRequires: automake >= 1:1.9
a4ba0278 37BuildRequires: gettext-tools >= 0.17
3d95b5f9
JB
38%{?with_gnutls:BuildRequires: gnutls-devel}
39BuildRequires: libidn-devel
d884846e 40BuildRequires: libpsl-devel
b583acb7 41BuildRequires: libuuid-devel
3d95b5f9 42%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
b583acb7 43BuildRequires: pcre-devel
71f4e59c 44BuildRequires: perl-devel
499ea7dc 45BuildRequires: tar >= 1:1.22
125b1ab6 46BuildRequires: texinfo
499ea7dc 47BuildRequires: xz
b583acb7 48BuildRequires: zlib-devel
5e669063
AM
49%if %{with tests}
50BuildRequires: perl-HTTP-Daemon
51BuildRequires: perl-HTTP-Message
52BuildRequires: perl-IO-Socket-SSL
142193fd 53BuildRequires: python3-modules >= 1:3.0
5e669063 54%endif
76c11bcd 55Provides: webclient
a64c3ad4 56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
505d1a18 57
e31ffa29
JB
58%define _noautoreqfiles %{_bindir}/rmold
59
505d1a18 60%description
50714f99 61GNU Wget is a file retrieval utility which can use either the HTTP or
62FTP protocols. Wget features include the ability to work in the
63background while you're logged out, recursive retrieval of
64directories, file name wildcard matching, remote file timestamp
65storage and comparison, use of Rest with FTP servers and Range with
66HTTP servers to retrieve files over slow or unstable connections,
67support for Proxy servers, and configurability.
505d1a18 68
25fbbd9f 69%description -l es.UTF-8
046f92d2 70GNU wget es una herramienta de red para bajar archivos usando HTTP y
71FTP. Funciona en modo no interactivo, pudiendo trabajar en background.
72Funciona muy bien, incluso en conexiones lentas o inestables, bajando
73el archivo hasta que sea completamente recibido.
74
25fbbd9f
JR
75%description -l fr.UTF-8
76GNU Wget est un utilitaire pour récupérer des fichiers qui peut
77utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
78caractéristiques de Wget, citons la capacité à récupérer des fichiers
79en arrière-plan alors que vous n'êtes pas connecté, la récupération
80récursive de répertoires, la capacité de récupérer des fichiers en
50714f99 81appliquant un filtre sur le nom ou sur la date, la gestion de Rest
82avec les serveurs FTP et de Range avec les serveurs HTTP pour
25fbbd9f
JR
83récupérer des fichiers avec une connexion lente ou instable, le
84support des serveurs Proxy... Wget est particulièrement configurable.
ff914b5b 85
25fbbd9f
JR
86%description -l ja.UTF-8
87GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる
88ファイルを取得するユーティリティです。wget はログアウトしている
89間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
90取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの
91保存と比較、遅く不安定な接続で FTP サーバの Rest と HTTP サーバの
92Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を
93もっています。
046f92d2 94
25fbbd9f
JR
95%description -l pl.UTF-8
96Wget jest klientem FTP/HTTP przeznaczonym do ściągania zasobów
97wsadowo. Umożliwia ściąganie zasobów z podkatalogami, a także ma opcje
98umożliwiające wykonanie lokalnej kopii zasobów (mirror). W razie
99niemożności dostania się do zasobów lub gdy połączenie z serwerem
100FTP/HTTP zostanie zerwane, może automatycznie ponawiać próby
101kopiowania. Jest także dobrze przystosowany do tego, żeby uruchamiać
65f0aada 102go jako zadanie z crona.
505d1a18 103
25fbbd9f
JR
104%description -l pt_BR.UTF-8
105O GNU wget é uma ferramenta de rede para baixar arquivos usando HTTP e
106FTP. Ele funciona em modo não interativo, podendo trabalhar em
107background. Funciona muito bem, mesmo em conexões lentas ou instáveis,
108baixando o arquivo até que ele seja completamente recebido.
046f92d2 109
25fbbd9f
JR
110%description -l ru.UTF-8
111GNU Wget - это утилита командной строки для получения файлов по
112протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
113режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
114выбор файлов по шаблону, сравнение времени удаленных и локальных
115файлов, сохранение времени удаленных файлов при загрузке,
116использование REST с FTP серверами и Range с HTTP серверами для
117загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
118серверов, конфигурируемость.
b09f6398 119
25fbbd9f
JR
120%description -l uk.UTF-8
121GNU Wget - це утиліта командного рядка для отримання файлів по
122протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
123режимі коли ви виходите із системи, рекурсивне отримання каталогів,
124вибір файлів по шаблону, порівняння часу віддалених та локальних
125файлів, збереження часу віддалених файлів при завантаженні,
126використання REST з FTP серверами та Range з HTTP серверами для
127завантаження файлів по повільним чи нестабільним каналам, підтримка
128Proxy серверів, настроюваність.
b09f6398 129
505d1a18 130%prep
871c5d05 131%setup -q
dbbd5f17 132%patch0 -p1
125b1ab6 133%patch1 -p1
c1d40e45 134%patch2 -p1
135%patch3 -p1
4e0229b5 136%patch4 -p1
5e669063 137
3d95b5f9 138%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
c9c57a6c 139
92ef0f28
ER
140# temp hack for 1.13.4
141test -e build-aux/bzr-version-gen || cat <<EOF > build-aux/bzr-version-gen
142#!/bin/sh
143echo -n %{version}
144EOF
145chmod +x build-aux/bzr-version-gen
146
505d1a18 147%build
78b6ce38 148%{__gettextize}
77e21de5 149%{__aclocal} -I m4
e876c0ac 150%{__autoheader}
dc00b296 151%{__autoconf}
3d95b5f9 152%{__automake}
046f92d2 153%configure \
3d95b5f9 154 --with-ssl%{!?with_gnutls:=openssl}
65f0aada 155%{__make}
06f3f94d 156tail -n 6 util/README >rmold.README
505d1a18 157
e788ef92
ER
158# 1.13.4 tarball was buggy and produced empty version.
159grep %{version} src/version.c
160
5e669063
AM
161%{?with_tests:%{__make} check}
162
505d1a18 163%install
164rm -rf $RPM_BUILD_ROOT
8170b297 165install -d $RPM_BUILD_ROOT%{_sysconfdir}
a8497206 166
3f605d31 167%{__make} install \
360350ee 168 DESTDIR=$RPM_BUILD_ROOT \
169 GETTEXT_PACKAGE=wget
b0e89e66 170
58cfde73 171install -p util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
125b1ab6 172cp -a doc/sample.wgetrc $RPM_BUILD_ROOT%{_sysconfdir}/wgetrc
505d1a18 173
0c70ae83 174bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
3d95b5f9 175%{__rm} $RPM_BUILD_ROOT%{_mandir}/README*
125b1ab6 176rm -f $RPM_BUILD_ROOT%{_infodir}/dir
83b5f855 177
c1d81e6b 178%find_lang %{name}
d0fff5cd 179
505d1a18 180%clean
181rm -rf $RPM_BUILD_ROOT
182
932c0ff7 183%post -p /sbin/postshell
5b82f0ab 184-/usr/sbin/fix-info-dir -c %{_infodir}
505d1a18 185
932c0ff7 186%postun -p /sbin/postshell
5b82f0ab 187-/usr/sbin/fix-info-dir -c %{_infodir}
505d1a18 188
c1d81e6b 189%files -f %{name}.lang
cb33e65a 190%defattr(644,root,root,755)
661545e4 191%doc AUTHORS ChangeLog NEWS README MAILING-LIST rmold.README
77e21de5 192%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/%{name}rc
125b1ab6
ER
193%attr(755,root,root) %{_bindir}/rmold
194%attr(755,root,root) %{_bindir}/wget
195%{_mandir}/man1/wget.1*
196%{_mandir}/hu/man1/wget.1*
197%{_mandir}/pl/man1/wget.1*
58cfde73 198%{_infodir}/wget.info*
This page took 0.119602 seconds and 4 git commands to generate.