- Add patch to fix potential double-free in link_frame_received() + CVE-2024-27099.patch (CVE-2024-27099, bsc#1220535) OBS-URL: https://build.opensuse.org/request/show/1152892 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:azure/python-uamqp?expand=0&rev=45
78 lines
2.1 KiB
RPMSpec
78 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-uamqp
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
%define skip_python2 1
|
|
# Python 3.12 is currently unsupported
|
|
# see: https://github.com/Azure/azure-uamqp-python/issues/379
|
|
%define skip_python312 1
|
|
%endif
|
|
Name: python-uamqp
|
|
Version: 1.6.8
|
|
Release: 0
|
|
Summary: AMQP 10 Client Library for Python
|
|
License: MIT
|
|
URL: https://github.com/Azure/azure-uamqp-python
|
|
Source: https://files.pythonhosted.org/packages/source/u/uamqp/uamqp-%{version}.tar.gz
|
|
Patch1: u_strip-werror.patch
|
|
Patch2: CVE-2024-25110.patch
|
|
Patch3: CVE-2024-27099.patch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module certifi >= 2017.4.17}
|
|
# /SECTION
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libopenssl-devel
|
|
Requires: python-certifi >= 2017.4.17
|
|
Suggests: python-enum34 >= 1.0.4
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
AMQP 1.0 Client Library for Python
|
|
|
|
%prep
|
|
%setup -n uamqp-%{version}
|
|
%patch1 -p1
|
|
pushd src/vendor/azure-uamqp-c
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
popd
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
#%%check
|
|
#%%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%doc HISTORY.rst README.rst
|
|
%{python_sitearch}/uamqp
|
|
%{python_sitearch}/uamqp-*info
|
|
|
|
%changelog
|