Upgrade to 4.3.2 71/288971/1 accepted/tizen/unified/20230302.131055
authorcheoleun moon <chleun.moon@samsung.com>
Mon, 27 Feb 2023 05:37:29 +0000 (14:37 +0900)
committercheoleun moon <chleun.moon@samsung.com>
Mon, 27 Feb 2023 05:42:31 +0000 (14:42 +0900)
Change-Id: Ibbe3393d975b90696db8e4796263b84698f3daf6

1  2 
lib/CMakeLists.txt
lib/core-net/client/connect3.c
packaging/libwebsockets.spec

@@@ -334,9 -339,8 +340,9 @@@ includedir=\${prefix}/includ
  Name: libwebsockets_static
  Description: Websockets server and client static library
  Version: ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
 +Requires: openssl1.1
  
- Libs: -L\${libdir} -lwebsockets_static
+ Libs: -L\${libdir} -l:libwebsockets${CMAKE_STATIC_LIBRARY_SUFFIX}
  Libs.private:
  Cflags: -I\${includedir}
  "
Simple merge
index cde71ae,0000000..0e650b0
mode 100644,000000..100644
--- /dev/null
@@@ -1,68 -1,0 +1,68 @@@
- Version:    4.3.stable
 +Name:       libwebsockets
 +Summary:    WebSocket Library
++Version:    4.3.2
 +Release:    0
 +Group:      System/Libraries
 +License:    MIT with exceptions
 +URL:        https://github.com/warmcat/libwebsockets
 +Source0:    %{name}-%{version}.tar.gz
 +Requires(post): /sbin/ldconfig
 +Requires(postun): /sbin/ldconfig
 +BuildRequires: zlib-devel
 +BuildRequires: pkgconfig(openssl1.1)
 +BuildRequires: openssl1.1
 +BuildRequires: cmake
 +
 +%define _optdeveldir /opt/usr/devel/usr/
 +
 +%description
 +C Websockets Server Library
 +
 +%package devel
 +Summary:    Development files for %{name}
 +Group:      Development/Libraries
 +Requires:   %{name} = %{version}-%{release}
 +
 +%description devel
 +Development files needed for building websocket clients and servers
 +
 +%prep
 +%setup -q -n %{name}-%{version}
 +
 +%build
 +
 +%cmake -DLWS_WITH_SSL=On \
 +      -DLWS_WITHOUT_TESTAPPS=ON \
 +      -DLWS_WITH_SERVER_STATUS=ON \
 +      -DLWS_IPV6=ON \
 +      -DLWS_WITH_SO_BINDTODEVICE=ON \
 +      -DLWS_WITH_HTTP2=OFF\
 +      -DLWS_WITHOUT_EXTENSIONS=OFF \
 +      -DLWS_HTTP_HEADERS_ALL=ON \
 +      .
 +
 +make %{?jobs:-j%jobs}
 +
 +%install
 +rm -rf %{buildroot}
 +
 +%make_install
 +
 +%post -p /sbin/ldconfig
 +
 +%postun -p /sbin/ldconfig
 +
 +%files
 +%manifest %{name}.manifest
 +%defattr(-,root,root,-)
 +%{_libdir}/libwebsockets*.so.*
 +%license LICENSE
 +
 +%files devel
 +%defattr(-,root,root,-)
 +%{_includedir}/libwebsockets.h
 +%{_includedir}/lws_config.h
 +%{_includedir}/libwebsockets/*
 +%{_libdir}/libwebsockets.so
 +%{_libdir}/pkgconfig/*
 +%{_libdir}/cmake/*