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