Blame SPECS/nghttp2.spec

71a4cd
Summary: Experimental HTTP/2 client, server and proxy
71a4cd
Name: nghttp2
71a4cd
Version: 1.33.0
9a19bc
Release: 3%{?dist}.1
71a4cd
License: MIT
71a4cd
Group: Applications/Internet
71a4cd
URL: https://nghttp2.org/
71a4cd
Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz
71a4cd
9310a9
# backport security fixes from nghttp2-1.39.2 (CVE-2019-9511 and CVE-2019-9513)
9310a9
Patch1: nghttp2-1.31.1-CVE-2019-9511-and-CVE-2019-9513.patch
9a19bc
9a19bc
# prevent DoS caused by overly large SETTINGS frames (CVE-2020-11080)
9a19bc
Patch2: nghttp2-1.33.0-CVE-2020-11080.patch
9a19bc
9310a9
BuildRequires: automake
9310a9
BuildRequires: libtool
9310a9
71a4cd
BuildRequires: CUnit-devel
71a4cd
BuildRequires: c-ares-devel
71a4cd
BuildRequires: gcc-c++
71a4cd
BuildRequires: libev-devel
71a4cd
BuildRequires: openssl-devel
71a4cd
BuildRequires: python3-devel
71a4cd
BuildRequires: systemd-devel
71a4cd
BuildRequires: zlib-devel
71a4cd
71a4cd
Requires: libnghttp2%{?_isa} = %{version}-%{release}
71a4cd
%{?systemd_requires}
71a4cd
71a4cd
%description
71a4cd
This package contains the HTTP/2 client, server and proxy programs.
71a4cd
71a4cd
71a4cd
%package -n libnghttp2
71a4cd
Summary: A library implementing the HTTP/2 protocol
71a4cd
Group: Development/Libraries
71a4cd
71a4cd
%description -n libnghttp2
71a4cd
libnghttp2 is a library implementing the Hypertext Transfer Protocol
71a4cd
version 2 (HTTP/2) protocol in C.
71a4cd
71a4cd
71a4cd
%package -n libnghttp2-devel
71a4cd
Summary: Files needed for building applications with libnghttp2
71a4cd
Group: Development/Libraries
71a4cd
Requires: libnghttp2%{?_isa} = %{version}-%{release}
71a4cd
Requires: pkgconfig
71a4cd
71a4cd
%description -n libnghttp2-devel
71a4cd
The libnghttp2-devel package includes libraries and header files needed
71a4cd
for building applications with libnghttp2.
71a4cd
71a4cd
71a4cd
%prep
71a4cd
%setup -q
9310a9
%patch1 -p1
9a19bc
%patch2 -p1
9310a9
autoreconf -fiv
71a4cd
71a4cd
# make fetch-ocsp-response use Python 3
71a4cd
sed -e '1 s|^#!/.*python|&3|' -i script/fetch-ocsp-response
71a4cd
71a4cd
%build
71a4cd
%configure PYTHON=%{__python3}              \
71a4cd
    --disable-python-bindings               \
71a4cd
    --disable-static                        \
71a4cd
    --without-libxml2                       \
71a4cd
    --without-spdylay
71a4cd
71a4cd
# avoid using rpath
71a4cd
sed -i libtool                              \
71a4cd
    -e 's/^runpath_var=.*/runpath_var=/'    \
71a4cd
    -e 's/^hardcode_libdir_flag_spec=".*"$/hardcode_libdir_flag_spec=""/'
71a4cd
71a4cd
make %{?_smp_mflags} V=1
71a4cd
71a4cd
71a4cd
%install
71a4cd
%make_install
71a4cd
install -D -m0444 -p contrib/nghttpx.service \
71a4cd
    "$RPM_BUILD_ROOT%{_unitdir}/nghttpx.service"
71a4cd
71a4cd
# not needed on Fedora/RHEL
71a4cd
rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la"
71a4cd
71a4cd
# will be installed via %%doc
71a4cd
rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst"
71a4cd
71a4cd
%ldconfig_scriptlets -n libnghttp2
71a4cd
71a4cd
%post
71a4cd
%systemd_post nghttpx.service
71a4cd
71a4cd
%postun
71a4cd
%systemd_postun nghttpx.service
71a4cd
71a4cd
71a4cd
%check
71a4cd
# test the just built library instead of the system one, without using rpath
71a4cd
export "LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH"
71a4cd
make %{?_smp_mflags} check
71a4cd
71a4cd
71a4cd
%files
71a4cd
%{_bindir}/h2load
71a4cd
%{_bindir}/nghttp
71a4cd
%{_bindir}/nghttpd
71a4cd
%{_bindir}/nghttpx
71a4cd
%{_datadir}/nghttp2
71a4cd
%{_mandir}/man1/h2load.1*
71a4cd
%{_mandir}/man1/nghttp.1*
71a4cd
%{_mandir}/man1/nghttpd.1*
71a4cd
%{_mandir}/man1/nghttpx.1*
71a4cd
%{_unitdir}/nghttpx.service
71a4cd
71a4cd
%files -n libnghttp2
71a4cd
%{_libdir}/libnghttp2.so.*
71a4cd
%{!?_licensedir:%global license %%doc}
71a4cd
%license COPYING
71a4cd
71a4cd
%files -n libnghttp2-devel
71a4cd
%{_includedir}/nghttp2
71a4cd
%{_libdir}/pkgconfig/libnghttp2.pc
71a4cd
%{_libdir}/libnghttp2.so
71a4cd
%doc README.rst
71a4cd
71a4cd
71a4cd
%changelog
9a19bc
* Tue Jun 09 2020 Kamil Dudka <kdudka@redhat.com> 1.33.0-3.el8_2.1
9a19bc
- prevent DoS caused by overly large SETTINGS frames (CVE-2020-11080)
9a19bc
9a19bc
* Wed Aug 28 2019 Kamil Dudka <kdudka@redhat.com> 1.33.0-3
9a19bc
- rebuild to trigger gating (#1681044)
9a19bc
9a19bc
* Mon Aug 19 2019 Kamil Dudka <kdudka@redhat.com> 1.33.0-2
9310a9
- backport security fixes from nghttp2-1.39.2 (CVE-2019-9511 and CVE-2019-9513)
9310a9
71a4cd
* Tue Oct 09 2018 Kamil Dudka <kdudka@redhat.com> 1.33.0-1
71a4cd
- use python3 for build
71a4cd
- update to the latest upstream release (#1636992)
71a4cd
71a4cd
* Wed May 09 2018 Kamil Dudka <kdudka@redhat.com> 1.32.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Fri Apr 13 2018 Kamil Dudka <kdudka@redhat.com> 1.31.1-1
71a4cd
- update to the latest upstream release (fixes CVE-2018-1000168)
71a4cd
71a4cd
* Thu Mar 15 2018 Kamil Dudka <kdudka@redhat.com> 1.31.0-2
71a4cd
- make fetch-ocsp-response use Python 3
71a4cd
71a4cd
* Tue Feb 27 2018 Kamil Dudka <kdudka@redhat.com> 1.31.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> 1.30.0-3
71a4cd
- add explicit BR for the gcc-c++ compiler
71a4cd
71a4cd
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.30.0-2
71a4cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71a4cd
71a4cd
* Mon Feb 05 2018 Kamil Dudka <kdudka@redhat.com> 1.30.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.29.0-2
71a4cd
- Switch to %%ldconfig_scriptlets
71a4cd
71a4cd
* Tue Dec 19 2017 Kamil Dudka <kdudka@redhat.com> 1.29.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sun Nov 26 2017 Kamil Dudka <kdudka@redhat.com> 1.28.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Wed Oct 25 2017 Kamil Dudka <kdudka@redhat.com> 1.27.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Wed Sep 20 2017 Kamil Dudka <kdudka@redhat.com> 1.26.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Fri Aug 18 2017 Kamil Dudka <kdudka@redhat.com> 1.25.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.24.0-4
71a4cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
71a4cd
71a4cd
* Sat Jul 29 2017 Florian Weimer <fweimer@redhat.com> - 1.24.0-3
71a4cd
- Rebuild with binutils fix for ppc64le (#1475636)
71a4cd
71a4cd
* Wed Jul 26 2017 Kamil Dudka <kdudka@redhat.com> 1.24.0-2
71a4cd
- drop workaround for a GCC bug that has been fixed (#1358845)
71a4cd
71a4cd
* Sun Jul 02 2017 Kamil Dudka <kdudka@redhat.com> 1.24.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue May 30 2017 Kamil Dudka <kdudka@redhat.com> 1.23.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sat May 27 2017 Kamil Dudka <kdudka@redhat.com> 1.23.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Apr 24 2017 Kamil Dudka <kdudka@redhat.com> 1.22.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Apr 10 2017 Kamil Dudka <kdudka@redhat.com> 1.21.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Mar 27 2017 Kamil Dudka <kdudka@redhat.com> 1.21.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sun Feb 26 2017 Tomasz Torcz <ttorcz@fedoraproject.org> - 1.20.0-1
71a4cd
- package systemd unit file (#1426929)
71a4cd
- update to latest upstream release
71a4cd
71a4cd
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
71a4cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71a4cd
71a4cd
* Wed Jan 25 2017 Kamil Dudka <kdudka@redhat.com> 1.19.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Jan 05 2017 Kamil Dudka <kdudka@redhat.com> 1.18.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue Dec 27 2016 Kamil Dudka <kdudka@redhat.com> 1.18.0-1
71a4cd
- update to the latest upstream release (requires c-ares for apps)
71a4cd
71a4cd
* Mon Nov 28 2016 Kamil Dudka <kdudka@redhat.com> 1.17.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue Nov 15 2016 Kamil Dudka <kdudka@redhat.com> 1.16.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Oct 24 2016 Kamil Dudka <kdudka@redhat.com> 1.16.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Sep 26 2016 Kamil Dudka <kdudka@redhat.com> 1.15.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Sep 12 2016 Kamil Dudka <kdudka@redhat.com> 1.14.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Aug 25 2016 Kamil Dudka <kdudka@redhat.com> 1.14.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue Jul 26 2016 Kamil Dudka <kdudka@redhat.com> 1.13.0-2
71a4cd
- prevent nghttpx from crashing on armv7hl (#1358845)
71a4cd
71a4cd
* Thu Jul 21 2016 Kamil Dudka <kdudka@redhat.com> 1.13.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Jun 27 2016 Kamil Dudka <kdudka@redhat.com> 1.12.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sun May 29 2016 Kamil Dudka <kdudka@redhat.com> 1.11.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu May 26 2016 Kamil Dudka <kdudka@redhat.com> 1.11.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Apr 25 2016 Kamil Dudka <kdudka@redhat.com> 1.10.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sun Apr 03 2016 Kamil Dudka <kdudka@redhat.com> 1.9.2-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue Mar 29 2016 Kamil Dudka <kdudka@redhat.com> 1.9.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Feb 25 2016 Kamil Dudka <kdudka@redhat.com> 1.8.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1
71a4cd
- update to the latest upstream release (fixes CVE-2016-1544)
71a4cd
71a4cd
* Fri Feb 05 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-3
71a4cd
- make the package compile with gcc-6
71a4cd
71a4cd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
71a4cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
71a4cd
71a4cd
* Mon Jan 25 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Fri Dec 25 2015 Kamil Dudka <kdudka@redhat.com> 1.6.0-1
71a4cd
- update to the latest upstream release (fixes CVE-2015-8659)
71a4cd
71a4cd
* Thu Nov 26 2015 Kamil Dudka <kdudka@redhat.com> 1.5.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1
71a4cd
- update to the latest upstream release
71a4cd
71a4cd
* Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1
71a4cd
- packaged for Fedora (#1237247)