From 1148347b662e99aafa8ff8feb2113d254084061834cd303ef8c7d1035f5d45aa Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 16:03:04 +0000 Subject: [PATCH] Accepting request 1276912 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276912 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-TxSNI?expand=0&rev=13 --- python-TxSNI.changes | 5 +++++ python-TxSNI.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-TxSNI.changes b/python-TxSNI.changes index 36ea6a9..54bc12b 100644 --- a/python-TxSNI.changes +++ b/python-TxSNI.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:15:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jun 21 21:01:36 UTC 2022 - Ben Greiner diff --git a/python-TxSNI.spec b/python-TxSNI.spec index 54966d2..d6ef9f7 100644 --- a/python-TxSNI.spec +++ b/python-TxSNI.spec @@ -1,7 +1,7 @@ # # spec file for package python-TxSNI # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-TxSNI Version: 0.2.0 Release: 0 @@ -26,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/glyph/txsni Source0: https://github.com/glyph/txsni/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: %{python_module Twisted-tls >= 14.0.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyOpenSSL >= 0.14} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Twisted-tls >= 14.0.0 @@ -41,10 +42,10 @@ This package brings support for running a TLS server with Twisted. %setup -q -n txsni-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -53,6 +54,9 @@ This package brings support for running a TLS server with Twisted. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/[Tt]x[Ss][Nn][Ii] +%{python_sitelib}/[Tt]x[Ss][Nn][Ii]-%{version}*-info +%{python_sitelib}/twisted/plugins/txsni_endpoint.py +%pycache_only %{python_sitelib}/twisted/plugins/__pycache__/txsni_endpoint* %changelog