File python-pysctp.spec of Package python-pysctp
#
# spec file for package python-pysctp
#
# Copyright (c) 2024-2026, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-pysctp
Version: 0.7.3
Release: 0
Summary: SCTP bindings for Python
License: LGPL-2.0-or-later
URL: https://github.com/p1sec/pysctp
Source: https://files.pythonhosted.org/packages/source/p/pysctp/pysctp-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module devel}
#BuildRequires: %%{python_module pytest}
BuildRequires: fdupes
BuildRequires: lksctp-tools-devel
BuildRequires: python-rpm-macros
%python_subpackages
%description
SCTP bindings for Python.
%prep
%autosetup -p1 -n pysctp-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
#%%python_expand export PYTHONPATH=%%{buildroot}%%{$python_sitearch}
#%%pytest
%files %{python_files}
#%%license see README.txt
%doc README.txt
%{python_sitearch}/pysctp-*
%{python_sitearch}/_sctp.cpython*
%{python_sitearch}/sctp.py
%pycache_only %{python_sitearch}/__pycache__/sctp.*
# HACK: c-header file should properly be included
#%%dir %%{_prefix}/include
%exclude %{_prefix}/include/_sctp.h
%changelog