]> git.pld-linux.org Git - packages/wget.git/blame_incremental - wget.spec
disable support for debugging output
[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
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.17.1
21Release: 1
22License: GPL v3+ with OpenSSL exception
23Group: Networking/Utilities
24Source0: http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
25# Source0-md5: b0d58ef4963690e71effba24c105ed52
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.17
38%{?with_gnutls:BuildRequires: gnutls-devel}
39BuildRequires: gpgme-devel >= 0.4.2
40BuildRequires: libidn-devel
41BuildRequires: libmetalink-devel
42BuildRequires: libpsl-devel
43BuildRequires: libuuid-devel
44%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
45BuildRequires: pcre-devel
46BuildRequires: perl-devel
47BuildRequires: tar >= 1:1.22
48BuildRequires: texinfo
49BuildRequires: xz
50BuildRequires: zlib-devel
51%if %{with tests}
52BuildRequires: perl-HTTP-Daemon
53BuildRequires: perl-HTTP-Message
54BuildRequires: perl-IO-Socket-SSL
55BuildRequires: python3-modules >= 1:3.0
56%endif
57Provides: webclient
58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60%define _noautoreqfiles %{_bindir}/rmold
61
62%description
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.
70
71%description -l es.UTF-8
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
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
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
85récupérer des fichiers avec une connexion lente ou instable, le
86support des serveurs Proxy... Wget est particulièrement configurable.
87
88%description -l ja.UTF-8
89GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる
90ファイルを取得するユーティリティです。wget はログアウトしている
91間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
92取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの
93保存と比較、遅く不安定な接続で FTP サーバの Rest と HTTP サーバの
94Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を
95もっています。
96
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ć
104go jako zadanie z crona.
105
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.
111
112%description -l ru.UTF-8
113GNU Wget - это утилита командной строки для получения файлов по
114протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
115режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
116выбор файлов по шаблону, сравнение времени удаленных и локальных
117файлов, сохранение времени удаленных файлов при загрузке,
118использование REST с FTP серверами и Range с HTTP серверами для
119загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
120серверов, конфигурируемость.
121
122%description -l uk.UTF-8
123GNU Wget - це утиліта командного рядка для отримання файлів по
124протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
125режимі коли ви виходите із системи, рекурсивне отримання каталогів,
126вибір файлів по шаблону, порівняння часу віддалених та локальних
127файлів, збереження часу віддалених файлів при завантаженні,
128використання REST з FTP серверами та Range з HTTP серверами для
129завантаження файлів по повільним чи нестабільним каналам, підтримка
130Proxy серверів, настроюваність.
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
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
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}
171tail -n 6 util/README >rmold.README
172
173# 1.13.4 tarball was buggy and produced empty version.
174grep %{version} src/version.c
175
176%{?with_tests:%{__make} check}
177
178%install
179rm -rf $RPM_BUILD_ROOT
180install -d $RPM_BUILD_ROOT%{_sysconfdir}
181
182%{__make} install \
183 DESTDIR=$RPM_BUILD_ROOT \
184 GETTEXT_PACKAGE=wget
185
186install -p util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
187cp -a doc/sample.wgetrc $RPM_BUILD_ROOT%{_sysconfdir}/wgetrc
188
189bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
190%{__rm} $RPM_BUILD_ROOT%{_mandir}/README*
191rm -f $RPM_BUILD_ROOT%{_infodir}/dir
192
193%find_lang %{name}
194
195%clean
196rm -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*
This page took 0.030626 seconds and 4 git commands to generate.