加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libcoap.spec 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
虫儿飞 提交于 2024-08-14 10:40 . Fix CVE-2024-31031
Name: libcoap
Version: 4.3.4
Release: 2%{?dist}
Summary: Implementation of a lightweight application-protocol CoAP
# If build against gnutls the license is BSD + LGPL 2.1
License: BSD
URL: https://libcoap.net
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-coap_pdu.c-Fix-UndefinedBehaviorSanitizer-undefined-.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: asciidoc
BuildRequires: ctags
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: make
%description
libcoap is a C implementation of a lightweight application-protocol for
devices that are constrained their resources such as computing power, RF range,
memory, bandwidth, or network packet sizes.
This protocol, CoAP, is standardized by the IETF as RFC 7252.
For further information related to CoAP, see http://coap.technology.
%package utils
Summary: Client and server CoAP utilities
Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
Utilities for working with %{name}.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Files for development with %{name}.
%package doc
Summary: Documentation package for %{name}
BuildArch: noarch
%description doc
Documentation for development with %{name}.
%prep
%autosetup -n %{name}-%{version} -p0
%build
autoreconf -vif
%configure --without-debug CFLAGS="$RPM_OPT_FLAGS -D COAP_DEBUG_FD=stderr" \
--enable-examples --enable-documentation --enable-doxygen --enable-manpages \
--enable-dtls --with-openssl --disable-static
%make_build
%install
%make_install
#Remove libtool archives
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete
rm -rf %{buildroot}/%{_datadir}/%{name}
%check
make check
%ldconfig_scriptlets
%files
%license LICENSE COPYING
%doc AUTHORS
%{_libdir}/libcoap-3-openssl.so.3*
%files utils
%{_bindir}/coap*
%{_mandir}/man5/coap*
%files doc
%{_mandir}/man7/coap*
%{_datadir}/doc/libcoap/
%files devel
%{_mandir}/man3/coap*
%{_includedir}/coap3/
%{_libdir}/pkgconfig/libcoap-3*.pc
%{_libdir}/libcoap-3*.so
%changelog
* Wed Aug 14 2024 Wei Jiangang <wei_jiangang@hoperun.com> - 4.3.4-2
- Fix CVE-2024-31031
* Wed Jul 10 2024 zhangxingrong-<zhangxingrong@uniontech.cn> - 4.3.4-1
- update to version 4.3.4
* Wed Apr 24 2024 Wei Jiangang <wei_jiangang@hoperun.com> - 4.3.0-1
- Initial repo while version matches openHarmony 3.2
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化