d83dc9c
Summary: Experimental HTTP/2 client, server and proxy
d83dc9c
Name: nghttp2
c60e4ce
Version: 1.7.1
c60e4ce
Release: 1%{?dist}
d83dc9c
License: MIT
d83dc9c
Group: Applications/Internet
d83dc9c
URL: https://nghttp2.org/
d83dc9c
Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz
d83dc9c
a9f7841
# make the package compile with gcc-6
a9f7841
Patch1: nghttp2-1.7.0-gcc6.patch
a9f7841
d83dc9c
BuildRequires: CUnit-devel
d83dc9c
BuildRequires: libev-devel
d83dc9c
BuildRequires: openssl-devel
d83dc9c
BuildRequires: zlib-devel
d83dc9c
d83dc9c
Requires: libnghttp2%{?_isa} = %{version}-%{release}
d83dc9c
d83dc9c
%description
d83dc9c
This package contains the HTTP/2 client, server and proxy programs.
d83dc9c
d83dc9c
d83dc9c
%package -n libnghttp2
d83dc9c
Summary: A library implementing the HTTP/2 protocol
d83dc9c
Group: Development/Libraries
d83dc9c
d83dc9c
%description -n libnghttp2
d83dc9c
libnghttp2 is a library implementing the Hypertext Transfer Protocol
d83dc9c
version 2 (HTTP/2) protocol in C.
d83dc9c
d83dc9c
d83dc9c
%package -n libnghttp2-devel
d83dc9c
Summary: Files needed for building applications with libnghttp2
d83dc9c
Group: Development/Libraries
d83dc9c
Requires: libnghttp2%{?_isa} = %{version}-%{release}
d83dc9c
Requires: pkgconfig
d83dc9c
d83dc9c
%description -n libnghttp2-devel
d83dc9c
The libnghttp2-devel package includes libraries and header files needed
d83dc9c
for building applications with libnghttp2.
d83dc9c
d83dc9c
d83dc9c
%prep
d83dc9c
%setup -q
a9f7841
%patch1 -p1
d83dc9c
d83dc9c
d83dc9c
%build
d83dc9c
%configure                                  \
d83dc9c
    --disable-python-bindings               \
d83dc9c
    --disable-static                        \
d83dc9c
    --without-libxml2                       \
d83dc9c
    --without-spdylay
d83dc9c
d83dc9c
# avoid using rpath
d83dc9c
sed -i libtool                              \
d83dc9c
    -e 's/^runpath_var=.*/runpath_var=/'    \
d83dc9c
    -e 's/^hardcode_libdir_flag_spec=".*"$/hardcode_libdir_flag_spec=""/'
d83dc9c
d83dc9c
make %{?_smp_mflags} V=1
d83dc9c
d83dc9c
d83dc9c
%install
d83dc9c
%make_install
d83dc9c
d83dc9c
# not needed on Fedora/RHEL
d83dc9c
rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la"
d83dc9c
d83dc9c
# will be installed via %%doc
d83dc9c
rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst"
d83dc9c
d83dc9c
%post -n libnghttp2 -p /sbin/ldconfig
d83dc9c
d83dc9c
%postun -n libnghttp2 -p /sbin/ldconfig
d83dc9c
d83dc9c
d83dc9c
%check
d83dc9c
# test the just built library instead of the system one, without using rpath
0f11ba8
export "LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH"
d83dc9c
make %{?_smp_mflags} check
d83dc9c
d83dc9c
d83dc9c
%files
d83dc9c
%{_bindir}/h2load
d83dc9c
%{_bindir}/nghttp
d83dc9c
%{_bindir}/nghttpd
d83dc9c
%{_bindir}/nghttpx
d83dc9c
%{_datadir}/nghttp2
d83dc9c
%{_mandir}/man1/h2load.1*
d83dc9c
%{_mandir}/man1/nghttp.1*
d83dc9c
%{_mandir}/man1/nghttpd.1*
d83dc9c
%{_mandir}/man1/nghttpx.1*
d83dc9c
d83dc9c
%files -n libnghttp2
d83dc9c
%{_libdir}/libnghttp2.so.*
d83dc9c
%{!?_licensedir:%global license %%doc}
d83dc9c
%license COPYING
d83dc9c
d83dc9c
%files -n libnghttp2-devel
d83dc9c
%{_includedir}/nghttp2
d83dc9c
%{_libdir}/pkgconfig/libnghttp2.pc
d83dc9c
%{_libdir}/libnghttp2.so
d83dc9c
%doc README.rst
d83dc9c
d83dc9c
d83dc9c
%changelog
c60e4ce
* Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1
c60e4ce
- update to the latest upstream release (fixes CVE-2016-1544)
c60e4ce
a9f7841
* Fri Feb 05 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-3
a9f7841
- make the package compile with gcc-6
a9f7841
51018ef
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
51018ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
51018ef
5ea1838
* Mon Jan 25 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-1
5ea1838
- update to the latest upstream release
5ea1838
2168684
* Fri Dec 25 2015 Kamil Dudka <kdudka@redhat.com> 1.6.0-1
c3ef2c6
- update to the latest upstream release (fixes CVE-2015-8659)
2168684
0f11ba8
* Thu Nov 26 2015 Kamil Dudka <kdudka@redhat.com> 1.5.0-1
0f11ba8
- update to the latest upstream release
0f11ba8
8efb526
* Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1
8efb526
- update to the latest upstream release
8efb526
a122dfe
* Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1
a122dfe
- update to the latest upstream release
a122dfe
97586ce
* Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1
97586ce
- update to the latest upstream release
97586ce
8fe0a4b
* Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1
8fe0a4b
- update to the latest upstream release
8fe0a4b
f051238
* Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1
f051238
- update to the latest upstream release
f051238
1aa62a6
* Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1
1aa62a6
- update to the latest upstream release
1aa62a6
7c4c454
* Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1
7c4c454
- update to the latest upstream release
7c4c454
08b7194
* Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1
08b7194
- update to the latest upstream release
08b7194
bcc7541
* Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1
bcc7541
- update to the latest upstream release
bcc7541
d83dc9c
* Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1
d83dc9c
- packaged for Fedora (#1237247)