From 5e4b705551e784872ef60e79992e605fb3b67db0457c7e56c48128f95fe927bb Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 21 Nov 2023 20:31:39 +0000 Subject: [PATCH] Accepting request 1127893 from devel:libraries:c_c++ OBS-URL: https://build.opensuse.org/request/show/1127893 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nghttp3?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + baselibs.conf | 1 + nghttp3-1.0.0.tar.xz | 3 ++ nghttp3-1.0.0.tar.xz.asc | 6 +++ nghttp3.changes | 4 ++ nghttp3.keyring | 39 +++++++++++++++ nghttp3.spec | 105 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 182 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 nghttp3-1.0.0.tar.xz create mode 100644 nghttp3-1.0.0.tar.xz.asc create mode 100644 nghttp3.changes create mode 100644 nghttp3.keyring create mode 100644 nghttp3.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..abfdf0a --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libnghttp3-9 diff --git a/nghttp3-1.0.0.tar.xz b/nghttp3-1.0.0.tar.xz new file mode 100644 index 0000000..be1a682 --- /dev/null +++ b/nghttp3-1.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d982fadb92ba6488cd5ef3dadc9d2c901084c812553aea9ab1c4bfa1215f77a +size 369384 diff --git a/nghttp3-1.0.0.tar.xz.asc b/nghttp3-1.0.0.tar.xz.asc new file mode 100644 index 0000000..7389327 --- /dev/null +++ b/nghttp3-1.0.0.tar.xz.asc @@ -0,0 +1,6 @@ +-----BEGIN PGP SIGNATURE----- + +iF0EABECAB0WIQT087kUdNHrKYib0O9+hAPV1nPDZgUCZSva/QAKCRB+hAPV1nPD +ZkMmAKDClKQn4ZcRTshLKXPBth+uuJ7r+QCcDU0wQ9rIjO6ApKpvHy04vGqsIVI= +=UUH+ +-----END PGP SIGNATURE----- diff --git a/nghttp3.changes b/nghttp3.changes new file mode 100644 index 0000000..b92746b --- /dev/null +++ b/nghttp3.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Nov 7 12:33:17 UTC 2023 - Dirk Müller + +- Initial package (1.0.0) diff --git a/nghttp3.keyring b/nghttp3.keyring new file mode 100644 index 0000000..1645176 --- /dev/null +++ b/nghttp3.keyring @@ -0,0 +1,39 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQGiBEmgJCARBACDsyRcJ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D5p6SISQQYEQIACQUCSaAkIAIbDAAKCRB+hAPV1nPD +ZqpZAJ9Kw73IdA3hw+wQEen991bFlMzHfQCgtG/GMjXB246Qt9XPVvToTSFJQPo= +=2agh +-----END PGP PUBLIC KEY BLOCK----- diff --git a/nghttp3.spec b/nghttp3.spec new file mode 100644 index 0000000..aa75a3c --- /dev/null +++ b/nghttp3.spec @@ -0,0 +1,105 @@ +# +# spec file for package nghttp3 +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%global soname libnghttp3 +%global sover 9 +Name: nghttp3 +Version: 1.0.0 +Release: 0 +Summary: Implementation of Hypertext Transfer Protocol version 3 in C +License: MIT +Group: Development/Libraries/C and C++ +URL: https://nghttp2.org/nghttp3/ +Source0: https://github.com/ngtcp2/nghttp3/releases/download/v%{version}/nghttp3-%{version}.tar.xz +Source1: https://github.com/ngtcp2/nghttp3/releases/download/v%{version}/nghttp3-%{version}.tar.xz.asc +Source2: nghttp3.keyring +Source3: baselibs.conf +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(cunit) + +%description +nghttp3 is an implementation of RFC 9114 HTTP/3 mapping over QUIC and RFC 9204 QPACK in C. + +It does not depend on any particular QUIC transport implementation. + +This library implements RFC 9114 HTTP/3. It does not support server push. + +The following extensions have been implemented: + +Extensible Prioritization Scheme for HTTP +Bootstrapping WebSockets with HTTP/3 + +%package -n %{soname}-%{sover} +Summary: Shared library for nghttp3 +Group: System/Libraries + +%description -n %{soname}-%{sover} +Shared C libraries for implementation of Hypertext Transfer Protocol +version 3. + +%package -n %{soname}-devel +Summary: Development files for nghttp3 +Group: Development/Languages/C and C++ +Requires: %{soname}-%{sover} = %{version} +Provides: %{name}-devel = %{version} + +%description -n %{soname}-devel +Development files for usage with libnghttp3, which implements +Hypertext Transfer Protocol version 3. + +%prep +%setup -q -n nghttp3-%{version} + +%build +%configure \ + --disable-static \ + --disable-silent-rules \ + --enable-lib-only \ + --with-cunit \ + %{nil} +%make_build all + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +# Do not ship this +rm -rf %{buildroot}%{_datadir}/doc/nghttp3 + +# None of applications using these man pages are built. +rm -rf %{buildroot}%{_mandir}/man1/* \ + doc/manual/html/.buildinfo + +%check +%make_build check + +%ldconfig_scriptlets -n %{soname}-%{sover} + +%files -n %{soname}-%{sover} +%license COPYING +%{_libdir}/%{soname}.so.%{sover}* + +%files -n %{soname}-devel +%dir %{_includedir}/%{name}/ +%{_includedir}/%{name}/*.h +%{_libdir}/%{soname}.so +%{_libdir}/pkgconfig/%{soname}.pc + +%changelog