2015-02-16 09:13:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package nghttp2
|
|
|
|
#
|
2023-05-18 06:59:08 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-02-16 09:13:06 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-11 15:28:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-16 09:13:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-07-12 17:53:22 +02:00
|
|
|
%global soname libnghttp2
|
|
|
|
%global sover 14
|
2019-01-18 15:37:04 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2023-04-16 08:56:27 +02:00
|
|
|
Name: nghttp2
|
2024-04-04 12:40:11 +02:00
|
|
|
Version: 1.61.0
|
2015-02-16 09:13:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
|
|
|
|
License: MIT
|
2015-03-06 19:20:11 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-12-06 17:40:03 +01:00
|
|
|
URL: https://nghttp2.org/
|
2023-11-07 13:54:20 +01:00
|
|
|
Source0: https://github.com/nghttp2/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/nghttp2/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz.asc
|
|
|
|
Source2: nghttp2.keyring
|
|
|
|
Source3: baselibs.conf
|
2024-04-03 13:55:28 +02:00
|
|
|
Patch1: gcc7.patch
|
2015-02-16 09:13:06 +01:00
|
|
|
BuildRequires: gcc-c++
|
2023-05-18 06:59:08 +02:00
|
|
|
BuildRequires: libboost_system-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
2017-01-03 11:43:27 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-04-09 11:32:57 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-02-16 09:13:06 +01:00
|
|
|
BuildRequires: pkgconfig(cunit)
|
|
|
|
BuildRequires: pkgconfig(jansson)
|
2017-01-03 11:43:27 +01:00
|
|
|
BuildRequires: pkgconfig(libcares)
|
2015-11-16 18:23:15 +01:00
|
|
|
BuildRequires: pkgconfig(libev)
|
2018-07-09 17:17:12 +02:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
2017-07-10 16:41:22 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2015-02-16 09:13:06 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2024-01-29 08:18:49 +01:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.1.1
|
2015-02-16 09:13:06 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-12-06 17:40:03 +01:00
|
|
|
%ifnarch ppc %{arm}
|
|
|
|
BuildRequires: pkgconfig(jemalloc)
|
|
|
|
%endif
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%description
|
2015-11-01 20:46:13 +01:00
|
|
|
This is an implementation of Hypertext Transfer Protocol version 2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2017-10-26 12:42:35 +02:00
|
|
|
The framing layer of HTTP/2 is implemented as a form of reusable C library.
|
|
|
|
On top of that, we have implemented HTTP/2 client, server and proxy. We
|
|
|
|
have also developed load test and benchmarking tool for HTTP/2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
HPACK encoder and decoder are available as public API.
|
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%package -n %{soname}-%{sover}
|
|
|
|
Summary: Shared library for nghttp2
|
2015-02-16 09:13:06 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%description -n %{soname}-%{sover}
|
2017-10-26 12:42:35 +02:00
|
|
|
Shared C libraries for implementation of Hypertext Transfer Protocol
|
|
|
|
version 2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2019-01-18 15:37:04 +01:00
|
|
|
%package -n python3-nghttp2
|
2017-10-26 12:42:35 +02:00
|
|
|
Summary: Python3 bindings for nghttp2
|
2015-04-04 19:11:33 +02:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
2019-01-18 15:37:04 +01:00
|
|
|
%description -n python3-nghttp2
|
2017-10-26 12:42:35 +02:00
|
|
|
Python bindings for implementation of Hypertext Transfer Protocol version
|
|
|
|
2.
|
2015-04-04 19:11:33 +02:00
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%package -n %{soname}-devel
|
|
|
|
Summary: Development files for nghttp2
|
2015-02-16 09:13:06 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2019-08-19 14:28:04 +02:00
|
|
|
Requires: %{soname}-%{sover} = %{version}
|
2023-11-21 12:53:16 +01:00
|
|
|
Provides: %{name}-devel = %{version}
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%description -n %{soname}-devel
|
|
|
|
Development files for usage with libnghttp2, which implements
|
|
|
|
Hypertext Transfer Protocol version 2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%package doc
|
2015-11-01 20:46:13 +01:00
|
|
|
Summary: Documentation for nghttp2
|
2015-03-18 23:14:18 +01:00
|
|
|
Group: Documentation/HTML
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%description doc
|
2015-11-01 20:46:13 +01:00
|
|
|
Documentation for nghttp2, which includes a shared C library,
|
|
|
|
HTTP/2 client, server and proxy.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%prep
|
2024-04-03 13:55:28 +02:00
|
|
|
%autosetup -p1 -n nghttp2-%{version}
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2015-11-16 18:23:15 +01:00
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-app \
|
2019-01-18 15:37:04 +01:00
|
|
|
%{nil}
|
2021-12-21 10:38:45 +01:00
|
|
|
%make_build all
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%install
|
2019-01-18 15:37:04 +01:00
|
|
|
%make_install
|
2015-04-04 19:11:33 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2024-03-18 10:10:00 +01:00
|
|
|
|
2023-11-07 13:54:20 +01:00
|
|
|
# Do not ship this
|
2017-07-17 22:14:21 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/nghttp2
|
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
# None of applications using these man pages are built.
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man1/* \
|
|
|
|
doc/manual/html/.buildinfo
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2024-03-18 10:10:00 +01:00
|
|
|
# https://build.opensuse.org/request/show/1212476
|
|
|
|
%if %{suse_version} >= 1600
|
|
|
|
%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/fetch-ocsp-response
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%check
|
2023-11-07 13:54:20 +01:00
|
|
|
%make_build check
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2023-05-18 06:59:08 +02:00
|
|
|
%ldconfig_scriptlets -n %{soname}-%{sover}
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/deflatehd
|
|
|
|
%{_bindir}/inflatehd
|
2015-11-16 18:23:15 +01:00
|
|
|
%{_bindir}/h2load
|
|
|
|
%{_bindir}/nghttp
|
|
|
|
%{_bindir}/nghttpd
|
|
|
|
%{_bindir}/nghttpx
|
2015-11-01 20:46:13 +01:00
|
|
|
%{_datadir}/%{name}/
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%files -n %{soname}-%{sover}
|
2018-02-26 12:24:08 +01:00
|
|
|
%license COPYING
|
2015-11-01 20:46:13 +01:00
|
|
|
%{_libdir}/%{soname}.so.%{sover}*
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-11-01 20:46:13 +01:00
|
|
|
%files -n %{soname}-devel
|
|
|
|
%dir %{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/%{name}*.h
|
|
|
|
%{_libdir}/%{soname}.so
|
|
|
|
%{_libdir}/pkgconfig/%{soname}.pc
|
|
|
|
|
2015-02-16 09:13:06 +01:00
|
|
|
%changelog
|