File revdgst.spec of Package revdgst

#
# spec file for package revdgst
#
# Copyright (c) 2023, 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:           revdgst
Version:        0~git20220215
Release:        0
Summary:        Tools to analyze and reverse engineer checksums
License:        GPL-2.0-or-later
Group:          Development/Tools/Other
URL:            https://github.com/triq-org/revdgst/
Source:         %{name}-%{version}.tar.xz
Patch0:         revdgst-install-all-tools.patch
BuildRequires:  cmake

%description
Collection of various tools to analyze and reverse engineer checksums
in short data packets:

 * bitbrk - Analyze and break out bit changes and compare checksums
 * chkcrc - Check for invalid CRCs
 * keylst - List keys from LFSR generators
 * revdgst - Reverse 8-bit LFSR digest
 * revdgst16 - Reverse 16-bit LFSR digest
 * revsum - Reverse simple checksums
 * shft - Shift data files bitwise

It's mainly intended to help analyze software defined radio (SDR) data
transmission from sensor modules.

%prep
%setup -q
%patch0 -p1

%build
%cmake
%cmake_build

%install
%cmake_install

%files
%license LICENSE.txt
%doc README.md
%{_bindir}/bitbrk
%{_bindir}/chkcrc
%{_bindir}/keylst
%{_bindir}/revdgst
%{_bindir}/revdgst16
%{_bindir}/revsum
%{_bindir}/shft

%changelog
openSUSE Build Service is sponsored by