2015-02-16 09:13:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package nghttp2
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%define lib_name lib%{name}-5
|
|
|
|
%define lib_name_asio lib%{name}_asio1
|
2015-02-16 09:13:06 +01:00
|
|
|
Name: nghttp2
|
2015-05-01 15:50:58 +02:00
|
|
|
Version: 0.7.13
|
2015-02-16 09:13:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
|
|
|
|
License: MIT
|
2015-03-06 19:20:11 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-02-16 09:13:06 +01:00
|
|
|
Url: https://nghttp2.org/
|
2015-03-18 23:14:18 +01:00
|
|
|
#Git-Clone: git://github.com/tatsuhiro-t/nghttp2
|
2015-02-16 09:13:06 +01:00
|
|
|
Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
2015-04-04 19:11:33 +02:00
|
|
|
BuildRequires: python-Cython
|
2015-02-16 09:13:06 +01:00
|
|
|
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.
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%package -n %{lib_name}
|
2015-02-16 09:13:06 +01:00
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%description -n %{lib_name}
|
2015-02-16 09:13:06 +01:00
|
|
|
Shared C libraries for implementation of Hypertext Transfer Protocol version 2
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%package -n %{lib_name_asio}
|
2015-02-16 09:13:06 +01:00
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%description -n %{lib_name_asio}
|
2015-02-16 09:13:06 +01:00
|
|
|
Shared librarios for asynchronous implementation of Hypertext Transfer Protocol version 2
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%package -n python-%{name}
|
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
|
|
|
%description -n python-%{name}
|
|
|
|
Python bindings for implementation of Hypertext Transfer Protocol version 2
|
|
|
|
|
2015-02-16 09:13:06 +01:00
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/C and C++
|
2015-04-04 19:11:33 +02:00
|
|
|
Requires: %{lib_name} = %{version}
|
2015-03-06 19:20:11 +01:00
|
|
|
Provides: %{name}-devel
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
2015-03-18 23:14:18 +01:00
|
|
|
Development files for usage with lib%{name}, which implements Hypertext
|
|
|
|
Transfer Protocol version 2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%package -n lib%{name}_asio-devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/C and C++
|
2015-04-04 19:11:33 +02:00
|
|
|
Requires: %{lib_name_asio} = %{version}
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%description -n lib%{name}_asio-devel
|
2015-03-18 23:14:18 +01:00
|
|
|
Development files for usage with lib%{name}_aio, which implements asynchronous
|
|
|
|
Hypertext Transfer Protocol version 2.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
2015-03-18 23:14:18 +01:00
|
|
|
Group: Documentation/HTML
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%description doc
|
2015-03-18 23:14:18 +01:00
|
|
|
Documentation for %{name}, which includes a shared C library, HTTP/2 client,
|
|
|
|
server and proxy.
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--enable-asio-lib \
|
2015-04-04 19:11:33 +02:00
|
|
|
--enable-python-bindings \
|
2015-03-18 23:14:18 +01:00
|
|
|
--disable-static
|
2015-02-16 09:13:06 +01:00
|
|
|
make %{?_smp_mflags} all html
|
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2015-04-04 19:11:33 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-02-16 09:13:06 +01:00
|
|
|
# none of applications using these man pages is built
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man1/*
|
|
|
|
rm -rf doc/manual/html/.buildinfo
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%post -n %{lib_name} -p /sbin/ldconfig
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%post -n %{lib_name_asio} -p /sbin/ldconfig
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%postun -n %{lib_name_asio} -p /sbin/ldconfig
|
2015-02-16 09:13:06 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/deflatehd
|
|
|
|
%{_bindir}/inflatehd
|
2015-04-12 19:53:42 +02:00
|
|
|
%{_datadir}/%{name}
|
2015-02-16 09:13:06 +01:00
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%files -n %{lib_name}
|
2015-02-16 09:13:06 +01:00
|
|
|
%defattr(-,root,root)
|
2015-03-18 23:14:18 +01:00
|
|
|
%doc COPYING
|
2015-02-16 09:13:06 +01:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%files -n %{lib_name_asio}
|
2015-02-16 09:13:06 +01:00
|
|
|
%defattr(-,root,root)
|
2015-03-18 23:14:18 +01:00
|
|
|
%doc COPYING
|
2015-02-16 09:13:06 +01:00
|
|
|
%{_libdir}/lib%{name}_asio.so.*
|
|
|
|
|
2015-04-04 19:11:33 +02:00
|
|
|
%files -n python-%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2015-02-16 09:13:06 +01:00
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2015-03-18 23:14:18 +01:00
|
|
|
%doc ChangeLog
|
2015-02-16 09:13:06 +01:00
|
|
|
%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)
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}/asio_http2.h
|
2015-04-04 19:11:33 +02:00
|
|
|
%{_includedir}/nghttp2/asio_http2_client.h
|
|
|
|
%{_includedir}/nghttp2/asio_http2_server.h
|
2015-02-16 09:13:06 +01:00
|
|
|
%{_libdir}/lib%{name}_asio.so
|
|
|
|
%{_libdir}/pkgconfig/lib%{name}_asio.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2015-03-18 23:14:18 +01:00
|
|
|
%doc AUTHORS ChangeLog
|
2015-02-16 09:13:06 +01:00
|
|
|
%doc doc/manual/html
|
|
|
|
%dir %{_datadir}/doc/%{name}
|
|
|
|
%doc %{_datadir}/doc/%{name}/README.rst
|
|
|
|
|
|
|
|
%changelog
|