%define debug_package %{nil}

Name: vpn-slice
Version: 0.15
Release: 1%{?dist}
Summary: Replacement for the vpnc-script used by OpenConnect or VPNC
License: GPL-3.0
URL: https://github.com/dlenski/vpn-slice
Provides: vpn-slice
Source0: https://github.com/dlenski/vpn-slice/archive/refs/tags/v%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-dns
BuildRequires: python3-setuptools

%description
vpn-slice is a replacement for the vpnc-script used by OpenConnect or VPNC.
Instead of trying to copy the behavior of standard corporate VPN clients, which normally reroute all your network traffic through the VPN, this one tries to minimize your contact with an intrusive VPN. This is also known as a split-tunnel VPN, since it splits your traffic between the VPN tunnel and your normal network interfaces.

%prep
%autosetup

%build
%py3_build

%install
%py3_install

%files
%license LICENSE.txt
%{python3_sitelib}/vpn_slice-*.egg-info/
%{python3_sitelib}/vpn_slice/
%{_bindir}/vpn-slice