File usbmode.spec of Package usbmode
#
# spec file for package usbmode
#
# 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: usbmode
Version: 0~git20220806
Release: 0
Summary: OpenWrt USB mode switching utility
License: GPL-2.0-only
URL: https://git.openwrt.org/?p=project/usbmode.git;a=summary
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: libubox-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libusb-1.0)
%description
OpenWrt USB mode switching utility.
%prep
%setup -q
%build
%cmake
%make_jobs
%install
%cmake_install
%files
%{_sbindir}/usbmode
%changelog