8ae9c08
%global pypi_name pwncat
8ae9c08
8ae9c08
Name:           %{pypi_name}
8ae9c08
Version:        0.1.0
042087c
Release:        14%{?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
775a5d1
# Fix build with setuptools 62.1
775a5d1
# https://github.com/cytopia/pwncat/issues/113
775a5d1
sed -i "10i packages=[]," setup.py
775a5d1
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
042087c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-14
042087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
042087c
996804b
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-13
996804b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
996804b
26812b0
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-12
26812b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
26812b0
dac8f41
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.1.0-11
dac8f41
- Rebuilt for Python 3.12
dac8f41
61cbd51
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-10
61cbd51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
61cbd51
0c8f7fc
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-9
0c8f7fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0c8f7fc
775a5d1
* Wed Jun 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.1.0-8
775a5d1
- Fix FTBFS with setuptools >= 62.1
775a5d1
Resolves: rhbz#2097117
775a5d1
6d01b19
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.0-7
6d01b19
- Rebuilt for Python 3.11
6d01b19
c09f147
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-6
c09f147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c09f147
8ebe9ad
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-5
8ebe9ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8ebe9ad
966473d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.0-4
966473d
- Rebuilt for Python 3.10
966473d
c5e55d4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-3
c5e55d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c5e55d4
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