]> git.pld-linux.org Git - packages/wget.git/blame - wget.spec
disable support for debugging output
[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 38%{?with_gnutls:BuildRequires: gnutls-devel}
a6f075ea 39BuildRequires: gpgme-devel >= 0.4.2
3d95b5f9 40BuildRequires: libidn-devel
a6f075ea 41BuildRequires: libmetalink-devel
d884846e 42BuildRequires: libpsl-devel
b583acb7 43BuildRequires: libuuid-devel
3d95b5f9 44%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
b583acb7 45BuildRequires: pcre-devel
71f4e59c 46BuildRequires: perl-devel
499ea7dc 47BuildRequires: tar >= 1:1.22
125b1ab6 48BuildRequires: texinfo
499ea7dc 49BuildRequires: xz
b583acb7 50BuildRequires: zlib-devel
5e669063
AM
51%if %{with tests}
52BuildRequires: perl-HTTP-Daemon
53BuildRequires: perl-HTTP-Message
54BuildRequires: perl-IO-Socket-SSL
142193fd 55BuildRequires: python3-modules >= 1:3.0
5e669063 56%endif
76c11bcd 57Provides: webclient
a64c3ad4 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
505d1a18 59
e31ffa29
JB
60%define _noautoreqfiles %{_bindir}/rmold
61
505d1a18 62%description
50714f99 63GNU Wget is a file retrieval utility which can use either the HTTP or
64FTP protocols. Wget features include the ability to work in the
65background while you're logged out, recursive retrieval of
66directories, file name wildcard matching, remote file timestamp
67storage and comparison, use of Rest with FTP servers and Range with
68HTTP servers to retrieve files over slow or unstable connections,
69support for Proxy servers, and configurability.
505d1a18 70
25fbbd9f 71%description -l es.UTF-8
046f92d2 72GNU wget es una herramienta de red para bajar archivos usando HTTP y
73FTP. Funciona en modo no interactivo, pudiendo trabajar en background.
74Funciona muy bien, incluso en conexiones lentas o inestables, bajando
75el archivo hasta que sea completamente recibido.
76
25fbbd9f
JR
77%description -l fr.UTF-8
78GNU Wget est un utilitaire pour récupérer des fichiers qui peut
79utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
80caractéristiques de Wget, citons la capacité à récupérer des fichiers
81en arrière-plan alors que vous n'êtes pas connecté, la récupération
82récursive de répertoires, la capacité de récupérer des fichiers en
50714f99 83appliquant un filtre sur le nom ou sur la date, la gestion de Rest
84avec les serveurs FTP et de Range avec les serveurs HTTP pour
25fbbd9f
JR
85récupérer des fichiers avec une connexion lente ou instable, le
86support des serveurs Proxy... Wget est particulièrement configurable.
ff914b5b 87
25fbbd9f
JR
88%description -l ja.UTF-8
89GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる
90ファイルを取得するユーティリティです。wget はログアウトしている
91間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
92取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの
93保存と比較、遅く不安定な接続で FTP サーバの Rest と HTTP サーバの
94Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を
95もっています。
046f92d2 96
25fbbd9f
JR
97%description -l pl.UTF-8
98Wget jest klientem FTP/HTTP przeznaczonym do ściągania zasobów
99wsadowo. Umożliwia ściąganie zasobów z podkatalogami, a także ma opcje
100umożliwiające wykonanie lokalnej kopii zasobów (mirror). W razie
101niemożności dostania się do zasobów lub gdy połączenie z serwerem
102FTP/HTTP zostanie zerwane, może automatycznie ponawiać próby
103kopiowania. Jest także dobrze przystosowany do tego, żeby uruchamiać
65f0aada 104go jako zadanie z crona.
505d1a18 105
25fbbd9f
JR
106%description -l pt_BR.UTF-8
107O GNU wget é uma ferramenta de rede para baixar arquivos usando HTTP e
108FTP. Ele funciona em modo não interativo, podendo trabalhar em
109background. Funciona muito bem, mesmo em conexões lentas ou instáveis,
110baixando o arquivo até que ele seja completamente recebido.
046f92d2 111
25fbbd9f
JR
112%description -l ru.UTF-8
113GNU Wget - это утилита командной строки для получения файлов по
114протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
115режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
116выбор файлов по шаблону, сравнение времени удаленных и локальных
117файлов, сохранение времени удаленных файлов при загрузке,
118использование REST с FTP серверами и Range с HTTP серверами для
119загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
120серверов, конфигурируемость.
b09f6398 121
25fbbd9f
JR
122%description -l uk.UTF-8
123GNU Wget - це утиліта командного рядка для отримання файлів по
124протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
125режимі коли ви виходите із системи, рекурсивне отримання каталогів,
126вибір файлів по шаблону, порівняння часу віддалених та локальних
127файлів, збереження часу віддалених файлів при завантаженні,
128використання REST з FTP серверами та Range з HTTP серверами для
129завантаження файлів по повільним чи нестабільним каналам, підтримка
130Proxy серверів, настроюваність.
b09f6398 131
505d1a18 132%prep
871c5d05 133%setup -q
dbbd5f17 134%patch0 -p1
125b1ab6 135%patch1 -p1
c1d40e45 136%patch2 -p1
137%patch3 -p1
4e0229b5 138%patch4 -p1
5e669063 139
3d95b5f9 140%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
c9c57a6c 141
92ef0f28
ER
142# temp hack for 1.13.4
143test -e build-aux/bzr-version-gen || cat <<EOF > build-aux/bzr-version-gen
144#!/bin/sh
145echo -n %{version}
146EOF
147chmod +x build-aux/bzr-version-gen
148
505d1a18 149%build
78b6ce38 150%{__gettextize}
77e21de5 151%{__aclocal} -I m4
e876c0ac 152%{__autoheader}
dc00b296 153%{__autoconf}
3d95b5f9 154%{__automake}
046f92d2 155%configure \
95741643 156 --disable-debug \
e61b32fb 157 --enable-digest \
e61b32fb 158 --enable-ipv6 \
dc0dc0da 159 --enable-iri \
26215e8e
ER
160 --enable-largefile \
161 --enable-nls \
162 --enable-ntlm \
163 --enable-opie \
dc0dc0da 164 --enable-pcre \
26215e8e 165 --with-libpsl \
96d47816 166 --with-metalink \
26215e8e 167 --with-ssl%{!?with_gnutls:=openssl} \
dc0dc0da 168 --with-zlib \
e61b32fb 169 %{nil}
65f0aada 170%{__make}
06f3f94d 171tail -n 6 util/README >rmold.README
505d1a18 172
e788ef92
ER
173# 1.13.4 tarball was buggy and produced empty version.
174grep %{version} src/version.c
175
5e669063
AM
176%{?with_tests:%{__make} check}
177
505d1a18 178%install
179rm -rf $RPM_BUILD_ROOT
8170b297 180install -d $RPM_BUILD_ROOT%{_sysconfdir}
a8497206 181
3f605d31 182%{__make} install \
360350ee 183 DESTDIR=$RPM_BUILD_ROOT \
184 GETTEXT_PACKAGE=wget
b0e89e66 185
58cfde73 186install -p util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
125b1ab6 187cp -a doc/sample.wgetrc $RPM_BUILD_ROOT%{_sysconfdir}/wgetrc
505d1a18 188
0c70ae83 189bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
3d95b5f9 190%{__rm} $RPM_BUILD_ROOT%{_mandir}/README*
125b1ab6 191rm -f $RPM_BUILD_ROOT%{_infodir}/dir
83b5f855 192
c1d81e6b 193%find_lang %{name}
d0fff5cd 194
505d1a18 195%clean
196rm -rf $RPM_BUILD_ROOT
197
932c0ff7 198%post -p /sbin/postshell
5b82f0ab 199-/usr/sbin/fix-info-dir -c %{_infodir}
505d1a18 200
932c0ff7 201%postun -p /sbin/postshell
5b82f0ab 202-/usr/sbin/fix-info-dir -c %{_infodir}
505d1a18 203
c1d81e6b 204%files -f %{name}.lang
cb33e65a 205%defattr(644,root,root,755)
661545e4 206%doc AUTHORS ChangeLog NEWS README MAILING-LIST rmold.README
77e21de5 207%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/%{name}rc
125b1ab6
ER
208%attr(755,root,root) %{_bindir}/rmold
209%attr(755,root,root) %{_bindir}/wget
210%{_mandir}/man1/wget.1*
211%{_mandir}/hu/man1/wget.1*
212%{_mandir}/pl/man1/wget.1*
58cfde73 213%{_infodir}/wget.info*
This page took 0.11657 seconds and 4 git commands to generate.