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