Blame SPECS/nghttp2.spec

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