1 # TODO: ngtpc2/nghttp3 or quiche or msh3 for HTTP3?
4 %bcond_without ssh # SSH support
5 %bcond_without ssl # SSL support
6 %bcond_with gnutls # GnuTLS instead of OpenSSL
7 %bcond_without gsasl # SCRAM support with gsasl
8 %bcond_without kerberos5 # Heimdal Kerberos 5 support
9 %bcond_without ldap # LDAP support
10 %bcond_without http2 # HTTP/2.0 support (nghttp2 based)
11 %bcond_with http3 # HTTP/3.0 support (nghttp3/ngtcp2 based)
12 %if "%{pld_release}" != "ac"
13 %bcond_without ares # c-ares (asynchronous DNS operations) library support
14 %bcond_without rtmp # Real Time Media Protocol support
16 %bcond_with ares # c-ares (asynchronous DNS operations) library support
17 %bcond_with rtmp # Real Time Media Protocol support
20 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
21 Summary(es.UTF-8): Un cliente para bajar archivos de servidores (FTP, HTTP, y otros)
22 Summary(pl.UTF-8): Narzędzie do ściągania plików z serwerów (FTP, HTTP i innych)
23 Summary(pt_BR.UTF-8): Busca URL (suporta FTP, TELNET, LDAP, GOPHER, DICT, HTTP e HTTPS)
24 Summary(ru.UTF-8): Утилита для получения файлов с серверов FTP, HTTP и других
25 Summary(uk.UTF-8): Утиліта для отримання файлів з серверів FTP, HTTP та інших
30 Group: Applications/Networking
31 Source0: https://curl.haxx.se/download/%{name}-%{version}.tar.xz
32 # Source0-md5: 6ce66afa416bb11b8f39cc9e059afd5b
33 Patch0: %{name}-ac.patch
34 Patch1: %{name}-krb5flags.patch
36 URL: http://curl.haxx.se/
37 BuildRequires: autoconf >= 2.57
38 BuildRequires: automake
39 %{?with_ares:BuildRequires: c-ares-devel >= 1.17.0}
40 %{?with_gsasl:BuildRequires: gsasl-devel}
41 %{?with_kerberos5:BuildRequires: heimdal-devel}
42 BuildRequires: libbrotli-devel >= 1.0.0
43 BuildRequires: libidn2-devel
44 BuildRequires: libpsl-devel
45 %{?with_rtmp:BuildRequires: librtmp-devel}
46 %{?with_ssh:BuildRequires: libssh2-devel >= 1.2.8}
47 BuildRequires: libtool
48 BuildRequires: nettle-devel
49 %{?with_http2:BuildRequires: nghttp2-devel >= 1.12.0}
50 %{?with_http3:BuildRequires: nghttp3-devel}
51 # with gnutls or openssl crypto, conforming to chosen curl crypto library
52 %{?with_http3:BuildRequires: ngtcp2-devel}
53 %{?with_ldap:BuildRequires: openldap-devel}
54 BuildRequires: pkgconfig
55 BuildRequires: rpm >= 4.4.9-56
56 BuildRequires: rpm-build >= 4.6
57 BuildRequires: rpmbuild(macros) >= 1.527
60 BuildRequires: gnutls-devel >= 3.1.10
62 BuildRequires: openssl-devel >= 1.0.1
65 BuildRequires: tar >= 1:1.22
67 BuildRequires: zlib-devel
68 BuildRequires: zstd-devel
69 Requires: %{name}-libs = %{version}-%{release}
70 Obsoletes: libcurl2 < 7.12
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 cURL is a tool for getting files with URL syntax, supporting FTP,
75 HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. cURL supports HTTP
76 POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies,
77 cookies, user+password authentication and a busload of other useful
78 tricks. The main use for curl is when you want to get or send files
79 automatically to or from a site using one of the supported protocols.
81 cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and
82 Dict servers, using any of the supported protocols. cURL is designed
83 to work without user interaction or any kind of interactivity. cURL
84 offers many useful capabilities, like proxy support, user
85 authentication, FTP upload, HTTP post, and file transfer resume.
87 %description -l pl.UTF-8
88 cURL jest narzędziem do ściągania plików o składni URL. Obsługuje FTP,
89 HTTP, HTTPS, GOPHER, TELNET, DICT, FILE i LDAP. cURL obsługuje również
90 HTTP POST, HTTP PUT, załadowywanie (uploading) FTP, załadowywanie HTTP
91 oparte na formularzu, serwery proksy, ciasteczka, autoryzacja
92 użytkownik/hasło oraz wiele innych użytecznych sztuczek. Curla używa
93 się głównie wtedy, kiedy chce się automatycznie ściągnąć lub wysłać
94 pliki z/na serwer używając jednego z dostępnych protokołów.
95 %{?with_ssl:Ten pakiet obsługuje także SSL.}
97 %description -l pt_BR.UTF-8
98 Curl é um cliente para baixar/enviar arquivos de/para servidores
99 usando um dos protocolos suportados. É projetado para funcionar sem a
100 interação do usuário.
102 Curl trabalha com proxy, autenticação, FTP put, HTTP post, e pode
103 continuar transferências interrompidas, e mais...
105 %description -l ru.UTF-8
106 curl - это клиент с множеством поддерживаемых протоколов для получения
107 файлов с серверов, спроектированный для работы как в неинтерактивном
108 режиме, так и с возможностью диалога с пользователем.
110 curl поддерживает много полезных возможностей, среди которых поддержка
111 прокси, авторизация пользователя, закачивание по FTP, поддержка HTTP
112 POST, восстановление прерванной пересылки и многое другое.
114 curl - це кл╕╓нт з багатьма п╕дтримуваними протоколами для отримання
115 файл╕в з сервер╕в, спроектований для роботи як в не╕нтерактивному
116 режим╕, так ╕ з можлив╕стю д╕алогу з користувачем.
118 curl п╕дтриму╓ багато корисних можливостей, серед яких п╕дтримка
119 прокс╕, авторизац╕я користувача, в╕двантаження по FTP, HTTP POST,
120 в╕дновлення перервано╖ пересилки та багато ╕ншого.
123 Summary: curl library
124 Summary(pl.UTF-8): Biblioteka curl
126 %{?with_ares:Requires: c-ares >= 1.17.0}
127 %{?with_gnutls:Requires: gnutls-libs >= 3.1.10}
128 %{?with_ssh:Requires: libssh2 >= 1.2.8}
129 %{?with_http2:Requires: nghttp2-libs >= 1.12.0}
130 %if %{with ssl} && %{without gnutls}
131 Requires: libbrotli >= 1.0.0
132 Requires: openssl >= 1.0.1
134 Suggests: ca-certificates
135 Conflicts: ca-certificates < 20080809-4
140 %description libs -l pl.UTF-8
144 Summary: Header files and development documentation for curl library
145 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki curl
146 Summary(pt_BR.UTF-8): Arquivos de cabeçalho e bibliotecas de desenvolvimento
147 Summary(ru.UTF-8): Файлы для разработки с использованием библиотеки curl
148 Summary(uk.UTF-8): Файли для розробки з використанням бібліотеки curl
149 Group: Development/Libraries
150 Requires: %{name}-libs = %{version}-%{release}
151 %{?with_ares:Requires: c-ares-devel}
152 %{?with_gsasl:Requires: gsasl-devel}
153 %{?with_kerberos5:Requires: heimdal-devel}
154 Requires: libbrotli-devel >= 1.0.0
155 Requires: libidn2-devel
156 Requires: libpsl-devel
157 %{?with_rtmp:Requires: librtmp-devel}
158 %{?with_ssh:Requires: libssh2-devel >= 1.2.8}
159 %{?with_http2:Requires: nghttp2-devel >= 1.12.0}
160 %{?with_ldap:Requires: openldap-devel}
163 Requires: gnutls-devel >= 3.1.10
165 Requires: openssl-devel >= 0.9.7c
170 Obsoletes: libcurl2-devel < 7.12
173 Header files and development documentation for curl library.
175 %description devel -l pl.UTF-8
176 Pliki nagłówkowe i dokumentacja do biblioteki curl.
178 %description devel -l pt_BR.UTF-8
179 Arquivos de cabeçalho e bibliotecas de desenvolvimento.
181 %description devel -l ru.UTF-8
182 Этот пакет содержит файлы, необходимые для разработки программ с
183 использованием библиотеки curl.
185 %description devel -l uk.UTF-8
186 Цей пакет містить файли, необхідні для розробки програм з
187 використанням бібліотеки curl.
190 Summary: Static version of curl library
191 Summary(pl.UTF-8): Statyczna wersja biblioteki curl
192 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com o curl
193 Summary(ru.UTF-8): Статические библиотеки для разработки с использованием библиотеки curl
194 Summary(uk.UTF-8): Статичні бібліотеки для розробки з використанням бібліотеки curl
195 Group: Development/Libraries
196 Requires: %{name}-devel = %{version}-%{release}
199 Static version of curl library.
201 %description static -l pl.UTF-8
202 Statyczna wersja biblioteki curl.
204 %description static -l pt_BR.UTF-8
205 Bibliotecas estáticas para desenvolvimento com o curl.
207 %description static -l ru.UTF-8
208 Этот пакет содержит статическую библиотеку для разработки программ с
209 использованием библиотеки curl.
211 %description static -l uk.UTF-8
212 Цей пакет містить статичну бібліотеку для розробки програм з
213 використанням бібліотеки curl.
215 %package -n fish-completion-%{name}
216 Summary: Fish completion for curl command
217 Summary(pl.UTF-8): Dopełnianie parametrów w fish dla polecenia curl
218 Group: Applications/Shells
219 Requires: %{name} = %{version}-%{release}
223 %description -n fish-completion-%{name}
224 Fish completion for curl command.
226 %description -n fish-completion-%{name} -l pl.UTF-8
227 Dopełnianie parametrów w fish dla polecenia curl.
229 %package -n zsh-completion-curl
230 Summary: ZSH completion for curl command
231 Summary(pl.UTF-8): Dopełnianianie parametrów w ZSH dla polecenia curl
232 Group: Applications/Shells
233 Requires: %{name} = %{version}-%{release}
237 %description -n zsh-completion-curl
238 ZSH completion for curl command.
240 %description -n zsh-completion-curl -l pl.UTF-8
241 Dopełnianianie parametrów w ZSH dla polecenia curl.
249 %{__rm} m4/lt*.m4 m4/libtool.m4
258 ac_cv_header_gss_h=no \
259 %{__enable_disable ares} \
260 %{__with_without gsasl libgsasl} \
261 --enable-headers-api \
263 %{__enable_disable ldap} \
264 %{__enable_disable ldap ldaps} \
265 --disable-silent-rules \
267 --with-ca-bundle=/etc/certs/ca-certificates.crt \
269 --with-gnutls --without-openssl \
271 --with-openssl=%{_prefix} \
276 --with-fish-functions-dir=%{fish_compdir} \
277 %{__with_without kerberos5 gssapi %{_prefix}} \
278 %{__with_without rtmp librtmp} \
279 %{__with_without http2 nghttp2} \
280 %{__with_without http3 nghttp3} \
281 %{__with_without http3 ngtcp2} \
282 %{__with_without ssh libssh2}
287 rm -rf $RPM_BUILD_ROOT
290 DESTDIR=$RPM_BUILD_ROOT
292 %{__make} -C scripts install \
293 DESTDIR=$RPM_BUILD_ROOT
295 # obsoleted by pkg-config
296 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcurl.la
298 # no longer in upstream but a lot of apps tries to include it so we create fake one
299 [ -e $RPM_BUILD_ROOT%{_includedir}/curl/types.h ] && exit 1
300 echo '#warning curl/types.h IS OBSOLETE FROM 2004. STOP USING IT' > $RPM_BUILD_ROOT%{_includedir}/curl/types.h
303 rm -rf $RPM_BUILD_ROOT
305 %post libs -p /sbin/ldconfig
306 %postun libs -p /sbin/ldconfig
309 %defattr(644,root,root,755)
310 %doc CHANGES COPYING README docs/{BUGS.md,FAQ,FEATURES.md,HISTORY.md,KNOWN_BUGS,SSLCERTS.md,THANKS,TODO,TheArtOfHttpScripting.md}
311 %attr(755,root,root) %{_bindir}/curl
312 %{_mandir}/man1/curl.1*
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libcurl.so.*.*.*
317 %attr(755,root,root) %ghost %{_libdir}/libcurl.so.4
320 %defattr(644,root,root,755)
321 %doc docs/{CONTRIBUTE.md,INTERNALS.md}
322 %attr(755,root,root) %{_bindir}/curl-config
323 %attr(755,root,root) %{_libdir}/libcurl.so
325 %{_pkgconfigdir}/libcurl.pc
326 %{_aclocaldir}/libcurl.m4
327 %{_mandir}/man1/curl-config.1*
328 %{_mandir}/man3/curl_*.3*
329 %{_mandir}/man3/libcurl*.3*
330 %{_mandir}/man3/CURLINFO_*.3*
331 %{_mandir}/man3/CURLOPT_*.3*
332 %{_mandir}/man3/CURLMOPT_*.3*
333 %{_mandir}/man3/CURLSHOPT_*.3*
336 %defattr(644,root,root,755)
339 %files -n fish-completion-%{name}
340 %defattr(644,root,root,755)
341 %{fish_compdir}/curl.fish
343 %files -n zsh-completion-curl
344 %defattr(644,root,root,755)
345 %{_datadir}/zsh/site-functions/_curl