]>
Commit | Line | Data |
---|---|---|
8a9e937b | 1 | # TODO: ngtpc2/nghttp3 when ready (packages released, support working in curl) |
195ea5a8 JB |
2 | # |
3 | # Conditional build: | |
358ad66a JB |
4 | %bcond_without ssh # SSH support |
5 | %bcond_without ssl # SSL support | |
6 | %bcond_with gnutls # GnuTLS instead of OpenSSL | |
7 | %bcond_without kerberos5 # Heimdal Kerberos 5 support | |
8 | %bcond_without ldap # LDAP support | |
8424568c | 9 | %bcond_without http2 # HTTP/2.0 support (nghttp2 based) |
358ad66a | 10 | %bcond_without metalink # metalink support |
de17b215 | 11 | %if "%{pld_release}" != "ac" |
358ad66a JB |
12 | %bcond_without ares # c-ares (asynchronous DNS operations) library support |
13 | %bcond_without rtmp # Real Time Media Protocol support | |
de17b215 | 14 | %else |
358ad66a JB |
15 | %bcond_with ares # c-ares (asynchronous DNS operations) library support |
16 | %bcond_with rtmp # Real Time Media Protocol support | |
de17b215 ER |
17 | %endif |
18 | ||
f7f276d9 | 19 | Summary: A utility for getting files from remote servers (FTP, HTTP, and others) |
ce380d80 ER |
20 | Summary(es.UTF-8): Un cliente para bajar archivos de servidores (FTP, HTTP, y otros) |
21 | Summary(pl.UTF-8): Narzędzie do ściągania plików z serwerów (FTP, HTTP i innych) | |
22 | Summary(pt_BR.UTF-8): Busca URL (suporta FTP, TELNET, LDAP, GOPHER, DICT, HTTP e HTTPS) | |
23 | Summary(ru.UTF-8): Утилита для получения файлов с серверов FTP, HTTP и других | |
24 | Summary(uk.UTF-8): Утиліта для отримання файлів з серверів FTP, HTTP та інших | |
5767e1a7 | 25 | Name: curl |
d3f393a2 | 26 | Version: 7.74.0 |
4c2e4e93 | 27 | Release: 2 |
c091c0ac | 28 | License: MIT-like |
5767e1a7 | 29 | Group: Applications/Networking |
d8be0059 | 30 | Source0: https://curl.haxx.se/download/%{name}-%{version}.tar.xz |
d3f393a2 | 31 | # Source0-md5: 448156d9cd05009b0097b43de639fd34 |
d0cec3a8 JB |
32 | Patch0: %{name}-ac.patch |
33 | Patch1: %{name}-krb5flags.patch | |
4557544f | 34 | URL: http://curl.haxx.se/ |
c091c0ac | 35 | BuildRequires: autoconf >= 2.57 |
66cf63f1 | 36 | BuildRequires: automake |
7c7ffb45 | 37 | %{?with_ares:BuildRequires: c-ares-devel >= 1.7.0} |
f73c4120 | 38 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
8a129a6b | 39 | BuildRequires: libbrotli-devel >= 1.0.0 |
04f3f89d | 40 | BuildRequires: libidn2-devel |
e80259d2 JB |
41 | %{?with_metalink:BuildRequires: libmetalink-devel >= 0.1.0} |
42 | BuildRequires: libpsl-devel | |
9defadab | 43 | %{?with_rtmp:BuildRequires: librtmp-devel} |
b83a223e | 44 | %{?with_ssh:BuildRequires: libssh2-devel >= 1.2.8} |
c091c0ac | 45 | BuildRequires: libtool |
0f90f9c0 | 46 | BuildRequires: nettle-devel |
e37f03dc | 47 | %{?with_http2:BuildRequires: nghttp2-devel >= 1.12.0} |
588be88f | 48 | %{?with_ldap:BuildRequires: openldap-devel} |
c260acfc | 49 | BuildRequires: pkgconfig |
de17b215 | 50 | BuildRequires: rpm >= 4.4.9-56 |
838a6eda | 51 | BuildRequires: rpmbuild(macros) >= 1.527 |
5559a124 AM |
52 | %if %{with ssl} |
53 | %if %{with gnutls} | |
e37f03dc | 54 | BuildRequires: gnutls-devel >= 3.1.10 |
5559a124 | 55 | %else |
549c5328 | 56 | BuildRequires: openssl-devel >= 1.0.1 |
5559a124 AM |
57 | %endif |
58 | %endif | |
d04a5e91 | 59 | BuildRequires: tar >= 1:1.22 |
6903f0dc | 60 | BuildRequires: zlib-devel |
0ee795f8 | 61 | BuildRequires: zstd-devel |
3fb47407 | 62 | Requires: %{name}-libs = %{version}-%{release} |
cfa95fc0 | 63 | Obsoletes: libcurl2 |
8aa4e5ec | 64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81714278 | 65 | |
66 | %description | |
655b91ad | 67 | cURL is a tool for getting files with URL syntax, supporting FTP, |
68 | HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. cURL supports HTTP | |
69 | POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, | |
70 | cookies, user+password authentication and a busload of other useful | |
71 | tricks. The main use for curl is when you want to get or send files | |
72 | automatically to or from a site using one of the supported protocols. | |
73 | ||
74 | cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and | |
75 | Dict servers, using any of the supported protocols. cURL is designed | |
76 | to work without user interaction or any kind of interactivity. cURL | |
77 | offers many useful capabilities, like proxy support, user | |
e566d906 | 78 | authentication, FTP upload, HTTP post, and file transfer resume. |
81714278 | 79 | |
d63bcf1b JR |
80 | %description -l pl.UTF-8 |
81 | cURL jest narzędziem do ściągania plików o składni URL. Obsługuje FTP, | |
82 | HTTP, HTTPS, GOPHER, TELNET, DICT, FILE i LDAP. cURL obsługuje również | |
83 | HTTP POST, HTTP PUT, załadowywanie (uploading) FTP, załadowywanie HTTP | |
655b91ad | 84 | oparte na formularzu, serwery proksy, ciasteczka, autoryzacja |
d63bcf1b JR |
85 | użytkownik/hasło oraz wiele innych użytecznych sztuczek. Curla używa |
86 | się głównie wtedy, kiedy chce się automatycznie ściągnąć lub wysłać | |
87 | pliki z/na serwer używając jednego z dostępnych protokołów. | |
88 | %{?with_ssl:Ten pakiet obsługuje także SSL.} | |
1310544e | 89 | |
d63bcf1b JR |
90 | %description -l pt_BR.UTF-8 |
91 | Curl é um cliente para baixar/enviar arquivos de/para servidores | |
92 | usando um dos protocolos suportados. É projetado para funcionar sem a | |
93 | interação do usuário. | |
1310544e | 94 | |
d63bcf1b JR |
95 | Curl trabalha com proxy, autenticação, FTP put, HTTP post, e pode |
96 | continuar transferências interrompidas, e mais... | |
1310544e | 97 | |
d63bcf1b JR |
98 | %description -l ru.UTF-8 |
99 | curl - это клиент с множеством поддерживаемых протоколов для получения | |
100 | файлов с серверов, спроектированный для работы как в неинтерактивном | |
101 | режиме, так и с возможностью диалога с пользователем. | |
f05b825f | 102 | |
d63bcf1b JR |
103 | curl поддерживает много полезных возможностей, среди которых поддержка |
104 | прокси, авторизация пользователя, закачивание по FTP, поддержка HTTP | |
105 | POST, восстановление прерванной пересылки и многое другое. | |
f05b825f | 106 | |
d63bcf1b JR |
107 | curl - це кл╕╓нт з багатьма п╕дтримуваними протоколами для отримання |
108 | файл╕в з сервер╕в, спроектований для роботи як в не╕нтерактивному | |
109 | режим╕, так ╕ з можлив╕стю д╕алогу з користувачем. | |
f05b825f | 110 | |
d63bcf1b JR |
111 | curl п╕дтриму╓ багато корисних можливостей, серед яких п╕дтримка |
112 | прокс╕, авторизац╕я користувача, в╕двантаження по FTP, HTTP POST, | |
113 | в╕дновлення перервано╖ пересилки та багато ╕ншого. | |
f05b825f | 114 | |
814b6f7d JB |
115 | %package libs |
116 | Summary: curl library | |
ce380d80 | 117 | Summary(pl.UTF-8): Biblioteka curl |
814b6f7d | 118 | Group: Libraries |
de17b215 | 119 | %{?with_ares:Requires: c-ares >= 1.7.0} |
e37f03dc | 120 | %{?with_gnutls:Requires: gnutls-libs >= 3.1.10} |
549c5328 | 121 | %{?with_ssh:Requires: libssh2 >= 1.2.8} |
e37f03dc | 122 | %{?with_http2:Requires: nghttp2-libs >= 1.12.0} |
fddc44fa | 123 | %if %{with ssl} && %{without gnutls} |
00b2a6eb | 124 | Requires: libbrotli >= 1.0.0 |
549c5328 | 125 | Requires: openssl >= 1.0.1 |
fddc44fa | 126 | %endif |
dfeb0d8d PG |
127 | Suggests: ca-certificates |
128 | Conflicts: ca-certificates < 20080809-4 | |
814b6f7d JB |
129 | |
130 | %description libs | |
131 | curl library. | |
132 | ||
d63bcf1b | 133 | %description libs -l pl.UTF-8 |
814b6f7d JB |
134 | Biblioteka curl. |
135 | ||
1f54b511 | 136 | %package devel |
137 | Summary: Header files and development documentation for curl library | |
ce380d80 ER |
138 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki curl |
139 | Summary(pt_BR.UTF-8): Arquivos de cabeçalho e bibliotecas de desenvolvimento | |
140 | Summary(ru.UTF-8): Файлы для разработки с использованием библиотеки curl | |
141 | Summary(uk.UTF-8): Файли для розробки з використанням бібліотеки curl | |
1f54b511 | 142 | Group: Development/Libraries |
3fb47407 | 143 | Requires: %{name}-libs = %{version}-%{release} |
bd2c841c | 144 | %{?with_ares:Requires: c-ares-devel} |
f73c4120 | 145 | %{?with_kerberos5:Requires: heimdal-devel} |
72fe5a16 | 146 | Requires: libbrotli-devel >= 1.0.0 |
04f3f89d | 147 | Requires: libidn2-devel |
e80259d2 | 148 | Requires: libpsl-devel |
70778617 | 149 | %{?with_rtmp:Requires: librtmp-devel} |
b83a223e | 150 | %{?with_ssh:Requires: libssh2-devel >= 1.2.8} |
e37f03dc | 151 | %{?with_http2:Requires: nghttp2-devel >= 1.12.0} |
588be88f | 152 | %{?with_ldap:Requires: openldap-devel} |
5559a124 AM |
153 | %if %{with ssl} |
154 | %if %{with gnutls} | |
e37f03dc | 155 | Requires: gnutls-devel >= 3.1.10 |
5559a124 AM |
156 | %else |
157 | Requires: openssl-devel >= 0.9.7c | |
158 | %endif | |
159 | %endif | |
5e1699d5 | 160 | Requires: zlib-devel |
0ee795f8 | 161 | Requires: zstd-devel |
cfa95fc0 | 162 | Obsoletes: libcurl2-devel |
1f54b511 | 163 | |
164 | %description devel | |
165 | Header files and development documentation for curl library. | |
166 | ||
d63bcf1b JR |
167 | %description devel -l pl.UTF-8 |
168 | Pliki nagłówkowe i dokumentacja do biblioteki curl. | |
cec38cdf | 169 | |
d63bcf1b JR |
170 | %description devel -l pt_BR.UTF-8 |
171 | Arquivos de cabeçalho e bibliotecas de desenvolvimento. | |
1310544e | 172 | |
d63bcf1b JR |
173 | %description devel -l ru.UTF-8 |
174 | Этот пакет содержит файлы, необходимые для разработки программ с | |
175 | использованием библиотеки curl. | |
f05b825f | 176 | |
d63bcf1b JR |
177 | %description devel -l uk.UTF-8 |
178 | Цей пакет містить файли, необхідні для розробки програм з | |
179 | використанням бібліотеки curl. | |
f05b825f | 180 | |
1f54b511 | 181 | %package static |
182 | Summary: Static version of curl library | |
ce380d80 ER |
183 | Summary(pl.UTF-8): Statyczna wersja biblioteki curl |
184 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com o curl | |
185 | Summary(ru.UTF-8): Статические библиотеки для разработки с использованием библиотеки curl | |
186 | Summary(uk.UTF-8): Статичні бібліотеки для розробки з використанням бібліотеки curl | |
1f54b511 | 187 | Group: Development/Libraries |
6e6a5186 | 188 | Requires: %{name}-devel = %{version}-%{release} |
1f54b511 | 189 | |
190 | %description static | |
d06d2fe1 | 191 | Static version of curl library. |
1f54b511 | 192 | |
d63bcf1b | 193 | %description static -l pl.UTF-8 |
cec38cdf | 194 | Statyczna wersja biblioteki curl. |
b73e2a73 | 195 | |
d63bcf1b JR |
196 | %description static -l pt_BR.UTF-8 |
197 | Bibliotecas estáticas para desenvolvimento com o curl. | |
1310544e | 198 | |
d63bcf1b JR |
199 | %description static -l ru.UTF-8 |
200 | Этот пакет содержит статическую библиотеку для разработки программ с | |
201 | использованием библиотеки curl. | |
f05b825f | 202 | |
d63bcf1b JR |
203 | %description static -l uk.UTF-8 |
204 | Цей пакет містить статичну бібліотеку для розробки програм з | |
205 | використанням бібліотеки curl. | |
f05b825f | 206 | |
8a62d0ef AG |
207 | %package -n fish-completion-%{name} |
208 | Summary: Fish completion for curl command | |
209 | Summary(pl.UTF-8): Dopełnianie parametrów w fish dla polecenia curl | |
210 | Group: Applications/Shells | |
211 | Requires: %{name} = %{version}-%{release} | |
212 | Requires: fish | |
213 | ||
214 | %description -n fish-completion-%{name} | |
215 | Fish completion for curl command. | |
216 | ||
217 | %description -n fish-completion-%{name} -l pl.UTF-8 | |
218 | Dopełnianie parametrów w fish dla polecenia curl. | |
219 | ||
e80259d2 JB |
220 | %package -n zsh-completion-curl |
221 | Summary: ZSH completion for curl command | |
222 | Summary(pl.UTF-8): Dopełnianianie parametrów w ZSH dla polecenia curl | |
223 | Group: Applications/Shells | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | Requires: zsh | |
226 | ||
227 | %description -n zsh-completion-curl | |
228 | ZSH completion for curl command. | |
229 | ||
230 | %description -n zsh-completion-curl -l pl.UTF-8 | |
231 | Dopełnianianie parametrów w ZSH dla polecenia curl. | |
232 | ||
81714278 | 233 | %prep |
13caa23a | 234 | %setup -q |
d0cec3a8 | 235 | %patch0 -p1 |
d4dc980e | 236 | %patch1 -p1 |
81714278 | 237 | |
358ad66a | 238 | %{__rm} m4/lt*.m4 m4/libtool.m4 |
36cd7270 | 239 | |
81714278 | 240 | %build |
c091c0ac | 241 | %{__libtoolize} |
03613829 | 242 | %{__aclocal} -I m4 |
d4dc980e AM |
243 | %{__autoconf} |
244 | %{__autoheader} | |
c091c0ac | 245 | %{__automake} |
e566d906 | 246 | %configure \ |
ef822e11 | 247 | ac_cv_header_gss_h=no \ |
e80259d2 JB |
248 | %{__enable_disable ares} \ |
249 | --enable-ipv6 \ | |
250 | %{__enable_disable ldap} \ | |
251 | %{__enable_disable ldap ldaps} \ | |
252 | --disable-silent-rules \ | |
5559a124 | 253 | %if %{with ssl} |
03613829 | 254 | --with-ca-bundle=/etc/certs/ca-certificates.crt \ |
5559a124 | 255 | %if %{with gnutls} |
28c87603 | 256 | --with-gnutls --without-ssl \ |
5559a124 AM |
257 | %else |
258 | --with-ssl=%{_prefix} \ | |
259 | %endif | |
0eee87e5 AM |
260 | %else |
261 | --without-ssl --without-gnutls \ | |
5559a124 | 262 | %endif |
8a62d0ef | 263 | --with-fish-functions-dir=%{fish_compdir} \ |
838a6eda JK |
264 | %{__with_without kerberos5 gssapi %{_prefix}} \ |
265 | %{__with_without metalink libmetalink} \ | |
266 | %{__with_without rtmp librtmp} \ | |
267 | %{__with_without http2 nghttp2} \ | |
e80259d2 | 268 | %{__with_without ssh libssh2} |
a436679a | 269 | |
c2167492 | 270 | %{__make} |
81714278 | 271 | |
272 | %install | |
5767e1a7 | 273 | rm -rf $RPM_BUILD_ROOT |
08c6da60 | 274 | |
56f17d66 AM |
275 | %{__make} install \ |
276 | DESTDIR=$RPM_BUILD_ROOT | |
277 | ||
4f6d4393 JB |
278 | %{__make} -C scripts install \ |
279 | DESTDIR=$RPM_BUILD_ROOT | |
280 | ||
08c6da60 JB |
281 | # obsoleted by pkg-config |
282 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcurl.la | |
283 | ||
34ca770a | 284 | # no longer in upstream but a lot of apps tries to include it so we create fake one |
925b36ff AM |
285 | [ -e $RPM_BUILD_ROOT%{_includedir}/curl/types.h ] && exit 1 |
286 | echo '#warning curl/types.h IS OBSOLETE FROM 2004. STOP USING IT' > $RPM_BUILD_ROOT%{_includedir}/curl/types.h | |
34ca770a | 287 | |
81714278 | 288 | %clean |
289 | rm -rf $RPM_BUILD_ROOT | |
81714278 | 290 | |
3fb47407 ER |
291 | %post libs -p /sbin/ldconfig |
292 | %postun libs -p /sbin/ldconfig | |
1f54b511 | 293 | |
81714278 | 294 | %files |
5767e1a7 | 295 | %defattr(644,root,root,755) |
4c2e4e93 | 296 | %doc CHANGES COPYING README docs/{BUGS.md,FAQ,FEATURES.md,HISTORY.md,KNOWN_BUGS,SSLCERTS.md,THANKS,TODO,TheArtOfHttpScripting.md} |
c091c0ac | 297 | %attr(755,root,root) %{_bindir}/curl |
c091c0ac | 298 | %{_mandir}/man1/curl.1* |
1f54b511 | 299 | |
814b6f7d JB |
300 | %files libs |
301 | %defattr(644,root,root,755) | |
302 | %attr(755,root,root) %{_libdir}/libcurl.so.*.*.* | |
b3964ccb | 303 | %attr(755,root,root) %ghost %{_libdir}/libcurl.so.4 |
814b6f7d | 304 | |
1f54b511 | 305 | %files devel |
306 | %defattr(644,root,root,755) | |
c6b65fdb | 307 | %doc docs/{CONTRIBUTE.md,INTERNALS.md} |
c091c0ac JB |
308 | %attr(755,root,root) %{_bindir}/curl-config |
309 | %attr(755,root,root) %{_libdir}/libcurl.so | |
c091c0ac | 310 | %{_includedir}/curl |
8ad78925 | 311 | %{_pkgconfigdir}/libcurl.pc |
1399f3ff | 312 | %{_aclocaldir}/libcurl.m4 |
c091c0ac | 313 | %{_mandir}/man1/curl-config.1* |
b3964ccb JB |
314 | %{_mandir}/man3/curl_*.3* |
315 | %{_mandir}/man3/libcurl*.3* | |
0efd10e8 | 316 | %{_mandir}/man3/CURLINFO_*.3* |
67744768 | 317 | %{_mandir}/man3/CURLOPT_*.3* |
eb7a78c8 | 318 | %{_mandir}/man3/CURLMOPT_*.3* |
1f54b511 | 319 | |
320 | %files static | |
321 | %defattr(644,root,root,755) | |
c091c0ac | 322 | %{_libdir}/libcurl.a |
e80259d2 | 323 | |
8a62d0ef AG |
324 | %files -n fish-completion-%{name} |
325 | %defattr(644,root,root,755) | |
326 | %{fish_compdir}/%{name}.fish | |
327 | ||
e80259d2 JB |
328 | %files -n zsh-completion-curl |
329 | %defattr(644,root,root,755) | |
330 | %{_datadir}/zsh/site-functions/_curl |