3 %bcond_with apidocs # API documentation (files missing in tarball)
4 %bcond_without static_libs # static libraries
6 Summary: Implementation of HTTP/3 mapping over QUIC and QPACK in C
7 Summary(pl.UTF-8): Implementacja w C odwzorowania HTTP/3 w oparciu o QUIC i QPACK
13 #Source0Download: https://github.com/ngtcp2/nghttp3/releases
14 Source0: https://github.com/ngtcp2/nghttp3/releases/download/v%{version}/%{name}-%{version}.tar.xz
15 # Source0-md5: 1448b49160206c4a3ae09ac241de8337
16 URL: https://github.com/ngtcp2/nghttp3
17 BuildRequires: libstdc++-devel >= 6:7
18 BuildRequires: pkgconfig >= 1:0.20
19 BuildRequires: rpm-build >= 4.6
20 BuildRequires: tar >= 1:1.22
23 BuildRequires: sphinx-pdg
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 nghttp3 is an implementation of HTTP/3 mapping over QUIC and QPACK in
31 It does not depend on any particular QUIC transport implementation.
33 %description -l pl.UTF-8
34 nghttp3 to implementacja w C odwzorowania HTTP/3 w oparciu o QUIC i
38 Summary: Header files for nghttp3 library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki nghttp3
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 Header files for nghttp3 library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki nghttp3.
50 Summary: Static nghttp3 library
51 Summary(pl.UTF-8): Statyczna biblioteka nghttp3
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static nghttp3 library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka nghttp3.
62 Summary: API documentation for nghttp3 library
63 Summary(pl.UTF-8): Dokumentacja API biblioteki nghttp3
68 API documentation for nghttp3 library.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki nghttp3.
78 --disable-silent-rules \
79 %{!?with_static_libs:--disable-static}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 # no external dependencies, obsoleted by pkg-config
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnghttp3.la
95 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/nghttp3
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS COPYING ChangeLog README.rst
106 %attr(755,root,root) %{_libdir}/libnghttp3.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libnghttp3.so.3
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libnghttp3.so
112 %{_includedir}/nghttp3
113 %{_pkgconfigdir}/libnghttp3.pc
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libnghttp3.a
123 %defattr(644,root,root,755)