2 Summary: WebSocket Library
5 Group: System/Libraries
6 License: MIT with exceptions
7 URL: https://github.com/warmcat/libwebsockets
8 Source0: %{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires: zlib-devel
12 BuildRequires: pkgconfig(openssl1.1)
13 BuildRequires: openssl1.1
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 \
35 -DLWS_WITHOUT_TESTAPPS=ON \
36 -DLWS_WITH_SERVER_STATUS=ON \
38 -DLWS_WITH_SO_BINDTODEVICE=ON \
49 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
54 %manifest %{name}.manifest
55 %defattr(-,root,root,-)
56 %{_libdir}/libwebsockets*.so.*
60 %defattr(-,root,root,-)
61 %{_includedir}/libwebsockets.h
62 %{_includedir}/lws_config.h
63 %{_includedir}/libwebsockets/*
64 %{_libdir}/libwebsockets.so
65 %{_libdir}/pkgconfig/*