diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e6913e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-masscan-0.1.6.tar.gz diff --git a/python-masscan.spec b/python-masscan.spec new file mode 100644 index 0000000..12cc2b3 --- /dev/null +++ b/python-masscan.spec @@ -0,0 +1,49 @@ +%global srcname python-masscan + +Name: %{srcname} +Version: 0.1.6 +Release: 1%{?dist} +Summary: Python module to interact with masscan + +License: GPLv3+ +URL: https://github.com/MyKings/python-masscan +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +Requires: masscan + +%description +python-masscan is a python library which helps in using masscan port scanner. + +%package -n python3-masscan +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-masscan} + +%description -n python3-masscan +python-masscan is a python library which helps in using masscan port scanner. + +%prep +%autosetup -n %{srcname}-%{version} +sed -i -e '/^#!\//, 1d' masscan/*.py + +%build +%py3_build + +%install +%py3_install + +%files -n python3-masscan +%doc CHANGELOG.md README.rst +%license LICENSE +%{python3_sitelib}/*.egg-info +%{python3_sitelib}/masscan/ + +%changelog +* Sun May 03 2020 Fabian Affolter - 0.1.6-1 +- Update to latest upstream release 0.1.6 + +* Sun Apr 21 2019 Fabian Affolter - 0.1.2-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..7c1b472 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-masscan-0.1.6.tar.gz) = 68b31d1ecc0a162107f2cc5e6a64ee4e124f8bb39b9a14c3ddffbc35aa3df5ccc6f154f9e563f183b5f059a5ed36117709e67e2ae7b1bd93795ebcafa5b55464