File ustp.spec of Package ustp
#
# spec file for package ustp
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ustp
Version: 0~git20230529
Release: 0
Summary: OpenWrt STP daemon
License: GPL-2.0-or-later
Group: System/Daemons
URL: https://git.openwrt.org/?p=project/ustp.git;a=summary
Source: %{name}-%{version}.tar.xz
Patch0: ustp-cmake-gnuinstalldirs.patch
BuildRequires: cmake
BuildRequires: libubox-devel
BuildRequires: ubus-devel
%description
OpenWrt STP (Spanning Tree Protocol) daemon.
%prep
%setup -q
%autopatch -p1
%build
%cmake
%make_jobs
%install
%cmake_install
%files
%{_sbindir}/bridge-stp
%{_sbindir}/ustpd
%changelog