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