File binwalk3.spec of Package binwalk3

#
# spec file for package binwalk3
#
# 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 https://bugs.opensuse.org/
#


Name:           binwalk3
Version:        3.1.0
Release:        0
Summary:        Firmware Analysis Tool
License:        MIT
URL:            https://github.com/ReFirmLabs/binwalk
#Git-Clone:     https://github.com/ReFirmLabs/binwalk.git
Source:         https://github.com/ReFirmLabs/binwalk/archive/refs/tags/v%{version}.tar.gz#/binwalk-%{version}.tar.gz
Source1:        vendor.tar.zst
BuildRequires:  cargo
BuildRequires:  cargo-packaging
BuildRequires:  rust
BuildRequires:  pkgconfig(fontconfig)
# HACK
Conflicts:      binwalk

%description
Binwalk is a tool for searching a given binary image for embedded
files and executable code. Specifically, it is designed for
identifying files and code embedded inside of firmware images.
Binwalk uses the libmagic library, so it is compatible with magic
signatures created for the Unix file utility. Binwalk also includes
a custom magic signature file which contains improved signatures
for files that are commonly found in firmware images such as
compressed/archived files, firmware headers, Linux kernels,
bootloaders, filesystems, etc.

%prep
%autosetup -p 1 -a 1 -n binwalk-%{version}

%build
%{cargo_build}

%install
cargo install --no-track --root=%{buildroot}%{_prefix} --path .

%files
%license LICENSE
%doc README.md
%{_bindir}/binwalk

%changelog
openSUSE Build Service is sponsored by