ngtcp2/ngtcp2.spec
Dirk Mueller 357b5532b5 - update to 1.1.0:
* Extract ngtcp2_frame_chain to its own file
  * Refactor ringbuf
  * Fix typo
  * Rename reset stream flags
  * Remove unused ngtcp2_conn_resched_frames
  * crypto: Fix bug that retry token AAD does not include QUIC version
  * cmake: re-add two missing includes
  * Bump clang to 15
  * quictls: Prefetch objects to workaround 3.x perf regression
  * Bump clang-format to 15
  * Bump quictls to 3.1.4+quic
  * Deprecate NGTCP2_PROTO_VER_MIN and NGTCP2_PROTO_VER_MAX
  * ngtcp2_conn_write_datagram conveniently accepts single buffer
  * windows: Fix warnings
  * ptlsclient, ptlsserver: Support hq
  * h09client: Use util::write_token
  * Cpp ext
  * Use __FILE_NAME__ instead of __FILE__
  * examples: Rename extend_max_streams_bidi to extend_max_local_streams_bidi
  * Define varint identifiers as macros
  * Limit the number of NEW_CONNECTION_ID frames that are in-flight
  * Make frame type of type uint64_t
  * Fix doc
  * Fix assertion failure
  * Eliminate floating point computations
  * Bump actions/github-script from 6 to 7
  * client: Optimize a bit
  * Revert ignoring loss signal during startup
  * Rework app_limited

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ngtcp2?expand=0&rev=11
2023-12-28 21:09:27 +00:00

132 lines
3.7 KiB
RPMSpec

#
# spec file for package ngtcp2
#
# Copyright (c) 2023 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/
#
%global soname libngtcp2
%global sover 16
%global gnutls_soname libngtcp2_crypto_gnutls
%global gnutls_sover 8
Name: ngtcp2
Version: 1.1.0
Release: 0
Summary: Implementation of the IETF QUIC protocol
License: MIT
Group: Development/Libraries/C and C++
URL: https://nghttp2.org/ngtcp2
Source0: https://github.com/ngtcp2/ngtcp2/releases/download/v%{version}/ngtcp2-%{version}.tar.xz
Source1: https://github.com/ngtcp2/ngtcp2/releases/download/v%{version}/ngtcp2-%{version}.tar.xz.asc
Source2: ngtcp2.keyring
Source3: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(gnutls) >= 3
BuildRequires: pkgconfig(libnghttp3) >= 1.0.0
%description
ngtcp2 is an effort to implement RFC9000 QUIC protocol.
%package -n %{soname}-%{sover}
Summary: Shared library for ngtcp2
Group: System/Libraries
%description -n %{soname}-%{sover}
Shared C libraries for implementation of QUIC Protocol
%package -n %{gnutls_soname}%{gnutls_sover}
Summary: Shared library for ngtcp2 - GNUTLS backend
Group: System/Libraries
%description -n %{gnutls_soname}%{gnutls_sover}
Shared C libraries for implementation of QUIC Protocol - GNUTLS backend
%package -n python3-ngtcp2
Summary: Python3 bindings for ngtcp2
Group: Development/Libraries/Python
%description -n python3-ngtcp2
Python bindings for implementation of QUIC Protocol
%package -n %{soname}-devel
Summary: Development files for ngtcp2
Group: Development/Languages/C and C++
Requires: %{soname}-%{sover} = %{version}
Provides: %{name}-devel
%description -n %{soname}-devel
Development files for usage with libngtcp2, which implements
QUIC Protocol.
%package doc
Summary: Documentation for ngtcp2
Group: Documentation/HTML
%description doc
Documentation for ngtcp2, which includes a shared C library
%prep
%setup -q -n ngtcp2-%{version}
%build
%configure \
--disable-static \
--disable-silent-rules \
--enable-lib-only \
--with-cunit \
--with-libnghttp3 \
--with-gnutls \
--without-openssl \
--without-libev \
%{nil}
%make_build all
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Do not ship this
rm -rf %{buildroot}%{_datadir}/doc/ngtcp2
# None of applications using these man pages are built.
rm -rf %{buildroot}%{_mandir}/man1/* \
doc/manual/html/.buildinfo
%check
%make_build check
%ldconfig_scriptlets -n %{soname}-%{sover}
%ldconfig_scriptlets -n %{gnutls_soname}%{gnutls_sover}
%files -n %{soname}-%{sover}
%license COPYING
%{_libdir}/%{soname}.so.%{sover}*
%files -n %{gnutls_soname}%{gnutls_sover}
%license COPYING
%{_libdir}/%{gnutls_soname}.so.%{gnutls_sover}*
%files -n %{soname}-devel
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*.h
%{_libdir}/%{soname}.so
%{_libdir}/%{gnutls_soname}.so
%{_libdir}/pkgconfig/%{soname}.pc
%{_libdir}/pkgconfig/libngtcp2_crypto_gnutls.pc
%changelog