3 %bcond_without tests # don't perform "make check"
4 %bcond_without static_libs # don't build static library
6 Summary: HTTP/2.0 C library
7 Summary(pl.UTF-8): Biblioteka C HTTP/2.0
13 Source0: https://github.com/tatsuhiro-t/nghttp2/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 0e125fb8a377aab1f29df675828807c8
15 URL: https://github.com/tatsuhiro-t/nghttp2
16 %{?with_tests:BuildRequires: CUnit >= 2.1}
17 BuildRequires: autoconf >= 2.61
18 BuildRequires: automake
19 %{?with_tests:BuildRequires: jansson-devel >= 2.5}
20 BuildRequires: libevent-devel >= 2.0.8
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:2.2.6
23 BuildRequires: libxml2-devel >= 1:2.7.7
24 BuildRequires: openssl-devel >= 1.0.1
25 BuildRequires: pkgconfig >= 1:0.20
26 BuildRequires: python >= 1:2.7
27 BuildRequires: python-Cython
28 BuildRequires: spdylay-devel >= 1.2.3
29 BuildRequires: tar >= 1:1.22
31 BuildRequires: zlib-devel >= 1.2.3
32 Requires: libevent >= 2.0.8
33 Requires: libxml2 >= 1:2.7.7
34 Requires: openssl >= 1.0.1
35 Requires: spdylay >= 1.2.3
36 Requires: zlib >= 1.2.3
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 This is an experimental implementation of Hypertext Transfer Protocol
43 %description -l pl.UTF-8
44 Ta biblioteka jest eksperymentalną implementacją protokołu HTTP
45 (Hypertext Transfer Protocol) w wersji 2.0.
48 Summary: Files needed for developing with libnghttp2
49 Summary(pl.UTF-8): Pliki niezbędne do tworzenia aplikacji z użyciem libnghttp2
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: zlib-devel >= 1.2.3
55 Files needed for building applications with libnghttp2.
57 %description devel -l pl.UTF-8
58 Pliki niezbędne do tworzenia aplikacji z użyciem libnghttp2.
61 Summary: Static libnghttp2 library
62 Summary(pl.UTF-8): Statyczna biblioteka libnghttp2
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static libnghttp2 library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libnghttp2.
72 %package -n python-nghttp2
73 Summary: Python binding to nghttp2 library
74 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki nghttp2
75 Group: Libraries/Python
76 Requires: %{name} = %{version}-%{release}
77 Requires: python-libs >= 1:2.7
79 %description -n python-nghttp2
80 Python binding to nghttp2 library.
82 %description -n python-nghttp2 -l pl.UTF-8
83 Wiązanie Pythona do biblioteki nghttp2.
95 %{!?with_static_libs:--disable-static}
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT
109 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/nghttp2.la \
110 %{?with_static_libs:$RPM_BUILD_ROOT%{py_sitedir}/nghttp2.a}
111 # obsoleted by pkg-config
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnghttp2.la
114 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/nghttp2
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc AUTHORS COPYING README.rst
125 %attr(755,root,root) %{_bindir}/deflatehd
126 %attr(755,root,root) %{_bindir}/inflatehd
127 %attr(755,root,root) %{_bindir}/nghttp
128 %attr(755,root,root) %{_bindir}/nghttpd
129 %attr(755,root,root) %{_bindir}/nghttpx
130 %attr(755,root,root) %{_libdir}/libnghttp2.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libnghttp2.so.2
132 %{_mandir}/man1/nghttp.1*
133 %{_mandir}/man1/nghttpd.1*
134 %{_mandir}/man1/nghttpx.1*
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libnghttp2.so
139 %{_includedir}/nghttp2
140 %{_pkgconfigdir}/libnghttp2.pc
142 %if %{with static_libs}
144 %defattr(644,root,root,755)
145 %{_libdir}/libnghttp2.a
148 %files -n python-nghttp2
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{py_sitedir}/nghttp2.so