File nmrpflash.spec of Package nmrpflash

#
# spec file for package nmrpflash
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           nmrpflash
Version:        0.9.15
Release:        0
Summary:        Netgear Unbrick Utility
License:        GPL-3.0-or-later
Group:          Hardware/Wifi
URL:            https://github.com/jclehner/nmrpflash
Source0:        https://github.com/jclehner/nmrpflash/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz 
BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  libnl3-devel
BuildRequires:  libpcap-devel

%description
mrpflash uses Netgear's NMRP protocol to flash a new firmware image to
a compatible device. It has been successfully used on a Netgear
EX2700, EX6100v2, EX6120, EX6150v2, DNG3700v2, R6100, R6220, R7000,
D7000, WNR3500, R6080, R6400 and R6800, R8000, R8500, WNDR3800, but is
likely to be compatible with many other Netgear devices.

%prep
%setup -q

%build
STANDALONE_VERSION=%version make

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
PREFIX=$RPM_BUILD_ROOT/usr make install
 
%files
%doc README.md README-R7000.md
%license LICENSE
%{_bindir}/nmrpflash

%changelog
openSUSE Build Service is sponsored by