From 57319798f3c18b1832ee91eab239077fe9a75835 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 19:30:11 +0300 Subject: [PATCH] import python-socksio-1.0.0-12.el10 --- .gitignore | 1 + .python-socksio.metadata | 1 + SOURCES/0001-Relax-flit_core-dependency.patch | 23 ++++ SPECS/python-socksio.spec | 114 ++++++++++++++++++ 4 files changed, 139 insertions(+) create mode 100644 .gitignore create mode 100644 .python-socksio.metadata create mode 100644 SOURCES/0001-Relax-flit_core-dependency.patch create mode 100644 SPECS/python-socksio.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c9b75c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/socksio-1.0.0.tar.gz diff --git a/.python-socksio.metadata b/.python-socksio.metadata new file mode 100644 index 0000000..591dcd1 --- /dev/null +++ b/.python-socksio.metadata @@ -0,0 +1 @@ +23231cd85d9c27d867666fb634d938e0cede9967 SOURCES/socksio-1.0.0.tar.gz diff --git a/SOURCES/0001-Relax-flit_core-dependency.patch b/SOURCES/0001-Relax-flit_core-dependency.patch new file mode 100644 index 0000000..2e165b0 --- /dev/null +++ b/SOURCES/0001-Relax-flit_core-dependency.patch @@ -0,0 +1,23 @@ +From 83ee51a35ee3727ad244a98f3481f830876692c6 Mon Sep 17 00:00:00 2001 +From: Carl George +Date: Wed, 2 Mar 2022 18:59:03 -0600 +Subject: [PATCH] Relax flit_core dependency + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 2856277..70868e0 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["flit_core >=2,<3"] ++requires = ["flit_core >=2"] + build-backend = "flit_core.buildapi" + + [tool.flit.metadata] +-- +2.35.1 + diff --git a/SPECS/python-socksio.spec b/SPECS/python-socksio.spec new file mode 100644 index 0000000..364b58c --- /dev/null +++ b/SPECS/python-socksio.spec @@ -0,0 +1,114 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 12; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global srcname socksio +%global _description %{expand: +Client-side sans-I/O SOCKS proxy implementation. Supports SOCKS4, SOCKS4A, and +SOCKS5. socksio is a sans-I/O library similar to h11 or h2, this means the +library itself does not handle the actual sending of the bytes through the +network, it only deals with the implementation details of the SOCKS protocols +so you can use it in any I/O library you want.} + + +Name: python-%{srcname} +Version: 1.0.0 +Release: %autorelease +Summary: Client-side sans-I/O SOCKS proxy implementation +License: MIT +URL: https://github.com/sethmlarson/socksio +Source: %pypi_source +# downstream-only patch +Patch: 0001-Relax-flit_core-dependency.patch +BuildArch: noarch +BuildRequires: python3-devel + + +%description %{_description} + + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: %{py3_dist pytest} + + +%description -n python3-%{srcname} %{_description} + + +%prep +%autosetup -n %{srcname}-%{version} -p 1 +# drop coverage addopts +rm pytest.ini + + +%generate_buildrequires +%pyproject_buildrequires -r + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%check +%pytest + + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md CHANGELOG.md +# flit does not mark licenses as License-Files yet +%license %{python3_sitelib}/*.dist-info/LICENSE + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.0.0-12 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.0.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.0.0-11 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.0.0-7 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.0.0-4 +- Rebuilt for Python 3.11 + +* Fri Mar 04 2022 Miro Hrončok - 1.0.0-3 +- Mark the LICENSE with %%license + +* Fri Mar 04 2022 Miro Hrončok - 1.0.0-2 +- Do not manually BuildRequire flit-core, it is marked as [build-system] + requirement in pyproject.toml + +* Thu Mar 03 2022 Carl George - 1.0.0-1 +- Initial package rhbz#2060218 +## END: Generated by rpmautospec