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