File jomon.spec of Package jomon

#
# spec file for package jomon
#
# Copyright (c) 2024 mantarimay
#
# 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:           jomon
Version:        0.3.4
Release:        0
Summary:        A network forensics and sniffer tool
License:        MIT
URL:            https://github.com/jo-lund/jomon
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  git
BuildRequires:  ncurses-devel
BuildRequires:  re2c
BuildRequires:  python3

%description
Jomon is a network forensics and passive sniffer tool. It monitors all
incoming/outgoing network traffic, without the use of libpcap, and the
processes that are generating this traffic.

It supports packet filtering by writing BPF assembly directly or writing
in a higher level tcpdump syntax (tcpdump syntax has very limited support
for now).

It uses a minimal set of libraries, libncurses for the UI and libGeoIP for
geolocation (optional). The BPF scanner/lexical analyzer is made with the
help of re2c.

%prep
%autosetup -p1

sed -i 's|menu.h|ncurses/menu.h|' ui/ncurses/*.c


%build
./configure --disable-geoip
%make_build

%install
%make_install

%check
%make_build check

%files
%license LICEN*
%doc README*
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by