File stripe.spec of Package stripe

#
# spec file for package stripe
#
# Copyright (c) 2024 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:           stripe
Version:        0~git20240124.655d509
Release:        0
Summary:        Strips encapsulation (VLAN, MPLS, GRE, L2TP) from pcap files
License:        BSD-3-Clause
URL:            https://github.com/theclam/stripe
Source0:        %{name}-%{version}.tar.gz

%description
%{name} is a tool which attempts to remove any and all encapsulating headers (i.e.
VLAN tags, MPLS shim headers, PPPoE, GRE, L2TP, GTP, VXLAN and ERSPAN) from a pcap file,
leaving plain old payload over Ethernet. This is useful as some tools cannot work with
encapsulated frames and, until now, I couldn't find any automatic way to convert a pcap
with such headers into a usable format.

%prep
%autosetup -p1

%build
cc %{optflags} -o %{name} stripe.c

%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}

%check

%files
%doc README
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by