78 lines
2.0 KiB
RPMSpec
78 lines
2.0 KiB
RPMSpec
Name: libwebsockets
|
|
Version: 2.4.2
|
|
Release: 2
|
|
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
|
|
|
|
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
|
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.2-2
|
|
- Package init
|