|
rdobuilder |
05745a |
## START: Set by rpmautospec
|
|
rdobuilder |
05745a |
## (rpmautospec version 0.2.5)
|
|
rdobuilder |
05745a |
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
|
|
rdobuilder |
05745a |
release_number = 3;
|
|
rdobuilder |
05745a |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
05745a |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
05745a |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
|
|
rdobuilder |
05745a |
## END: Set by rpmautospec
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%global srcname socksio
|
|
rdobuilder |
05745a |
%global _description %{expand:
|
|
rdobuilder |
05745a |
Client-side sans-I/O SOCKS proxy implementation. Supports SOCKS4, SOCKS4A, and
|
|
rdobuilder |
05745a |
SOCKS5. socksio is a sans-I/O library similar to h11 or h2, this means the
|
|
rdobuilder |
05745a |
library itself does not handle the actual sending of the bytes through the
|
|
rdobuilder |
05745a |
network, it only deals with the implementation details of the SOCKS protocols
|
|
rdobuilder |
05745a |
so you can use it in any I/O library you want.}
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
Name: python-%{srcname}
|
|
rdobuilder |
05745a |
Version: 1.0.0
|
|
rdobuilder |
05745a |
Release: %autorelease
|
|
rdobuilder |
05745a |
Summary: Client-side sans-I/O SOCKS proxy implementation
|
|
rdobuilder |
05745a |
License: MIT
|
|
rdobuilder |
05745a |
URL: https://github.com/sethmlarson/socksio
|
|
rdobuilder |
05745a |
Source: %pypi_source
|
|
rdobuilder |
05745a |
# downstream-only patch
|
|
rdobuilder |
05745a |
Patch: 0001-Relax-flit_core-dependency.patch
|
|
rdobuilder |
05745a |
BuildArch: noarch
|
|
rdobuilder |
05745a |
BuildRequires: python3-devel
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%description %{_description}
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%package -n python3-%{srcname}
|
|
rdobuilder |
05745a |
Summary: %{summary}
|
|
rdobuilder |
05745a |
BuildRequires: %{py3_dist pytest}
|
|
rdobuilder |
05745a |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%description -n python3-%{srcname} %{_description}
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%prep
|
|
rdobuilder |
05745a |
%autosetup -n %{srcname}-%{version} -p 1
|
|
rdobuilder |
05745a |
# drop coverage addopts
|
|
rdobuilder |
05745a |
rm pytest.ini
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%generate_buildrequires
|
|
rdobuilder |
05745a |
%pyproject_buildrequires -r
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%build
|
|
rdobuilder |
05745a |
%pyproject_wheel
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%install
|
|
rdobuilder |
05745a |
%pyproject_install
|
|
rdobuilder |
05745a |
%pyproject_save_files %{srcname}
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%check
|
|
rdobuilder |
05745a |
%pytest
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
05745a |
%doc README.md CHANGELOG.md
|
|
rdobuilder |
05745a |
# flit does not mark licenses as License-Files yet
|
|
rdobuilder |
05745a |
%license %{python3_sitelib}/*.dist-info/LICENSE
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
%changelog
|
|
rdobuilder |
05745a |
* Fri Mar 04 2022 Miro Hrončok <miro@hroncok.cz> 1.0.0-3
|
|
rdobuilder |
05745a |
- Mark the LICENSE with %license
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
* Fri Mar 04 2022 Miro Hrončok <miro@hroncok.cz> 1.0.0-2
|
|
rdobuilder |
05745a |
- Do not manually BuildRequire flit-core, it is marked as [build-system]
|
|
rdobuilder |
05745a |
requirement in pyproject.toml
|
|
rdobuilder |
05745a |
|
|
rdobuilder |
05745a |
* Thu Mar 03 2022 Carl George <carl@george.computer> 1.0.0-1
|
|
rdobuilder |
05745a |
- Initial package rhbz#2060218
|