2019-09-30 10:59:07 -04:00
|
|
|
Name: libwebsockets
|
|
|
|
|
Version: 2.4.2
|
2020-01-21 12:03:32 +08:00
|
|
|
Release: 3
|
2019-09-30 10:59:07 -04:00
|
|
|
Summary: A lightweight C library for Websockets
|
|
|
|
|
License: LGPLv2 and Public Domain and BSD and MIT and zlib
|
|
|
|
|
URL: https://libwebsockets.org
|
|
|
|
|
Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch6000: libwebsockets-fix-coredump.patch
|
2020-01-21 12:03:32 +08:00
|
|
|
Patch9000: 0001-add-secure-compile-option-in-Makefile.patch
|
2019-09-30 10:59:07 -04:00
|
|
|
|
|
|
|
|
BuildRequires: cmake openssl-devel zlib-devel libev-devel git
|
|
|
|
|
|
|
|
|
|
Provides: bundled(sha1-hollerbach) bundled(base64-decode) bundled(ssl-http2)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Libwebsockets (LWS) is a flexible, lightweight pure C library for implementing modern
|
|
|
|
|
network protocols easily with a tiny footprint, using a nonblocking event loop.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Headers for developing programs that will use %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-tests
|
|
|
|
|
Obsoletes: %{name}-tests
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the header files needed for developing
|
|
|
|
|
%{name} applications.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1 -S git
|
|
|
|
|
%build
|
|
|
|
|
mkdir -p build
|
|
|
|
|
cd build
|
|
|
|
|
%cmake \
|
|
|
|
|
-D LWS_LINK_TESTAPPS_DYNAMIC=ON \
|
|
|
|
|
-D LWS_USE_LIBEV=OFF \
|
|
|
|
|
-D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
|
|
|
|
|
-D LWS_USE_BUNDLED_ZLIB=OFF \
|
|
|
|
|
-D LWS_WITHOUT_BUILTIN_SHA1=ON \
|
|
|
|
|
-D LWS_WITH_STATIC=OFF \
|
|
|
|
|
-D LWS_MAX_SMP=32 \
|
|
|
|
|
-D CMAKE_BUILD_TYPE=Debug \
|
|
|
|
|
..
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd build
|
|
|
|
|
%make_install
|
|
|
|
|
%delete_la_and_a
|
|
|
|
|
find %{buildroot} -name '*.cmake' -exec rm -f {} ';'
|
|
|
|
|
find %{buildroot} -name '*_static.pc' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_bindir}/%{name}-test-*
|
|
|
|
|
%{_datadir}/%{name}-test-server/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc changelog README.md READMEs/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-21 12:03:32 +08:00
|
|
|
* Tue Jan 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.4.2-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:reboot
|
|
|
|
|
- DESC:add bind now secure compile option
|
|
|
|
|
|
2019-09-30 10:59:07 -04:00
|
|
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.2-2
|
|
|
|
|
- Package init
|