File oniux.spec of Package oniux
#
# spec file for package oniux
#
# Copyright (c) 2025 onlyJak0b
#
# 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 http://bugs.opensuse.org/
#
Name: oniux
Version: 0.5.0~0
Release: 0
Summary: Isolate an arbitrary application over the Tor network
License: Apache-2.0 AND MIT
Url: https://gitlab.torproject.org/tpo/core/oniux
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
BuildRequires: cargo
BuildRequires: cargo-packaging
%description
This is still considered experimental software!
oniux is a tool that utilizes various Linux namespaces(7) in order to isolate
an arbitrary application over the Tor network. To achieve this, it makes heavy
use of the onionmasq, which offers a TUN device to send Tor traffic through.
%prep
%autosetup -p1 -a1
%build
%{cargo_build}
%install
install -Dm 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
%check
%{cargo_test}
%files
%doc README.md
%license LICENSE-APACHE LICENSE-MIT
%{_bindir}/%{name}
%changelog