From 7c5ee00a2ff472591258166ddbdfd9749d8447ed Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:38:13 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.42.0-1mamba;Tue Dec 08 2020] --- README.md | 4 ++ nghttp2.spec | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 nghttp2.spec diff --git a/README.md b/README.md index 1ea9156..08415a7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # nghttp2 +This is an implementation of the Hypertext Transfer Protocol version 2 in C. +The framing layer of HTTP/2 is implemented as a reusable C library. +On top of that, we have implemented an HTTP/2 client, server and proxy. We have also developed load test and benchmarking tools for HTTP/2. + diff --git a/nghttp2.spec b/nghttp2.spec new file mode 100644 index 0000000..4606c28 --- /dev/null +++ b/nghttp2.spec @@ -0,0 +1,103 @@ +Name: nghttp2 +Version: 1.42.0 +Release: 1mamba +Summary: An implementation of the Hypertext Transfer Protocol version 2 in C +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://nghttp2.org/ +Source: https://github.com/nghttp2/nghttp2.git/v%{version}/nghttp2-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libcares-devel +BuildRequires: libgcc +BuildRequires: libjansson-devel +BuildRequires: libjemalloc-devel +BuildRequires: libopenssl-devel +BuildRequires: libpython3-devel +BuildRequires: libstdc++6-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +BuildRequires: python3 +## AUTOBUILDREQ-END +BuildRequires: Cython +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is an implementation of the Hypertext Transfer Protocol version 2 in C. +The framing layer of HTTP/2 is implemented as a reusable C library. +On top of that, we have implemented an HTTP/2 client, server and proxy. We have also developed load test and benchmarking tools for HTTP/2. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build \ + -DPYTHON_EXECUTABLE=%{__python3} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/deflatehd +%{_bindir}/inflatehd +%{_mandir}/man1/h2load.1* +%{_mandir}/man1/nghttp.1* +%{_mandir}/man1/nghttpd.1* +%{_mandir}/man1/nghttpx.1* +%{_datadir}/nghttp2/fetch-ocsp-response +%dir %{_docdir}/nghttp2 +%{_docdir}/nghttp2/README.rst + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libnghttp2.so.* +%{python3_sitearch}/nghttp2.cpython-*.so +%dir %{python3_sitearch}/python_nghttp2-%{version}-py*.egg-info +%{python3_sitearch}/python_nghttp2-%{version}-py*.egg-info/* +%doc AUTHORS COPYING LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/nghttp2 +%{_includedir}/nghttp2/*.h +%{_libdir}/libnghttp2.so +%{_libdir}/pkgconfig/libnghttp2.pc + +%changelog +* Tue Dec 08 2020 Silvan Calarco 1.42.0-1mamba +- package created using the webbuild interface