%bcond_without scl %if %{with scl} %global scl isc-bind %endif %{?scl:%scl_package ngtcp2} %{!?scl:%global pkg_name %{name}} Name: %{?scl_prefix}ngtcp2 Version: 1.15.1 Release: 2%{?dist} Summary: Implementation of RFC 9000 QUIC protocol License: MIT URL: https://github.com/ngtcp2/ngtcp2 Source0: %{url}/releases/download/v%{version}/%{pkg_name}-%{version}.tar.xz BuildRequires: autoconf BuildRequires: gcc BuildRequires: make BuildRequires: libtool %{?scl:BuildRequires: %{scl}-build} %{?scl:Requires: %scl_runtime} %description "Call it TCP/2. One More Time." ngtcp2 project is an effort to implement RFC9000 QUIC protocol. %package devel Summary: The ngtcp2 development files Requires: %{name} = %{version}-%{release} %description devel "Call it TCP/2. One More Time." ngtcp2 project is an effort to implement RFC9000 QUIC protocol. Development headers and libraries. %prep %autosetup -n %{pkg_name}-%{version} -p1 %build autoreconf -fsi %configure --disable-static %make_build %install %make_install rm ${RPM_BUILD_ROOT}%{_libdir}/lib%{pkg_name}*.la rm -r ${RPM_BUILD_ROOT}/opt/isc/isc-bind/root/usr/share/doc/%{pkg_name} %files %license COPYING %doc AUTHORS %{_libdir}/libngtcp2.so.16* %files devel %doc ChangeLog %{_libdir}/libngtcp2.so %{_libdir}/pkgconfig/libngtcp2.pc %{_includedir}/%{pkg_name}/ %changelog %autochangelog