4 Commits

Author SHA256 Message Date
1f3289a200 Accepting request 1317114 from devel:languages:python
- Run tests in %check section
- Update to 1.2.0 (bsc#1252945, CVE-2025-6176):
  # SECURITY
  - python: added `Decompressor::can_accept_more_data` method and optional
            `output_buffer_limit` argument `Decompressor::process`;
            that allows mitigation of unexpectedly large output;
            reported by Charles Chan (https://github.com/charleswhchan)
  # Added
  - **decoder / encoder: added static initialization to reduce binary size**
  - python: allow limiting decoder output (see SECURITY section)
  # Improved
  - python: modernize extension / allow multi-phase module initialization
  # Changed
  - decoder / encoder: static tables use "small" model (allows 2GiB+ binaries)

OBS-URL: https://build.opensuse.org/request/show/1317114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Brotli?expand=0&rev=7
2025-11-12 20:41:36 +00:00
ffa9323e5a - Run tests in %check section
- Update to 1.2.0 (bsc#1252945, CVE-2025-6176):
  # SECURITY
  - python: added `Decompressor::can_accept_more_data` method and optional
            `output_buffer_limit` argument `Decompressor::process`;
            that allows mitigation of unexpectedly large output;
            reported by Charles Chan (https://github.com/charleswhchan)
  # Added
  - **decoder / encoder: added static initialization to reduce binary size**
  - python: allow limiting decoder output (see SECURITY section)
  # Improved
  - python: modernize extension / allow multi-phase module initialization
  # Changed
  - decoder / encoder: static tables use "small" model (allows 2GiB+ binaries)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Brotli?expand=0&rev=17
2025-11-11 13:51:32 +00:00
f517626eff Accepting request 1274649 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Brotli?expand=0&rev=6
2025-05-06 14:40:14 +00:00
56a7486ed3 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Brotli?expand=0&rev=15
2025-05-05 15:01:40 +00:00
4 changed files with 40 additions and 10 deletions

Binary file not shown.

3
brotli-1.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e310f77e41941c13340a95976fe66a8a95b01e783d430eeaf7a2f87e0a57dd0a
size 7388632

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Nov 11 13:31:41 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Run tests in %check section
- Update to 1.2.0 (bsc#1252945, CVE-2025-6176):
# SECURITY
- python: added `Decompressor::can_accept_more_data` method and optional
`output_buffer_limit` argument `Decompressor::process`;
that allows mitigation of unexpectedly large output;
reported by Charles Chan (https://github.com/charleswhchan)
# Added
- **decoder / encoder: added static initialization to reduce binary size**
- python: allow limiting decoder output (see SECURITY section)
# Improved
- python: modernize extension / allow multi-phase module initialization
# Changed
- decoder / encoder: static tables use "small" model (allows 2GiB+ binaries)
-------------------------------------------------------------------
Mon May 5 11:35:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Sep 11 21:06:08 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Brotli
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,15 @@
%{?sle15_python_module_pythons}
Name: python-Brotli
Version: 1.1.0
Version: 1.2.0
Release: 0
Summary: Python bindings for the Brotli compression library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://pypi.org/project/Brotli/
Source: https://files.pythonhosted.org/packages/source/B/Brotli/Brotli-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/b/brotli/brotli-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler
BuildRequires: fdupes
@@ -42,19 +43,25 @@ with deflate but offers more dense compression.
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
%prep
%setup -q -n Brotli-%{version}
%setup -q -n brotli-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pyunittest_arch python/tests/*_test.py -v
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitearch}/*
%{python_sitearch}/brotli.py
%{python_sitearch}/_brotli*
%pycache_only %{python_sitearch}/__pycache__/brotli*
%{python_sitearch}/[Bb]rotli-%{version}*info
%changelog