File depthcharge.spec of Package depthcharge

#
# spec file for package depthcharge
#
# 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:           depthcharge
Version:        0.5.0
Release:        0
Summary:        A U-Boot hacking toolkit
License:        BSD-3-Clause
URL:            https://depthcharge.readthedocs.io/
#Git-Clone:     https://github.com/nccgroup/depthcharge.git
Source:         https://github.com/nccgroup/depthcharge/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python3
BuildRequires:  python3-setuptools
BuildRequires:  python3-pyserial
BuildRequires:  python3-tqdm
Requires:       python3-pyserial
Requires:       python3-tqdm
Buildarch:      noarch

%description
A toolkit designed to support security research and "jailbreaking"
of embedded platforms using the U-Boot bootloader.

%prep
%autosetup

%build
cd python
%python3_build

%install
cd python
%python3_install
%fdupes %{buildroot}%{python3_sitelib}

%check
#export PYTHONPATH=%%{buildroot}%%{python3_sitelib}
#cd python/tests
#python3 -m unittest unit

%files
%license LICENSE.txt
%doc CHANGELOG README.md
%{_bindir}/depthcharge-audit-config
%{_bindir}/depthcharge-find-cmd
%{_bindir}/depthcharge-find-env
%{_bindir}/depthcharge-find-fdt
%{_bindir}/depthcharge-inspect
%{_bindir}/depthcharge-mkenv
%{_bindir}/depthcharge-print
%{_bindir}/depthcharge-read-mem
%{_bindir}/depthcharge-stratagem
%{_bindir}/depthcharge-write-mem
%{python3_sitelib}/depthcharge*

%changelog
openSUSE Build Service is sponsored by