package created using the webbuild interface [release 4.3.2-1mamba;Sun Jan 22 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 06:08:23 +01:00
parent d55999f135
commit d7e0f72ea4
2 changed files with 90 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libwebsockets
Libwebsockets is a simple-to-use, MIT-license, pure C library providing client and server for http/1, http/2, websockets, MQTT and other protocols in a security-minded, lightweight, configurable, scalable and flexible way. It's easy to build and cross-build via cmake and is suitable for tasks from embedded RTOS through mass cloud serving.

88
libwebsockets.spec Normal file
View File

@ -0,0 +1,88 @@
Name: libwebsockets
Version: 4.3.2
Release: 1mamba
Summary: A pure C library providing client and server for various network protocols
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://libwebsockets.org/
Source: https://github.com/warmcat/libwebsockets.git/v%{version}/libwebsockets-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcap-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
%description
Libwebsockets is a simple-to-use, MIT-license, pure C library providing client and server for http/1, http/2, websockets, MQTT and other protocols in a security-minded, lightweight, configurable, scalable and flexible way. It's easy to build and cross-build via cmake and is suitable for tasks from embedded RTOS through mass cloud serving.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Networking
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libwebsockets.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%{_includedir}/libwebsockets.h
%dir %{_includedir}/libwebsockets
%{_includedir}/libwebsockets/*
%{_includedir}/lws_config.h
%{_libdir}/libwebsockets.a
%{_libdir}/libwebsockets.so
%{_libdir}/pkgconfig/libwebsockets.pc
%{_libdir}/pkgconfig/libwebsockets_static.pc
%dir %{_libdir}/cmake/libwebsockets
%{_libdir}/cmake/libwebsockets/*.cmake
%doc README.md
%files tools
%defattr(-,root,root)
%{_bindir}/libwebsockets-test-client
%{_bindir}/libwebsockets-test-lejp
%{_bindir}/libwebsockets-test-server
%{_bindir}/libwebsockets-test-server-extpoll
%dir %{_datadir}/libwebsockets-test-server
%{_datadir}/libwebsockets-test-server/*
%changelog
* Sun Jan 22 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.2-1mamba
- package created using the webbuild interface