2015-02-16 08:13:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package nghttp2
|
|
|
|
#
|
2023-05-18 04:59:08 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-02-16 08:13:06 +00: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 14:28:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-16 08:13:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-07-12 15:53:22 +00:00
|
|
|
%global soname libnghttp2
|
|
|
|
%global sover 14
|
2019-01-18 14:37:04 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2023-04-16 06:56:27 +00:00
|
|
|
Name: nghttp2
|
2024-06-17 18:13:31 +00:00
|
|
|
Version: 1.62.1
|
2015-02-16 08:13:06 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
|
|
|
|
License: MIT
|
2015-03-06 18:20:11 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-12-06 16:40:03 +00:00
|
|
|
URL: https://nghttp2.org/
|
2023-11-07 12:54:20 +00: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-06-17 18:13:31 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} == 1500
|
|
|
|
BuildRequires: gcc13-c++
|
|
|
|
%else
|
2015-02-16 08:13:06 +00:00
|
|
|
BuildRequires: gcc-c++
|
2024-06-17 18:13:31 +00:00
|
|
|
%endif
|
2023-05-18 04:59:08 +00:00
|
|
|
BuildRequires: libboost_system-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
2017-01-03 10:43:27 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-04-09 09:32:57 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-02-16 08:13:06 +00:00
|
|
|
BuildRequires: pkgconfig(cunit)
|
|
|
|
BuildRequires: pkgconfig(jansson)
|
2017-01-03 10:43:27 +00:00
|
|
|
BuildRequires: pkgconfig(libcares)
|
2015-11-16 17:23:15 +00:00
|
|
|
BuildRequires: pkgconfig(libev)
|
2018-07-09 15:17:12 +00:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
2017-07-10 14:41:22 +00:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2015-02-16 08:13:06 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2024-01-29 07:18:49 +00:00
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.1.1
|
2015-02-16 08:13:06 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-12-06 16:40:03 +00:00
|
|
|
%ifnarch ppc %{arm}
|
|
|
|
BuildRequires: pkgconfig(jemalloc)
|
|
|
|
%endif
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%description
|
2015-11-01 19:46:13 +00:00
|
|
|
This is an implementation of Hypertext Transfer Protocol version 2.
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2017-10-26 10:42:35 +00: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 08:13:06 +00:00
|
|
|
|
|
|
|
HPACK encoder and decoder are available as public API.
|
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%package -n %{soname}-%{sover}
|
|
|
|
Summary: Shared library for nghttp2
|
2015-02-16 08:13:06 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%description -n %{soname}-%{sover}
|
2017-10-26 10:42:35 +00:00
|
|
|
Shared C libraries for implementation of Hypertext Transfer Protocol
|
|
|
|
version 2.
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2019-01-18 14:37:04 +00:00
|
|
|
%package -n python3-nghttp2
|
2017-10-26 10:42:35 +00:00
|
|
|
Summary: Python3 bindings for nghttp2
|
2015-04-04 17:11:33 +00:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
2019-01-18 14:37:04 +00:00
|
|
|
%description -n python3-nghttp2
|
2017-10-26 10:42:35 +00:00
|
|
|
Python bindings for implementation of Hypertext Transfer Protocol version
|
|
|
|
2.
|
2015-04-04 17:11:33 +00:00
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%package -n %{soname}-devel
|
|
|
|
Summary: Development files for nghttp2
|
2015-02-16 08:13:06 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2019-08-19 12:28:04 +00:00
|
|
|
Requires: %{soname}-%{sover} = %{version}
|
2023-11-21 11:53:16 +00:00
|
|
|
Provides: %{name}-devel = %{version}
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%description -n %{soname}-devel
|
|
|
|
Development files for usage with libnghttp2, which implements
|
|
|
|
Hypertext Transfer Protocol version 2.
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%package doc
|
2015-11-01 19:46:13 +00:00
|
|
|
Summary: Documentation for nghttp2
|
2015-03-18 22:14:18 +00:00
|
|
|
Group: Documentation/HTML
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%description doc
|
2015-11-01 19:46:13 +00:00
|
|
|
Documentation for nghttp2, which includes a shared C library,
|
|
|
|
HTTP/2 client, server and proxy.
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%prep
|
2024-04-03 11:55:28 +00:00
|
|
|
%autosetup -p1 -n nghttp2-%{version}
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%build
|
2024-06-17 18:13:31 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} == 1500
|
|
|
|
export CC=/usr/bin/gcc-13
|
|
|
|
export CXX=/usr/bin/g++-13
|
|
|
|
%endif
|
2015-02-16 08:13:06 +00:00
|
|
|
%configure \
|
2015-11-16 17:23:15 +00:00
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-app \
|
2019-01-18 14:37:04 +00:00
|
|
|
%{nil}
|
2021-12-21 09:38:45 +00:00
|
|
|
%make_build all
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%install
|
2019-01-18 14:37:04 +00:00
|
|
|
%make_install
|
2015-04-04 17:11:33 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2024-03-18 09:10:00 +00:00
|
|
|
|
2023-11-07 12:54:20 +00:00
|
|
|
# Do not ship this
|
2017-07-17 20:14:21 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/nghttp2
|
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
# None of applications using these man pages are built.
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man1/* \
|
|
|
|
doc/manual/html/.buildinfo
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2024-03-18 09:10:00 +00: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 19:46:13 +00:00
|
|
|
%check
|
2023-11-07 12:54:20 +00:00
|
|
|
%make_build check
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2023-05-18 04:59:08 +00:00
|
|
|
%ldconfig_scriptlets -n %{soname}-%{sover}
|
2015-02-16 08:13:06 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/deflatehd
|
|
|
|
%{_bindir}/inflatehd
|
2015-11-16 17:23:15 +00:00
|
|
|
%{_bindir}/h2load
|
|
|
|
%{_bindir}/nghttp
|
|
|
|
%{_bindir}/nghttpd
|
|
|
|
%{_bindir}/nghttpx
|
2015-11-01 19:46:13 +00:00
|
|
|
%{_datadir}/%{name}/
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%files -n %{soname}-%{sover}
|
2018-02-26 11:24:08 +00:00
|
|
|
%license COPYING
|
2015-11-01 19:46:13 +00:00
|
|
|
%{_libdir}/%{soname}.so.%{sover}*
|
2015-02-16 08:13:06 +00:00
|
|
|
|
2015-11-01 19:46:13 +00:00
|
|
|
%files -n %{soname}-devel
|
|
|
|
%dir %{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/%{name}*.h
|
|
|
|
%{_libdir}/%{soname}.so
|
|
|
|
%{_libdir}/pkgconfig/%{soname}.pc
|
|
|
|
|
2015-02-16 08:13:06 +00:00
|
|
|
%changelog
|