File sabctools.spec of Package python-sabctools

#
# spec file for package python-sabctools
#
# 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
# 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/
#


%{?sle15_python_module_pythons}

Name: 			python-sabctools
Version: 		8.2.x
Release: 		1.0
Summary: 		C implementations of functions for use within SABnzbd
License: 		GPL-2.0
URL: 			https://github.com/sabnzbd/sabctools
Source0: 		%{name}-%{version}.tar.xz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires: 	gcc
BuildRequires:	gcc-c++
%python_subpackages

%description
This module implements three main sets of C implementations that are used within SABnzbd:

yEnc decoding and encoding using SIMD routines
CRC32 calculations
Non-blocking SSL-socket reading
Marking files as sparse

%prep
%autosetup -p1 -n %{name}-%{version}

%build
export CFLAGS="%{optflags}"
%python_build

%install
%python_install

%files %{python_files}
%license LICENSE.md
%doc README.md
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by