File passt.spec of Package passt
#
# spec file for package passt
#
# Copyright (c) 2021, 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: passt
Version: 0~git20220223
Release: 0
Summary: Plug A Simple Socket Transport
License: AGPL-3.0-or-later AND BSD-3-Clause
Group: Productivity/Networking/Other
URL: https://passt.top/passt/about/
#Git-Clone: https://passt.top/passt
Source: %{name}-%{version}.tar.xz
%description
passt implements a translation layer between a Layer-2 network interface and
native Layer-4 sockets (TCP, UDP, ICMP/ICMPv6 echo) on a host. It doesn't
require any capabilities or privileges, and it can be used as a simple
replacement for Slirp.
%prep
%setup -q
%build
# FIXME: make clean should not be needed if we have a pristine upstream tarball
#make clean
export CFLAGS="%{optflags}"
%make_build
%install
%make_install DESTDIR=%{buildroot} prefix=%{_prefix}
%files
%license LICENSES/{AGPL-3.0-or-later.txt,BSD-3-Clause.txt}
%doc README.md
%{_bindir}/passt
%{_bindir}/pasta
%{_bindir}/qrap
%{_mandir}/man1/passt.1%{?ext_man}
%{_mandir}/man1/pasta.1%{?ext_man}
%{_mandir}/man1/qrap.1%{?ext_man}
%changelog