Blame python-siosocks.spec

86d2388
%global pypi_name siosocks
86d2388
86d2388
Name:           python-%{pypi_name}
86d2388
Version:        0.1.0
86d2388
Release:        2%{?dist}
86d2388
Summary:        Sans-io socks proxy client/server with couple io backends
86d2388
86d2388
License:        MIT
86d2388
URL:            https://github.com/pohmelie/siosocks
86d2388
Source0:        %{pypi_source}
86d2388
BuildArch:      noarch
86d2388
86d2388
%description
86d2388
socks 4/5 client/server library/framework.
86d2388
86d2388
- No one-shot socks servers
86d2388
- Sans-io
86d2388
- asyncio-ready
86d2388
86d2388
%package -n     python3-%{pypi_name}
86d2388
Summary:        %{summary}
86d2388
86d2388
BuildRequires:  python3-devel
86d2388
BuildRequires:  python3-pytest
86d2388
BuildRequires:  python3-pytest-asyncio
86d2388
BuildRequires:  python3-pytest-cov
86d2388
BuildRequires:  python3-pytest-trio
86d2388
BuildRequires:  python3-setuptools
86d2388
BuildRequires:  python3-trio
86d2388
%{?python_provide:%python_provide python3-%{pypi_name}}
86d2388
86d2388
%description -n python3-%{pypi_name}
86d2388
socks 4/5 client/server library/framework.
86d2388
86d2388
- No one-shot socks servers
86d2388
- Sans-io
86d2388
- asyncio-ready
86d2388
86d2388
%prep
86d2388
%autosetup -n %{pypi_name}-%{version}
86d2388
rm -rf %{pypi_name}.egg-info
86d2388
86d2388
%build
86d2388
%py3_build
86d2388
86d2388
%install
86d2388
%py3_install
86d2388
86d2388
%check
86d2388
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
86d2388
86d2388
%files -n python3-%{pypi_name}
86d2388
%license license.txt
86d2388
%doc readme.md
86d2388
%{python3_sitelib}/%{pypi_name}/
86d2388
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
86d2388
86d2388
%changelog
86d2388
* Tue Jan 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.0-2
86d2388
- Use var for source URL
86d2388
- Better use of wildcards (rhbz#1787309)
86d2388
86d2388
* Wed Jan 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.0-1
86d2388
- Initial package for Fedora