Blame python-masscan.spec

881beb1
%global srcname python-masscan
881beb1
881beb1
Name:           %{srcname}
881beb1
Version:        0.1.6
881beb1
Release:        1%{?dist}
881beb1
Summary:        Python module to interact with masscan
881beb1
881beb1
License:        GPLv3+
881beb1
URL:            https://github.com/MyKings/python-masscan
881beb1
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
881beb1
BuildArch:      noarch
881beb1
881beb1
Requires:       masscan
881beb1
881beb1
%description
881beb1
python-masscan is a python library which helps in using masscan port scanner.
881beb1
881beb1
%package -n python3-masscan
881beb1
Summary:        %{summary}
881beb1
881beb1
BuildRequires:  python3-devel
881beb1
BuildRequires:  python3-setuptools
881beb1
%{?python_provide:%python_provide python3-masscan}
881beb1
881beb1
%description -n python3-masscan
881beb1
python-masscan is a python library which helps in using masscan port scanner.
881beb1
881beb1
%prep
881beb1
%autosetup -n %{srcname}-%{version}
881beb1
sed -i -e '/^#!\//, 1d' masscan/*.py
881beb1
881beb1
%build
881beb1
%py3_build
881beb1
881beb1
%install
881beb1
%py3_install
881beb1
881beb1
%files -n python3-masscan
881beb1
%doc CHANGELOG.md README.rst
881beb1
%license LICENSE
881beb1
%{python3_sitelib}/*.egg-info
881beb1
%{python3_sitelib}/masscan/
881beb1
881beb1
%changelog
881beb1
* Sun May 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.6-1
881beb1
- Update to latest upstream release 0.1.6
881beb1
881beb1
* Sun Apr 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.2-1
881beb1
- Initial package for Fedora