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