2 Summary: WebSocket Library
5 Group: System/Libraries
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
42 mkdir -p %{buildroot}%{_datadir}/license
43 install -m0644 %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}%{_datadir}/license/%{name}
45 %post -p /sbin/ldconfig
47 %postun -p /sbin/ldconfig
50 %manifest %{name}.manifest
51 %defattr(-,root,root,-)
52 %{_libdir}/libwebsockets*.so.*
53 %{_datadir}/license/%{name}
56 %defattr(-,root,root,-)
57 %{_includedir}/libwebsockets.h
58 %{_includedir}/lws_config.h
59 %{_libdir}/libwebsockets.so
60 %{_libdir}/pkgconfig/*