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