Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Rings:1-MinimalX
nghttp2
nghttp2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nghttp2.spec of Package nghttp2
# # spec file for package nghttp2 # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname libnghttp2 %define sover 14 %define soname_asio libnghttp2_asio %define sover_asio 1 Name: nghttp2 Version: 1.31.1 Release: 0 Summary: Implementation of Hypertext Transfer Protocol version 2 in C License: MIT Group: Development/Libraries/C and C++ URL: https://nghttp2.org/ Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz Source1: baselibs.conf # PATCH-FIX-OPENSUSE nghttp2-remove-python-build.patch Patch0: %{name}-remove-python-build.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(jansson) BuildRequires: pkgconfig(libcares) BuildRequires: pkgconfig(libev) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(zlib) %ifnarch ppc %{arm} BuildRequires: pkgconfig(jemalloc) %endif %if 0%{?suse_version} > 1325 BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel %else BuildRequires: boost-devel %endif %description This is an implementation of Hypertext Transfer Protocol version 2. 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. HPACK encoder and decoder are available as public API. %package -n %{soname}-%{sover} Summary: Shared library for nghttp2 Group: System/Libraries %description -n %{soname}-%{sover} Shared C libraries for implementation of Hypertext Transfer Protocol version 2. %package -n %{soname_asio}%{sover_asio} Summary: Shared library for nghttp2 Group: System/Libraries %description -n %{soname_asio}%{sover_asio} Shared libraries for asynchronous implementation of Hypertext Transfer Protocol version 2. %package -n python3-%{name} Summary: Python3 bindings for nghttp2 Group: Development/Libraries/Python %description -n python3-%{name} Python bindings for implementation of Hypertext Transfer Protocol version 2. %package -n %{soname}-devel Summary: Development files for nghttp2 Group: Development/Languages/C and C++ Requires: %{soname_asio}%{sover_asio} = %{version} Provides: %{name}-devel %description -n %{soname}-devel Development files for usage with libnghttp2, which implements Hypertext Transfer Protocol version 2. %package -n %{soname_asio}-devel Summary: Development files for nghttp2 Group: Development/Languages/C and C++ Requires: %{soname_asio}%{sover_asio} = %{version} %description -n %{soname_asio}-devel Development files for usage with libnghttp2_aio, which implements asynchronous Hypertext Transfer Protocol version 2. %package doc Summary: Documentation for nghttp2 Group: Documentation/HTML %description doc Documentation for nghttp2, which includes a shared C library, HTTP/2 client, server and proxy. %prep %setup -q %patch0 -p1 # fix python shebang sed -i -e 's:#!%{_bindir}/env python:#!%{_bindir}/python3:g' script/fetch-ocsp-response %build autoreconf -fiv export PYTHON=%{_bindir}/python3 %configure \ --disable-static \ --disable-silent-rules \ --enable-asio-lib \ --enable-app \ --enable-python-bindings make %{?_smp_mflags} all pushd python make %{?_smp_mflags} nghttp2.c %python3_build popd %install %make_install pushd python %python3_install popd find %{buildroot} -type f -name "*.la" -delete -print # Do not ship theis rm -rf %{buildroot}%{_datadir}/doc/nghttp2 # None of applications using these man pages are built. rm -rf %{buildroot}%{_mandir}/man1/* \ doc/manual/html/.buildinfo %check # One test fails if python-sphinx is not present make %{?_smp_mflags} check ||: %post -n %{soname}-%{sover} -p /sbin/ldconfig %post -n %{soname_asio}%{sover_asio} -p /sbin/ldconfig %postun -n %{soname}-%{sover} -p /sbin/ldconfig %postun -n %{soname_asio}%{sover_asio} -p /sbin/ldconfig %files %{_bindir}/deflatehd %{_bindir}/inflatehd %{_bindir}/h2load %{_bindir}/nghttp %{_bindir}/nghttpd %{_bindir}/nghttpx %{_datadir}/%{name}/ %files -n %{soname}-%{sover} %license COPYING %{_libdir}/%{soname}.so.%{sover}* %files -n %{soname_asio}%{sover_asio} %license COPYING %{_libdir}/%{soname_asio}.so.%{sover_asio}* %files -n python3-%{name} %{python3_sitearch}/nghttp2.*.so %{python3_sitearch}/python_nghttp2-* %files -n %{soname}-devel %dir %{_includedir}/%{name}/ %{_includedir}/%{name}/%{name}*.h %{_libdir}/%{soname}.so %{_libdir}/pkgconfig/%{soname}.pc %files -n %{soname_asio}-devel %dir %{_includedir}/%{name}/ %{_includedir}/%{name}/asio_http2*.h %{_libdir}/%{soname_asio}.so %{_libdir}/pkgconfig/%{soname_asio}.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor