2 %bcond_without tests # check target
3 %bcond_with gnutls # use GnuTLS (wget default) instead of OpenSSL
5 Summary: A utility for retrieving files using the HTTP or FTP protocols
6 Summary(es.UTF-8): Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
7 Summary(fr.UTF-8): Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
8 Summary(pl.UTF-8): Wsadowy klient HTTP/FTP
9 Summary(pt_BR.UTF-8): Cliente na linha de comando para baixar arquivos WWW/FTP com recursão opcional
10 Summary(ru.UTF-8): Утилита для получения файлов по протоколам HTTP и FTP
11 Summary(uk.UTF-8): Утиліта для отримання файлів по протоколам HTTP та FTP
12 Summary(zh_CN.UTF-8): [通讯]功能强大的下载程序,支持断点续传
16 License: GPL v3+ with OpenSSL exception
17 Group: Networking/Utilities
18 Source0: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
19 # Source0-md5: a611727632b4d81cb894621ce01a435d
20 URL: http://www.gnu.org/software/wget/
21 BuildRequires: bzip2-devel
22 BuildRequires: doxygen
23 # >= 3.6.3 for TLSv1.3
24 %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0.16}
25 BuildRequires: gpgme-devel
26 BuildRequires: libbrotli-devel
27 BuildRequires: libhsts-devel
28 BuildRequires: libidn2-devel
29 BuildRequires: libmicrohttpd-devel
30 BuildRequires: libpsl-devel >= 0.16.0
31 BuildRequires: nghttp2-devel
32 # >= 1.1.0 for TLSv1.3
33 %{!?with_gnutls:BuildRequires: openssl-devel >= 1.0.1}
35 BuildRequires: pcre2-8-devel
36 BuildRequires: pkgconfig
37 BuildRequires: tar >= 1:1.22
38 BuildRequires: xz-devel
39 BuildRequires: zlib-devel
40 BuildRequires: zstd-devel
41 %{?with_gnutls:Requires: gnutls-libs >= 3.0.16}
42 Requires: libpsl >= 0.16.0
43 Requires: libwget2 = %{version}-%{release}
44 %{!?with_gnutls:Requires: openssl >= 1.0.1}
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define _noautoreqfiles %{_bindir}/rmold
51 GNU Wget is a file retrieval utility which can use either the HTTP or
52 FTP protocols. Wget features include the ability to work in the
53 background while you're logged out, recursive retrieval of
54 directories, file name wildcard matching, remote file timestamp
55 storage and comparison, use of Rest with FTP servers and Range with
56 HTTP servers to retrieve files over slow or unstable connections,
57 support for Proxy servers, and configurability.
59 %description -l es.UTF-8
60 GNU wget es una herramienta de red para bajar archivos usando HTTP y
61 FTP. Funciona en modo no interactivo, pudiendo trabajar en background.
62 Funciona muy bien, incluso en conexiones lentas o inestables, bajando
63 el archivo hasta que sea completamente recibido.
65 %description -l fr.UTF-8
66 GNU Wget est un utilitaire pour récupérer des fichiers qui peut
67 utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
68 caractéristiques de Wget, citons la capacité à récupérer des fichiers
69 en arrière-plan alors que vous n'êtes pas connecté, la récupération
70 récursive de répertoires, la capacité de récupérer des fichiers en
71 appliquant un filtre sur le nom ou sur la date, la gestion de Rest
72 avec les serveurs FTP et de Range avec les serveurs HTTP pour
73 récupérer des fichiers avec une connexion lente ou instable, le
74 support des serveurs Proxy... Wget est particulièrement configurable.
76 %description -l ja.UTF-8
77 GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる ファイルを取得するユーティリティです。wget
78 はログアウトしている 間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
79 取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの 保存と比較、遅く不安定な接続で FTP サーバの Rest と
80 HTTP サーバの Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を もっています。
82 %description -l pl.UTF-8
83 Wget jest klientem FTP/HTTP przeznaczonym do ściągania zasobów
84 wsadowo. Umożliwia ściąganie zasobów z podkatalogami, a także ma opcje
85 umożliwiające wykonanie lokalnej kopii zasobów (mirror). W razie
86 niemożności dostania się do zasobów lub gdy połączenie z serwerem
87 FTP/HTTP zostanie zerwane, może automatycznie ponawiać próby
88 kopiowania. Jest także dobrze przystosowany do tego, żeby uruchamiać
89 go jako zadanie z crona.
91 %description -l pt_BR.UTF-8
92 O GNU wget é uma ferramenta de rede para baixar arquivos usando HTTP e
93 FTP. Ele funciona em modo não interativo, podendo trabalhar em
94 background. Funciona muito bem, mesmo em conexões lentas ou instáveis,
95 baixando o arquivo até que ele seja completamente recebido.
97 %description -l ru.UTF-8
98 GNU Wget - это утилита командной строки для получения файлов по
99 протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
100 режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
101 выбор файлов по шаблону, сравнение времени удаленных и локальных
102 файлов, сохранение времени удаленных файлов при загрузке,
103 использование REST с FTP серверами и Range с HTTP серверами для
104 загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
105 серверов, конфигурируемость.
107 %description -l uk.UTF-8
108 GNU Wget - це утиліта командного рядка для отримання файлів по
109 протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
110 режимі коли ви виходите із системи, рекурсивне отримання каталогів,
111 вибір файлів по шаблону, порівняння часу віддалених та локальних
112 файлів, збереження часу віддалених файлів при завантаженні,
113 використання REST з FTP серверами та Range з HTTP серверами для
114 завантаження файлів по повільним чи нестабільним каналам, підтримка
115 Proxy серверів, настроюваність.
118 Summary: Library that provides the basic functions needed by a web client
122 %description -n libwget2
123 Library that provides the basic functions needed by a web client.
125 %package -n libwget2-devel
126 Summary: Header files for wget2 library
127 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki wget2
129 Group: Development/Libraries
130 Requires: libwget2 = %{version}-%{release}
132 %description -n libwget2-devel
133 Header files for wget2 library.
135 %description -n libwget2-devel -l pl.UTF-8
136 Pliki nagłówkowe biblioteki wget2.
138 %package -n libwget2-static
139 Summary: Static wget2 library
140 Summary(pl.UTF-8): Statyczna biblioteka wget2
142 Group: Development/Libraries
143 Requires: libwget2-devel = %{version}-%{release}
145 %description -n libwget2-static
146 Static wget2 library.
148 %description -n libwget2-static -l pl.UTF-8
149 Statyczna biblioteka wget2.
157 --with-linux-crypto \
158 %{!?with_gnutls:--with-openssl=yes} \
159 --with-ssl%{!?with_gnutls:=openssl} \
169 --with-libmicrohttpd \
170 --with-plugin-support \
171 --disable-silent-rules \
175 %{?with_tests:%{__make} check}
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT%{_sysconfdir}
182 DESTDIR=$RPM_BUILD_ROOT
184 rm $RPM_BUILD_ROOT%{_bindir}/wget2_noinstall
188 %post -n libwget2 -p /sbin/ldconfig
189 %postun -n libwget2 -p /sbin/ldconfig
192 rm -rf $RPM_BUILD_ROOT
194 %files -f %{name}.lang
195 %defattr(644,root,root,755)
196 %doc AUTHORS ChangeLog NEWS README.md
197 %attr(755,root,root) %{_bindir}/wget2
198 %{_mandir}/man1/wget2.1*
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libwget.so.*.*
203 %attr(755,root,root) %ghost %{_libdir}/libwget.so.0
205 %files -n libwget2-devel
206 %defattr(644,root,root,755)
207 %{_includedir}/wget.h
208 %{_includedir}/wgetver.h
209 %{_mandir}/man3/libwget*.3*
210 %{_pkgconfigdir}/libwget.pc
211 %{_libdir}/libwget.la
212 %attr(755,root,root) %{_libdir}/libwget.so
214 %files -n libwget2-static
215 %defattr(644,root,root,755)