%define major 14 %define libname %mklibname nghttp2_ %{major} %define develname %mklibname -d nghttp2 Summary: Experimental HTTP/2 client, server and proxy Name: nghttp2 Version: 1.9.2 %define subrel 1 Release: %mkrel 1 License: MIT Group: System/Libraries URL: https://nghttp2.org/ Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz Patch0: nghttp2-1.4.0-libev.diff Patch1: nghttp2-1.9.2-CVE-2019-9511-and-CVE-2019-9513.patch BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(libev) BuildRequires: openssl-devel BuildRequires: autoconf automake libtool %description This package contains the HTTP/2 client, server and proxy programs. %package -n %{libname} Summary: A library implementing the HTTP/2 protocol Group: System/Libraries %description -n %{libname} libnghttp2 is a library implementing the Hypertext Transfer Protocol version 2 (HTTP/2) protocol in C. %package -n %{develname} Summary: Files needed for building applications with libnghttp2 Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %{libname} >= %{version}-%{release} %description -n %{develname} The libnghttp2-devel package includes libraries and header files needed for building applications with libnghttp2. %prep %setup -q %patch0 -p1 %patch1 -p1 %build autoreconf -fi %configure2_5x \ --disable-python-bindings \ --disable-static \ --without-libxml2 \ --without-spdylay # avoid using rpath sed -i libtool \ -e 's/^runpath_var=.*/runpath_var=/' \ -e 's/^hardcode_libdir_flag_spec=".*"$/hardcode_libdir_flag_spec=""/' %make V=1 %check # test the just built library instead of the system one, without using rpath export "LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH" make check %install %makeinstall # not needed on Fedora/RHEL rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la" # will be installed via %%doc rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst" %files %{_bindir}/h2load %{_bindir}/nghttp %{_bindir}/nghttpd %{_bindir}/nghttpx %{_datadir}/nghttp2 %{_mandir}/man1/h2load.1* %{_mandir}/man1/nghttp.1* %{_mandir}/man1/nghttpd.1* %{_mandir}/man1/nghttpx.1* %files -n %{libname} %{_libdir}/*.so.%{major}* %{!?_licensedir:%global license %%doc} %license COPYING %files -n %{develname} %{_includedir}/nghttp2 %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %doc README.rst %changelog * Thu Sep 19 2019 ns80 <ns80> 1.9.2-1.1.mga6 + Revision: 1443826 - add patch for CVE-2019-951[13] (mga#25424) * Sun Apr 10 2016 pterjan <pterjan> 1.9.2-1.mga6 + Revision: 999957 - Update to 1.9.2 * Wed Mar 02 2016 umeabot <umeabot> 1.8.0-2.mga6 + Revision: 983800 - Rebuild for openssl * Wed Mar 02 2016 oden <oden> 1.8.0-1.mga6 + Revision: 983104 - 1.8.0 * Wed Feb 24 2016 oden <oden> 1.7.1-1.mga6 + Revision: 978525 - 1.7.1 (fixes CVE-2016-1544) - sync a bit with fedora * Sun Dec 27 2015 oden <oden> 1.6.0-1.mga6 + Revision: 915713 - 1.6.0 * Thu Nov 05 2015 oden <oden> 1.4.0-1.mga6 + Revision: 897929 - fix some small issues... - imported package nghttp2 * Thu Nov 05 2015 Oden Eriksson <oe@nux.se> 1.4.0-1 - initial Mageia package * Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1 - update to the latest upstream release * Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1 - update to the latest upstream release * Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1 - update to the latest upstream release * Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1 - update to the latest upstream release * Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1 - update to the latest upstream release * Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1 - update to the latest upstream release * Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1 - update to the latest upstream release * Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1 - update to the latest upstream release * Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1 - update to the latest upstream release * Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1 - packaged for Fedora (#1237247)