2016-01-04 12:56:22 +00:00
|
|
|
Summary: Meta-package that only requires libnghttp2
|
2015-07-15 21:04:08 +00:00
|
|
|
Name: nghttp2
|
2015-12-25 11:12:36 +00:00
|
|
|
Version: 1.6.0
|
2016-01-04 12:56:22 +00:00
|
|
|
Release: 1%{?dist}.1
|
2015-07-15 21:04:08 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Applications/Internet
|
|
|
|
URL: https://nghttp2.org/
|
|
|
|
Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
Requires: libnghttp2%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2016-01-04 12:56:22 +00:00
|
|
|
This package installs no files. It only requires the libnghttp2 package.
|
2015-07-15 21:04:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package -n libnghttp2
|
|
|
|
Summary: A library implementing the HTTP/2 protocol
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description -n libnghttp2
|
|
|
|
libnghttp2 is a library implementing the Hypertext Transfer Protocol
|
|
|
|
version 2 (HTTP/2) protocol in C.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libnghttp2-devel
|
|
|
|
Summary: Files needed for building applications with libnghttp2
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libnghttp2%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description -n libnghttp2-devel
|
|
|
|
The libnghttp2-devel package includes libraries and header files needed
|
|
|
|
for building applications with libnghttp2.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--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 %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2016-01-04 12:56:22 +00:00
|
|
|
# do not install man pages and helper scripts for tools that are not available
|
|
|
|
rm -fr "$RPM_BUILD_ROOT%{_datadir}/nghttp2"
|
|
|
|
rm -fr "$RPM_BUILD_ROOT%{_mandir}/man1"
|
|
|
|
|
2015-07-15 21:04:08 +00:00
|
|
|
%post -n libnghttp2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libnghttp2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# test the just built library instead of the system one, without using rpath
|
2015-11-26 14:19:59 +00:00
|
|
|
export "LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH"
|
2015-07-15 21:04:08 +00:00
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
%files -n libnghttp2
|
|
|
|
%{_libdir}/libnghttp2.so.*
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%files -n libnghttp2-devel
|
|
|
|
%{_includedir}/nghttp2
|
|
|
|
%{_libdir}/pkgconfig/libnghttp2.pc
|
|
|
|
%{_libdir}/libnghttp2.so
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2016-01-04 12:56:22 +00:00
|
|
|
* Mon Jan 04 2016 Kamil Dudka <kdudka@redhat.com> 1.6.0-1.el6.1
|
|
|
|
- make the package build on RHEL-6 (libnghttp2 only)
|
|
|
|
|
2015-12-25 11:12:36 +00:00
|
|
|
* Fri Dec 25 2015 Kamil Dudka <kdudka@redhat.com> 1.6.0-1
|
2016-01-04 12:24:24 +00:00
|
|
|
- update to the latest upstream release (fixes CVE-2015-8659)
|
2015-12-25 11:12:36 +00:00
|
|
|
|
2015-11-26 14:19:59 +00:00
|
|
|
* Thu Nov 26 2015 Kamil Dudka <kdudka@redhat.com> 1.5.0-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-10-26 14:44:00 +00:00
|
|
|
* Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-09-24 16:45:18 +00:00
|
|
|
* Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-09-23 15:57:02 +00:00
|
|
|
* Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-09-16 14:15:52 +00:00
|
|
|
* Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-09-14 11:08:05 +00:00
|
|
|
* Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-08-31 09:55:42 +00:00
|
|
|
* Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-08-17 08:38:19 +00:00
|
|
|
* Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-08-09 08:56:31 +00:00
|
|
|
* Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-07-15 21:25:03 +00:00
|
|
|
* Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1
|
|
|
|
- update to the latest upstream release
|
|
|
|
|
2015-07-15 21:04:08 +00:00
|
|
|
* Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1
|
|
|
|
- packaged for Fedora (#1237247)
|