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