]> git.pld-linux.org Git - packages/wget2.git/blob - wget2.spec
rebuild with openssl 3.0.0
[packages/wget2.git] / wget2.spec
1 # Conditional build:
2 %bcond_without  tests   # check target
3 %bcond_with     gnutls  # use GnuTLS (wget default) instead of OpenSSL
4 %bcond_with     pandoc  # build man with pandoc
5
6 Summary:        A utility for retrieving files using the HTTP or FTP protocols
7 Summary(es.UTF-8):      Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
8 Summary(fr.UTF-8):      Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
9 Summary(pl.UTF-8):      Wsadowy klient HTTP/FTP
10 Summary(pt_BR.UTF-8):   Cliente na linha de comando para baixar arquivos WWW/FTP com recursão opcional
11 Summary(ru.UTF-8):      Утилита для получения файлов по протоколам HTTP и FTP
12 Summary(uk.UTF-8):      Утиліта для отримання файлів по протоколам HTTP та FTP
13 Summary(zh_CN.UTF-8):   [通讯]功能强大的下载程序,支持断点续传
14 Name:           wget2
15 Version:        1.99.2
16 Release:        3
17 License:        GPL v3+ with OpenSSL exception
18 Group:          Networking/Utilities
19 Source0:        https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
20 # Source0-md5:  a611727632b4d81cb894621ce01a435d
21 URL:            http://www.gnu.org/software/wget/
22 BuildRequires:  bzip2-devel
23 BuildRequires:  doxygen
24 # >= 3.6.3 for TLSv1.3
25 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0.16}
26 BuildRequires:  gpgme-devel
27 BuildRequires:  libbrotli-devel
28 BuildRequires:  libhsts-devel
29 BuildRequires:  libidn2-devel
30 BuildRequires:  libmicrohttpd-devel
31 BuildRequires:  libpsl-devel >= 0.16.0
32 BuildRequires:  nghttp2-devel
33 # >= 1.1.0 for TLSv1.3
34 %{!?with_gnutls:BuildRequires:  openssl-devel >= 1.0.1}
35 %{?with_pandoc:BuildRequires:   pandoc}
36 BuildRequires:  pcre2-8-devel
37 BuildRequires:  pkgconfig
38 BuildRequires:  tar >= 1:1.22
39 BuildRequires:  xz-devel
40 BuildRequires:  zlib-devel
41 BuildRequires:  zstd-devel
42 %{?with_gnutls:Requires:        gnutls-libs >= 3.0.16}
43 Requires:       libpsl >= 0.16.0
44 Requires:       libwget2 = %{version}-%{release}
45 %{!?with_gnutls:Requires:       openssl >= 1.0.1}
46 Provides:       webclient
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %define         _noautoreqfiles         %{_bindir}/rmold
50
51 %description
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.
59
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.
65
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.
76
77 %description -l ja.UTF-8
78 GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる ファイルを取得するユーティリティです。wget
79 はログアウトしている 間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
80 取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの 保存と比較、遅く不安定な接続で FTP サーバの Rest と
81 HTTP サーバの Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を もっています。
82
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.
91
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.
97
98 %description -l ru.UTF-8
99 GNU Wget - это утилита командной строки для получения файлов по
100 протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
101 режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
102 выбор файлов по шаблону, сравнение времени удаленных и локальных
103 файлов, сохранение времени удаленных файлов при загрузке,
104 использование REST с FTP серверами и Range с HTTP серверами для
105 загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
106 серверов, конфигурируемость.
107
108 %description -l uk.UTF-8
109 GNU Wget - це утиліта командного рядка для отримання файлів по
110 протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
111 режимі коли ви виходите із системи, рекурсивне отримання каталогів,
112 вибір файлів по шаблону, порівняння часу віддалених та локальних
113 файлів, збереження часу віддалених файлів при завантаженні,
114 використання REST з FTP серверами та Range з HTTP серверами для
115 завантаження файлів по повільним чи нестабільним каналам, підтримка
116 Proxy серверів, настроюваність.
117
118 %package -n libwget2
119 Summary:        Library that provides the basic functions needed by a web client
120 License:        LGPL v3+
121 Group:          Libraries
122
123 %description -n libwget2
124 Library that provides the basic functions needed by a web client.
125
126 %package -n libwget2-devel
127 Summary:        Header files for wget2 library
128 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki wget2
129 License:        LGPL v3+
130 Group:          Development/Libraries
131 Requires:       libwget2 = %{version}-%{release}
132
133 %description -n libwget2-devel
134 Header files for wget2 library.
135
136 %description -n libwget2-devel -l pl.UTF-8
137 Pliki nagłówkowe biblioteki wget2.
138
139 %package -n libwget2-static
140 Summary:        Static wget2 library
141 Summary(pl.UTF-8):      Statyczna biblioteka wget2
142 License:        LGPL v3+
143 Group:          Development/Libraries
144 Requires:       libwget2-devel = %{version}-%{release}
145
146 %description -n libwget2-static
147 Static wget2 library.
148
149 %description -n libwget2-static -l pl.UTF-8
150 Statyczna biblioteka wget2.
151
152 %prep
153 %setup -q
154
155 %build
156 %configure \
157         LDCONFIG=true \
158         --with-linux-crypto \
159         %{!?with_gnutls:--with-openssl=yes} \
160         --with-ssl%{!?with_gnutls:=openssl} \
161         --with-libpsl \
162         --with-libhsts \
163         --with-libnghttp2 \
164         --with-bzip2 \
165         --with-gpgme \
166         --with-zlib \
167         --with-lzma \
168         --with-libidn2 \
169         --with-libpcre2 \
170         --with-libmicrohttpd \
171         --with-plugin-support \
172         --disable-silent-rules \
173         %{nil}
174 %{__make}
175
176 %{?with_tests:%{__make} check}
177
178 %install
179 rm -rf $RPM_BUILD_ROOT
180 install -d $RPM_BUILD_ROOT%{_sysconfdir}
181
182 %{__make} install \
183         DESTDIR=$RPM_BUILD_ROOT
184
185 rm $RPM_BUILD_ROOT%{_bindir}/wget2_noinstall
186
187 %if %{without pandoc}
188 install -d $RPM_BUILD_ROOT%{_mandir}/man1
189 cp -p docs/man/man1/wget2.1 $RPM_BUILD_ROOT%{_mandir}/man1
190 %endif
191
192 %find_lang %{name}
193
194 %post -n libwget2 -p /sbin/ldconfig
195 %postun -n libwget2 -p /sbin/ldconfig
196
197 %clean
198 rm -rf $RPM_BUILD_ROOT
199
200 %files -f %{name}.lang
201 %defattr(644,root,root,755)
202 %doc AUTHORS ChangeLog NEWS README.md
203 %attr(755,root,root) %{_bindir}/wget2
204 %{_mandir}/man1/wget2.1*
205
206 %files -n libwget2
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/libwget.so.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libwget.so.0
210
211 %files -n libwget2-devel
212 %defattr(644,root,root,755)
213 %{_includedir}/wget.h
214 %{_includedir}/wgetver.h
215 %{_mandir}/man3/libwget*.3*
216 %{_pkgconfigdir}/libwget.pc
217 %{_libdir}/libwget.la
218 %attr(755,root,root) %{_libdir}/libwget.so
219
220 %files -n libwget2-static
221 %defattr(644,root,root,755)
222 %{_libdir}/libwget.a
This page took 0.122711 seconds and 4 git commands to generate.