ALT

S: | 8.3.0-alt1 |
5.1: | 7.19.7-alt1.M51.1 |
4.1: | 7.18.1-alt3.M41.3 |
4.0: | 7.17.1-alt4.M40.2 |
3.0: | 7.15.0-alt1 |
+updates: | 7.15.0-alt2 |

Upstream: | 7.18.0 |
:: /
: curl
Sources Gear Bugs and FR Repocop
%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
%def_with nghttp2
%def_with libssh2
%def_with check
%def_disable static
# QUIC protocol not supported in standart openssl, ngtcp2 build with gnutls for http3 support
%if "%(rpmvercmp '%{get_version libgnutls30}' '3.7.9')" < "0"
%def_disable http3
%else
%def_enable http3
%endif
%if_enabled http3
%def_without openssl
%def_with gnutls
%def_with ngtcp2
%def_with nghttp3
%else
%def_with openssl
%def_without gnutls
%def_without ngtcp2
%def_without nghttp3
%endif
Name: curl
Version: 8.2.1
Release: alt1
Summary: Gets a file from a FTP, GOPHER or HTTP server
Summary(ru_RU.UTF-8): Утилиты и библиотеки для передачи файлов
License: MIT
Group: Networking/File transfer
Url: http://curl.haxx.se
Source: %url/download/%name-%version.tar
Source1: %name.watch
Patch0: curl-%version-alt.patch
Requires: lib%name = %EVR
# check QUIC possibility
BuildRequires: libgnutls30
%{?_enable_static:BuildRequires: glibc-devel-static}
BuildRequires: groff-base
BuildRequires: libidn2-devel libkrb5-devel libgsasl-devel
BuildRequires: zlib-devel libzstd-devel libpsl-devel libldap-devel libbrotli-devel
%{?_with_check:BuildRequires: python3-base /proc}
%{?_with_check:BuildRequires: libnghttp2-tools}
%{?_with_check:BuildRequires: gnutls-utils}
%{?_with_check:BuildRequires: /usr/bin/stunnel}
%{?_with_check:BuildRequires: perl(Digest/SHA.pm) perl(Memoize.pm) openssh-server openssh-clients}
%{?_with_check:BuildRequires: caddy pytest3 python3-module-cryptography}
%{?_with_openssl:BuildRequires: libssl-devel}
%{?_with_gnutls:BuildRequires: libgnutls-devel libnettle-devel}
%{?_with_libssh2:BuildRequires: libssh2-devel}
%{?_with_nghttp2:BuildRequires: libnghttp2-devel}
%{?_with_ngtcp2:BuildRequires: libngtcp2-devel >= 0.15.0}
%{?_with_nghttp3:BuildRequires: libnghttp3-devel}
%package -n lib%name
Summary: The shared library for file transfer
Summary(ru_RU.UTF-8): Библиотеки для передачи файлов
Group: System/Libraries
Provides: %name-lib = %version
Obsoletes: %name-lib < %version
Requires: ca-certificates
%package -n lib%name-devel
Summary: Header files for lib%name
Summary(ru_RU.UTF-8): Заголовочные файлы для lib%name
Group: Development/C
Requires: lib%name = %version-%release bc
Provides: %name-devel = %version
Obsoletes: %name-devel < %version
%package -n lib%name-devel-static
Summary: Static libraries for lib%name
Summary(ru_RU.UTF-8): Статические библиотеки для lib%name
Group: Development/C
Requires: lib%name-devel = %version-%release
%description
Curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user
interaction or any kind of interactivity.
Curl offers a busload of useful tricks like proxy support, user
authentication, ftp upload, HTTP post, file transfer resume and more.
NOTE: This version is compiled with SSL (https) support.
%description -l ru_RU.UTF-8
Curl - это клиент для получения файлов или документов с серверов,
используя один из поддерживаемых протоколов. Утилита спроектирована
для работы в неинтерактивном режиме.
Curl позволяет выполнять различные операции над сетевыми файлами,
реализуя поддержку прокси, авторизацию пользователя, докачку файлов и
многое другое.
%description -n lib%name
This package contains lib%name shared library of functions for
sending and receiving files through various protocols, including
http and ftp.
%description -n lib%name -l ru_RU.UTF-8
Этот пакет содержит разделяемую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
%description -n lib%name-devel
This package contains lib%name development library of functions for
sending and receiving files through various protocols, including
http and ftp.
This package is required for development of applications that
utilize lib%name.
%description -n lib%name-devel -l ru_RU.UTF-8
Этот пакет содержит девелоперскую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
Этот пакет необходим для разработки приложений, использующих lib%name.
%description -n lib%name-devel-static
This package contains lib%name static library of functions for
sending and receiving files through various protocols, including
http and ftp.
This package is required for development of statically linked
applications that utilize lib%name.
%description -n lib%name-devel-static -l ru_RU.UTF-8
Этот пакет содержит статическую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
Этот пакет необходим для разработки статически слинкованных приложений,
использующих lib%name.
%prep
%setup -q
%patch0 -p1
%build
export PATH=/sbin:/usr/sbin:$PATH
./maketgz %version only
%autoreconf
%configure \
%{subst_enable static} \
%{subst_with openssl} \
%{subst_with gnutls} \
%{subst_with ngtcp2} \
%{subst_with nghttp3} \
--with-libidn2 \
--enable-ipv6 \
--enable-ldap \
--enable-threaded-resolver \
--enable-openssl-auto-load-config \
--with-gssapi \
--enable-websockets \
%{subst_with libssh2} \
--with-ca-bundle=%_datadir/ca-certificates/ca-bundle.crt
%make_build
%install
%makeinstall_std
%makeinstall_std -C docs/libcurl
%check
%make -k test-full
pushd tests/http
python3 -m pytest -v ||:
popd
%files
%_bindir/curl
%_man1dir/curl.1*
%files -n lib%name
%_libdir/*.so.*
%doc CHANGES README* docs/{FAQ,FEATURES.md}
%files -n lib%name-devel
%_libdir/*.so
%_libdir/pkgconfig/libcurl.pc
%_bindir/curl-config
%_aclocaldir/libcurl.m4
%_includedir/*
%_man3dir/*
%_man1dir/curl-config.1*
%doc docs/{THANKS,TODO,examples,BUGS.md,TheArtOfHttpScripting.md}
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
changelog
%def_with nghttp2
%def_with libssh2
%def_with check
%def_disable static
# QUIC protocol not supported in standart openssl, ngtcp2 build with gnutls for http3 support
%if "%(rpmvercmp '%{get_version libgnutls30}' '3.7.9')" < "0"
%def_disable http3
%else
%def_enable http3
%endif
%if_enabled http3
%def_without openssl
%def_with gnutls
%def_with ngtcp2
%def_with nghttp3
%else
%def_with openssl
%def_without gnutls
%def_without ngtcp2
%def_without nghttp3
%endif
Name: curl
Version: 8.2.1
Release: alt1
Summary: Gets a file from a FTP, GOPHER or HTTP server
Summary(ru_RU.UTF-8): Утилиты и библиотеки для передачи файлов
License: MIT
Group: Networking/File transfer
Url: http://curl.haxx.se
Source: %url/download/%name-%version.tar
Source1: %name.watch
Patch0: curl-%version-alt.patch
Requires: lib%name = %EVR
# check QUIC possibility
BuildRequires: libgnutls30
%{?_enable_static:BuildRequires: glibc-devel-static}
BuildRequires: groff-base
BuildRequires: libidn2-devel libkrb5-devel libgsasl-devel
BuildRequires: zlib-devel libzstd-devel libpsl-devel libldap-devel libbrotli-devel
%{?_with_check:BuildRequires: python3-base /proc}
%{?_with_check:BuildRequires: libnghttp2-tools}
%{?_with_check:BuildRequires: gnutls-utils}
%{?_with_check:BuildRequires: /usr/bin/stunnel}
%{?_with_check:BuildRequires: perl(Digest/SHA.pm) perl(Memoize.pm) openssh-server openssh-clients}
%{?_with_check:BuildRequires: caddy pytest3 python3-module-cryptography}
%{?_with_openssl:BuildRequires: libssl-devel}
%{?_with_gnutls:BuildRequires: libgnutls-devel libnettle-devel}
%{?_with_libssh2:BuildRequires: libssh2-devel}
%{?_with_nghttp2:BuildRequires: libnghttp2-devel}
%{?_with_ngtcp2:BuildRequires: libngtcp2-devel >= 0.15.0}
%{?_with_nghttp3:BuildRequires: libnghttp3-devel}
%package -n lib%name
Summary: The shared library for file transfer
Summary(ru_RU.UTF-8): Библиотеки для передачи файлов
Group: System/Libraries
Provides: %name-lib = %version
Obsoletes: %name-lib < %version
Requires: ca-certificates
%package -n lib%name-devel
Summary: Header files for lib%name
Summary(ru_RU.UTF-8): Заголовочные файлы для lib%name
Group: Development/C
Requires: lib%name = %version-%release bc
Provides: %name-devel = %version
Obsoletes: %name-devel < %version
%package -n lib%name-devel-static
Summary: Static libraries for lib%name
Summary(ru_RU.UTF-8): Статические библиотеки для lib%name
Group: Development/C
Requires: lib%name-devel = %version-%release
%description
Curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user
interaction or any kind of interactivity.
Curl offers a busload of useful tricks like proxy support, user
authentication, ftp upload, HTTP post, file transfer resume and more.
NOTE: This version is compiled with SSL (https) support.
%description -l ru_RU.UTF-8
Curl - это клиент для получения файлов или документов с серверов,
используя один из поддерживаемых протоколов. Утилита спроектирована
для работы в неинтерактивном режиме.
Curl позволяет выполнять различные операции над сетевыми файлами,
реализуя поддержку прокси, авторизацию пользователя, докачку файлов и
многое другое.
%description -n lib%name
This package contains lib%name shared library of functions for
sending and receiving files through various protocols, including
http and ftp.
%description -n lib%name -l ru_RU.UTF-8
Этот пакет содержит разделяемую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
%description -n lib%name-devel
This package contains lib%name development library of functions for
sending and receiving files through various protocols, including
http and ftp.
This package is required for development of applications that
utilize lib%name.
%description -n lib%name-devel -l ru_RU.UTF-8
Этот пакет содержит девелоперскую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
Этот пакет необходим для разработки приложений, использующих lib%name.
%description -n lib%name-devel-static
This package contains lib%name static library of functions for
sending and receiving files through various protocols, including
http and ftp.
This package is required for development of statically linked
applications that utilize lib%name.
%description -n lib%name-devel-static -l ru_RU.UTF-8
Этот пакет содержит статическую библиотеку функций для отправки или
получения файлов через различные сетевые протоколы, включая http и ftp.
Этот пакет необходим для разработки статически слинкованных приложений,
использующих lib%name.
%prep
%setup -q
%patch0 -p1
%build
export PATH=/sbin:/usr/sbin:$PATH
./maketgz %version only
%autoreconf
%configure \
%{subst_enable static} \
%{subst_with openssl} \
%{subst_with gnutls} \
%{subst_with ngtcp2} \
%{subst_with nghttp3} \
--with-libidn2 \
--enable-ipv6 \
--enable-ldap \
--enable-threaded-resolver \
--enable-openssl-auto-load-config \
--with-gssapi \
--enable-websockets \
%{subst_with libssh2} \
--with-ca-bundle=%_datadir/ca-certificates/ca-bundle.crt
%make_build
%install
%makeinstall_std
%makeinstall_std -C docs/libcurl
%check
%make -k test-full
pushd tests/http
python3 -m pytest -v ||:
popd
%files
%_bindir/curl
%_man1dir/curl.1*
%files -n lib%name
%_libdir/*.so.*
%doc CHANGES README* docs/{FAQ,FEATURES.md}
%files -n lib%name-devel
%_libdir/*.so
%_libdir/pkgconfig/libcurl.pc
%_bindir/curl-config
%_aclocaldir/libcurl.m4
%_includedir/*
%_man3dir/*
%_man1dir/curl-config.1*
%doc docs/{THANKS,TODO,examples,BUGS.md,TheArtOfHttpScripting.md}
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
changelog