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