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