File packETH.spec of Package packETH

# spec file for package packETH
# Copyright (c) 2020 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

Name:           packETH
Version:        1.8.1
Release:        0
Summary:        Packet generator tool for ethernet
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Diagnostic
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
Patch0:         packeth-ftbs-gcc10.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

packETH is tool for generating packets to send over ethernet.

%autosetup -p1 
# yay, lm is not in checked libs
sed -i -e 's:$(DEPS_LIBS):$(DEPS_LIBS) -lm:'

export CFLAGS="%optflags -fvisibility=hidden"
make %{?_smp_mflags}

make DESTDIR=%{buildroot} install %{?_smp_mflags}


openSUSE Build Service is sponsored by