File gnirehtet.spec of Package gnirehtet
#
# spec file for package gnirehtet
#
# 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: gnirehtet
Version: 2.5
Release: 0
Summary: Reverse tethering for Android
License: Apache-2.0
URL: https://github.com/Genymobile/gnirehtet/
Source: https://github.com/Genymobile/gnirehtet/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-c
BuildRequires: clang-devel
BuildRequires: pkgconfig
BuildRequires: rust-packaging
Suggests: android-tools
%description
This project provides reverse tethering over adb for Android:
it allows devices to use the internet connection of the computer
they are plugged on.
It does *not* require any root access (neither on the device nor
on the computer).
%prep
%autosetup -p 1 -a 1
install -D -m 0644 %{SOURCE2} .cargo/config
%build
cd relay-rust
%{cargo_build}
%install
install -D -m 0755 relay-rust/target/release/gnirehtet %{buildroot}%{_bindir}/gnirehtet
%files
%license LICENSE
%doc README.md
%{_bindir}/gnirehtet
%changelog