%global debug_package %{nil} Name: openthread Version: 20250612 Release: 2%{?dist} Summary: Open Source reference implementation of the Thread network stack License: BSD-3-Clause URL: https://github.com/openthread/openthread/ Source0: %{url}/archive/%{version}/thread-reference-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libmnl-devel BuildRequires: mbedtls-devel BuildRequires: ninja-build BuildRequires: python3 BuildRequires: readline-devel %description Open Source reference implementation of the Thread network stack %prep %autosetup -p1 -n openthread-thread-reference-%{version} # rm -rf third_party/mbedtls/ sed -i 's/ -Werror -pedantic-errors/$CFLAGS/g' CMakeLists.txt sed -i 's/ -Wall -Wextra -Wshadow//g' CMakeLists.txt # sed -i 's/tcplp-ftd STATIC/tcplp-ftd SHARED/' third_party/tcplp/CMakeLists.txt %build ./script/cmake-build posix -DOT_THREAD_VERSION=1.1 -DOT_DAEMON=ON -DCMAKE_INSTALL_DO_STRIP=OFF %install install -pD -m 0755 build/posix/src/posix/ot-ctl %{buildroot}/%{_bindir}/ot-ctl install -pD -m 0755 build/posix/src/posix/ot-daemon %{buildroot}/%{_bindir}/ot-daemon %files %license LICENSE %doc README.md %{_bindir}/ot-ctl %{_bindir}/ot-daemon %changelog * Wed Dec 03 2025 Peter Robinson - 20250612-2 - Build OpenThread v1.1 for compatibility (for now) * Wed Nov 26 2025 Peter Robinson - 20250612-1 - Initial package