File phantun.spec of Package phantun
#
# spec file for package phantun
#
# Copyright (c) 2021-2025, 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: phantun
Version: 0.8.1
Release: 0
Summary: A lightweight and fast UDP to TCP obfuscator.
License: MIT and Apache-2.0
Group: Productivity/Networking/Other
URL: https://github.com/dndx/phantun
Source: https://github.com/dndx/phantun/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
%description
Transforms UDP stream into (fake) TCP streams that can go through
Layer 3 & Layer 4 (NAPT) firewalls/NATs.
It is commonly used in environments where UDP is blocked/throttle
but TCP is allowed through.
%prep
%autosetup -p 1 -a 1
%build
%{cargo_build}
%install
for i in server client; do
install -Dm 0755 "./target/release/$i" "%{buildroot}%{_bindir}/%{name}_$i"
done
%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/phantun_client
%{_bindir}/phantun_server
%changelog