Accepting request 286216 from home:pluskalm
New package, please set me as maintainer OBS-URL: https://build.opensuse.org/request/show/286216 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=1
This commit is contained in:
commit
8bcc009de4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
nghttp2-0.7.4.tar.xz
Normal file
3
nghttp2-0.7.4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fb71dddd7b94c8af83cb6a89b76f30ebbe1e8b0085997c370934dd57667be8f6
|
||||||
|
size 853256
|
5
nghttp2.changes
Normal file
5
nghttp2.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 15 11:00:12 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Initial packaging of 0.7.4
|
||||||
|
|
156
nghttp2.spec
Normal file
156
nghttp2.spec
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
#
|
||||||
|
# spec file for package nghttp2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2015 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: nghttp2
|
||||||
|
Version: 0.7.4
|
||||||
|
Release: 0
|
||||||
|
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
|
||||||
|
License: MIT
|
||||||
|
Group: Devel/Libraries/C and C++
|
||||||
|
Url: https://nghttp2.org/
|
||||||
|
Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
BuildRequires: pkgconfig(cunit)
|
||||||
|
BuildRequires: pkgconfig(jansson)
|
||||||
|
BuildRequires: pkgconfig(libevent)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
BuildRequires: pkgconfig(python)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is an implementation of Hypertext Transfer Protocol version 2 in C.
|
||||||
|
|
||||||
|
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 and SPDY.
|
||||||
|
|
||||||
|
HPACK encoder and decoder are available as public API.
|
||||||
|
|
||||||
|
%package -n lib%{name}-5
|
||||||
|
Summary: Shared library for %{name}
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n lib%{name}-5
|
||||||
|
Shared C libraries for implementation of Hypertext Transfer Protocol version 2
|
||||||
|
|
||||||
|
%package -n lib%{name}_asio0
|
||||||
|
Summary: Shared library for %{name}
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n lib%{name}_asio0
|
||||||
|
Shared librarios for asynchronous implementation of Hypertext Transfer Protocol version 2
|
||||||
|
|
||||||
|
%package -n lib%{name}-devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Provides: %{name}-devel
|
||||||
|
Requires: lib%{name}-5 = %{version}
|
||||||
|
|
||||||
|
%description -n lib%{name}-devel
|
||||||
|
Development files for usage with lib%{name} which implements Hypertext Transfer Protocol version 2
|
||||||
|
|
||||||
|
%package -n lib%{name}_asio-devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: lib%{name}_asio0 = %{version}
|
||||||
|
|
||||||
|
%description -n lib%{name}_asio-devel
|
||||||
|
Development files for usage with lib%{name}_aio which implements asynchronous Hypertext Transfer Protocol version 2
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Group: Documentation
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name} which includes shared C library, HTTP/2 client, server and proxy.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--enable-asio-lib \
|
||||||
|
--enable-static=no
|
||||||
|
make %{?_smp_mflags} all html
|
||||||
|
|
||||||
|
%check
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
rm -rf %{buildroot}%{_libdir}/lib%{name}.la
|
||||||
|
rm -rf %{buildroot}%{_libdir}/lib%{name}_asio.la
|
||||||
|
# none of applications using these man pages is built
|
||||||
|
rm -rf %{buildroot}%{_mandir}/man1/*
|
||||||
|
rm -rf doc/manual/html/.buildinfo
|
||||||
|
|
||||||
|
%post -n lib%{name}-5 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n lib%{name}_asio0 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n lib%{name}-5 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n lib%{name}_asio0 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%{_bindir}/deflatehd
|
||||||
|
%{_bindir}/inflatehd
|
||||||
|
|
||||||
|
%files -n lib%{name}-5
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%{_libdir}/lib%{name}.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_asio0
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%{_libdir}/lib%{name}_asio.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%dir %{_includedir}/%{name}
|
||||||
|
%{_includedir}/%{name}/nghttp2.h
|
||||||
|
%{_includedir}/%{name}/nghttp2ver.h
|
||||||
|
%{_libdir}/lib%{name}.so
|
||||||
|
%{_libdir}/pkgconfig/lib%{name}.pc
|
||||||
|
|
||||||
|
%files -n lib%{name}_asio-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%dir %{_includedir}/%{name}
|
||||||
|
%{_includedir}/%{name}/asio_http2.h
|
||||||
|
%{_libdir}/lib%{name}_asio.so
|
||||||
|
%{_libdir}/pkgconfig/lib%{name}_asio.pc
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING AUTHORS ChangeLog
|
||||||
|
%doc doc/manual/html
|
||||||
|
%dir %{_datadir}/doc/%{name}
|
||||||
|
%doc %{_datadir}/doc/%{name}/README.rst
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user