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