Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37428803
en ru br
Репозитории ALT

Группа :: Разработка/C
Пакет: libwebsockets

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: libwebsockets
Version: 4.3.2
Release: alt1

Summary: A lightweight C library for Websockets

# base64-decode.c and ssl-http2.c is under MIT license with FPC exception.

# sha1-hollerbach is under BSD
# https://fedorahosted.org/fpc/ticket/546
# Test suite is licensed as Public domain (CC-zero)
License: LGPLv2 and Public Domain and BSD and MIT and zlib
Group: Development/C
Url: http://libwebsockets.org

# Source-url: https://github.com/warmcat/libwebsockets/archive/v%version.tar.gz#/%name-%version.tar.gz

Source: %name-%version.tar

BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libssl-devel
BuildRequires: zlib-devel
BuildRequires: libev-devel
BuildRequires: libuv-devel
BuildRequires: glib2-devel
BuildRequires: libcap-devel

# https://fedoraproject.org/wiki/Bundled_Libraries

Provides: bundled(sha1-hollerbach)
Provides: bundled(base64-decode)
Provides: bundled(ssl-http2)

%description
This is the libwebsockets C library for lightweight websocket clients and
servers.

%package devel
Group: Development/C
Summary: Headers for developing programs that will use %name
Requires: %name = %EVR

%description devel
This package contains the header files needed for developing
%name applications.

%package tests
Group: Development/C
Summary: Tests to use with %name
Requires: %name = %EVR

%description tests
This package contains the tests for %name applications.

%prep
%setup

%build
%cmake \
   -DLWS_LINK_TESTAPPS_DYNAMIC=ON \
   -DLWS_WITH_EVLIB_PLUGINS=ON \
   -DLWS_WITH_LIBUV=ON \
   -DLWS_WITH_LIBEV=ON \
   -DLWS_WITH_GLIB=ON \
   -DLWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
   -DLWS_USE_BUNDLED_ZLIB=OFF \
   -DLWS_WITHOUT_BUILTIN_SHA1=ON \
%ifarch %e2k
   -DDISABLE_WERROR=ON \
%endif
   -DLWS_WITH_STATIC=OFF
%cmake_build

%install
%cmakeinstall_std
find %buildroot -name '*.la' -exec rm -f {} ';'
find %buildroot -name '*.a' -exec rm -f {} ';'
find %buildroot -name '*.cmake' -exec rm -f {} ';'
find %buildroot -name '*_static.pc' -exec rm -f {} ';'

%files
%doc README.md changelog
%doc LICENSE
%_libdir/%name.so.*
%_libdir/%name-evlib_*.so

%files devel
%doc READMEs/README.coding.md READMEs/ changelog
%doc LICENSE
%_includedir/%name.h
%_includedir/lws_config.h
%_includedir/%name
%_libdir/%name.so
%_pkgconfigdir/%name.pc

%files tests
%doc READMEs/README.coding.md READMEs/README.test-apps.md
%doc LICENSE
%_bindir/%name-test-*
%_datadir/%name-test-server/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin