Compare commits

4 Commits

2 changed files with 20 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed May 14 10:56:21 UTC 2025 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Mon May 12 15:15:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Jun 21 21:01:36 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@@ -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,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-TxSNI
Version: 0.2.0
Release: 0
@@ -26,7 +26,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 +43,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 +55,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