2 Summary: WebSocket Library
5 Group: System/Libraries
6 License: LGPL-2.1+ OR BSD-3-Clause
7 URL: https://github.com/warmcat/libwebsockets
8 Source0: %{name}-%{version}.tar.bz2
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires: zlib-devel
12 BuildRequires: openssl-devel
14 BuildRequires: pkgconfig(libsystemd-daemon)
16 %define _optdeveldir /opt/usr/devel/usr/
19 C Websockets Server Library
22 Summary: Development files for %{name}
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
27 Development files needed for building websocket clients and servers
30 %setup -q -n %{name}-%{version}
34 %cmake -DLWS_WITH_SSL=On -DLWS_WITHOUT_TESTAPPS=ON -DLWS_WITH_SERVER_STATUS=ON
43 %post -p /sbin/ldconfig
45 %postun -p /sbin/ldconfig
48 %manifest %{name}.manifest
49 %defattr(-,root,root,-)
50 %{_libdir}/libwebsockets*.so.*
54 %defattr(-,root,root,-)
55 %{_includedir}/libwebsockets.h
56 %{_includedir}/lws_config.h
57 %{_libdir}/libwebsockets.so
58 %{_libdir}/pkgconfig/*