代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。