8ae9c08
%global pypi_name pwncat
8ae9c08
8ae9c08
Name:           %{pypi_name}
8ae9c08
Version:        0.1.0
8ae9c08
Release:        2%{?dist}
8ae9c08
Summary:        TCP/UDP communication suite
8ae9c08
8ae9c08
License:        MIT
8ae9c08
URL:            https://github.com/cytopia/pwncat
8ae9c08
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
8ae9c08
BuildArch:      noarch
8ae9c08
8ae9c08
BuildRequires:  python3-devel
8ae9c08
BuildRequires:  python3-setuptools
8ae9c08
8ae9c08
Requires:       python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
8ae9c08
8ae9c08
%description
8ae9c08
TCP/UDP communication suite for firewall and IDS/IPS evasion, bind and
8ae9c08
reverse shell, self-injecting shell and port forwarding magic. pwncat is
8ae9c08
fully scriptable with Python (PSE).
8ae9c08
8ae9c08
%package -n     python3-%{pypi_name}
8ae9c08
Summary:        %{summary}
8ae9c08
%{?python_provide:%python_provide python3-%{pypi_name}}
8ae9c08
8ae9c08
%description -n python3-%{pypi_name}
8ae9c08
TCP/UDP communication suite for firewall and IDS/IPS evasion, bind and
8ae9c08
reverse shell, self-injecting shell and port forwarding magic. pwncat is
8ae9c08
fully scriptable with Python (PSE).
8ae9c08
8ae9c08
%prep
8ae9c08
%autosetup -n %{pypi_name}-%{version}
8ae9c08
rm -rf %{pypi_name}.egg-info
8ae9c08
8ae9c08
%build
8ae9c08
%py3_build
8ae9c08
8ae9c08
%install
8ae9c08
%py3_install
8ae9c08
install -Dp -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
8ae9c08
8ae9c08
%files
8ae9c08
%doc docs/
8ae9c08
%{_mandir}/man1/%{name}.*
8ae9c08
%{_bindir}/pwncat
8ae9c08
8ae9c08
%files -n python3-%{pypi_name}
8ae9c08
%doc CHANGELOG.md CONTRIBUTING.md README.md
8ae9c08
%license LICENSE.txt
8ae9c08
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
8ae9c08
8ae9c08
%changelog
8ae9c08
* Fri Aug 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.0-2
8ae9c08
- Fix review issues (rhbz#1856904)
8ae9c08
8ae9c08
* Mon Jul 13 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.0-1
8ae9c08
- Initial package for Fedora