Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37865534
en ru br
ALT Linux repos
S:0.16.0-alt1

Group :: System/Libraries
RPM: ngtcp2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%global _unpackaged_files_terminate_build 1
%define ngtcpsoname 13
%define ngtcp2_crypto_gnutls 5

Name: ngtcp2
Version: 0.16.0
Release: alt1
Summary: An implementation of the RFC9000 QUIC protocol

License: MIT
Group: System/Libraries
Url: https://github.com/ngtcp2/ngtcp2
Vcs: https://github.com/ngtcp2/ngtcp2.git
Source: %name-%version.tar

BuildRequires: gcc-c++ CUnit-devel
# need openssl-quic branch
#BuildRequires: pkgconfig(openssl) >= 1.1.1
BuildRequires: pkgconfig(gnutls) >= 3.7.2
BuildRequires: pkgconfig(libnghttp3) >= 0.2.0
BuildRequires: libev-devel

%description
%summary.

%package -n lib%name.%ngtcpsoname
Summary: An implementation of the RFC9000 QUIC protocol
Group: System/Libraries
Requires: lib%{name}_crypto_gnutls%{ngtcp2_crypto_gnutls} = %EVR

%description -n lib%name.%ngtcpsoname
%summary.

%package -n lib%{name}_crypto_gnutls%{ngtcp2_crypto_gnutls}
Summary: %name GnuTLS crypto library
Group: System/Libraries

%description -n lib%{name}_crypto_gnutls%{ngtcp2_crypto_gnutls}
%summary.

%package -n lib%name-devel
Summary: Files needed for building applications with libngtcp2
Group: Development/C
Requires: lib%name.%ngtcpsoname = %EVR
Requires: lib%{name}_crypto_gnutls%{ngtcp2_crypto_gnutls} = %EVR

%description -n lib%name-devel
The libngtcp2-devel package includes libraries and header files needed
for building applications with libngtcp2.

%prep
%setup

%build
%autoreconf
%configure --disable-static --with-gnutls
%make_build

%install
%makeinstall_std
rm -rf %buildroot%_defaultdocdir/%name

%check
%make_build check


%files -n lib%name.%ngtcpsoname
%_libdir/lib%{name}.so.%{ngtcpsoname}.*
%_libdir/lib%{name}.so.%{ngtcpsoname}

%files -n lib%{name}_crypto_gnutls%{ngtcp2_crypto_gnutls}
%_libdir/lib%{name}_crypto_gnutls.so.%{ngtcp2_crypto_gnutls}*

%doc README.rst

%files -n lib%name-devel
%_includedir/%name
%_pkgconfigdir/*.pc
%_libdir/*.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin