SHA256
8
0
forked from pool/aws-c-http
Files
aws-c-http/aws-c-http.spec

100 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package aws-c-http
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define library_version 1.0.0
%define library_soversion 1_0_0
Name: aws-c-http
Accepting request 937774 from home:glaubitz:branches:devel:libraries:c_c++ - Update to version 0.6.10 * HTTP/2 Message support + Support HTTP/2 message type, instead of translating all the request to HTTP/2 format + BUGFIX: raise proper error when reaching max concurrent stream. - from version 0.6.9 * Const added to members, chunked trailer support to HTTP/1, HTTP/2 headers + HTTP2/ headers - Pseudo headers are pushed into the front of the array list, and other than that, it will be treated the same as normal headers - Trade off: * We know that push front to the array list is expensive. But, it should be used only few times, as you don't want to change pseudo headers a lot and there are at most 4 of them. More than that, we don't need to do the push front later when we need to send the headers into the wire. * The advantage of it is that we will have the mostly the same behavior as netty, which is used by Java SDK team already. * `add` will push the pseudo header to the front of the list when needed (the last header is NOT pseudo header) + Chunked trailer - Add chunked trailer support to HTTP/1 + Const changes - const added to aws_socket_options - const added to aws_http_proxy_options - const added to aws_tls_connection_options - from version 0.6.8 * Removed OOM conditions/tests + Removed OOM test, since that's no longer allowed (#343) OBS-URL: https://build.opensuse.org/request/show/937774 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-http?expand=0&rev=3
2021-12-11 23:48:24 +00:00
Version: 0.6.10
Release: 0
Summary: C99 implementation of the HTTP/1.1 and HTTP/2 specifications
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/awslabs/aws-c-http
Source0: https://github.com/awslabs/%{name}/archive/v%{version}.tar.gz
Patch0: ach_fix-cmake-modules-path.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: cmake(aws-checksums)
BuildRequires: cmake(aws-c-cal)
BuildRequires: cmake(aws-c-common)
BuildRequires: cmake(aws-c-compression)
BuildRequires: cmake(aws-c-io)
BuildRequires: cmake(s2n)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: ninja
BuildRequires: pkgconfig
%description
C99 implementation of the HTTP/1.1 and HTTP/2 specifications.
%package -n lib%{name}%{library_soversion}
Summary: C99 implementation of the HTTP/1.1 and HTTP/2 specifications
Group: System/Libraries
%description -n lib%{name}%{library_soversion}
C99 implementation of the HTTP/1.1 and HTTP/2 specifications.
This package contains the dynamically linked library.
%package devel
Summary: Development files for aws-c-http library
Group: Development/Libraries/C and C++
Requires: lib%{name}%{library_soversion} = %{version}
%description devel
C99 implementation of the HTTP/1.1 and HTTP/2 specifications.
This package contains the development files.
%prep
%setup -q
%patch0 -p1
%build
%define __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_MODULE_PATH=%{_libdir}/cmake
%make_jobs
# Testsuite currently fails
#%%check
#export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build
#%%ctest
%install
%cmake_install
%post -n lib%{name}%{library_soversion} -p /sbin/ldconfig
%postun -n lib%{name}%{library_soversion} -p /sbin/ldconfig
%files
%{_bindir}/*
%files -n lib%{name}%{library_soversion}
%doc README.md
%license LICENSE
%{_libdir}/*.so.%{library_version}
%files devel
%{_libdir}/cmake/
%{_libdir}/*.so
%{_includedir}/*
%changelog