3 %bcond_without tests # don't perform "make check"
4 %bcond_without static_libs # don't build static library
6 Summary: SPDY C library
7 Summary(pl.UTF-8): Biblioteka C SPDY
13 #Source0Download: https://github.com/tatsuhiro-t/spdylay/releases
14 Source0: https://github.com/tatsuhiro-t/spdylay/releases/download/v%{version}/%{name}-%{version}.tar.xz
15 # Source0-md5: d1c976a8d2e222b00cee4b180be5e022
16 URL: http://tatsuhiro-t.github.io/spdylay/
17 %{?with_tests:BuildRequires: CUnit >= 2.1}
18 BuildRequires: libevent-devel >= 2.0.8
19 BuildRequires: libstdc++-devel
20 BuildRequires: libxml2-devel >= 1:2.7.7
21 BuildRequires: openssl-devel >= 1.0.1
22 BuildRequires: pkgconfig >= 1:0.20
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: zlib-devel >= 1.2.3
26 Requires: libevent >= 2.0.8
27 Requires: libxml2 >= 1:2.7.7
28 Requires: openssl >= 1.0.1
29 Requires: zlib >= 1.2.3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This is an experimental implementation of Google's SPDY protocol in C.
34 This library provides SPDY version 2 and 3 framing layer
35 implementation. It does not perform any I/O operations. When the
36 library needs them, it calls the callback functions provided by the
37 application. It also does not include any event polling mechanism, so
38 the application can freely choose the way of handling events. This
39 library code does not depend on any particular SSL library (except for
40 example programs which depend on OpenSSL 1.0.1 or later).
42 %description -l pl.UTF-8
43 Ta biblioteka jest eksperymentalną implementacją protokołu SPDY
44 Google'a w C. Udostępnia implementację warstwy ramek SPDY w wersji 2 i
45 3. Nie wykonuje żadnych operacji we/wy - w razie potrzeby odwołuje się
46 do wywołań wstecznych dostarczonych przez aplikację. Nie zawiera także
47 żadnego mechanizmu typu poll - aplikacja może dowolnie wybrać metodę
48 obsługi zdarzeń. Biblioteka nie zależy od żadnej konkretnej biblioteki
49 SSL (poza programami przykładowymi, które wymagają OpenSSL >= 1.0.1).
52 Summary: Files needed for developing with libspdylay
53 Summary(pl.UTF-8): Pliki niezbędne do tworzenia aplikacji z użyciem libspdylay
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
56 Requires: zlib-devel >= 1.2.3
59 Files needed for building applications with libspdylay.
61 %description devel -l pl.UTF-8
62 Pliki niezbędne do tworzenia aplikacji z użyciem libspdylay.
65 Summary: Static libspdylay library
66 Summary(pl.UTF-8): Statyczna biblioteka libspdylay
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static libspdylay library.
73 %description static -l pl.UTF-8
74 Statyczna biblioteka libspdylay.
81 %{!?with_static_libs:--disable-static}
90 rm -rf $RPM_BUILD_ROOT
93 DESTDIR=$RPM_BUILD_ROOT
95 # obsoleted by pkg-config
96 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libspdylay.la
98 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/spdylay
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc AUTHORS COPYING ChangeLog NEWS README.rst
109 %attr(755,root,root) %{_bindir}/shrpx
110 %attr(755,root,root) %{_bindir}/spdycat
111 %attr(755,root,root) %{_bindir}/spdyd
112 %attr(755,root,root) %{_libdir}/libspdylay.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libspdylay.so.7
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libspdylay.so
118 %{_includedir}/spdylay
119 %{_pkgconfigdir}/libspdylay.pc
121 %if %{with static_libs}
123 %defattr(644,root,root,755)
124 %{_libdir}/libspdylay.a