2 Commits

2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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> 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 # spec file for package python-Brotli
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@ Group: Development/Languages/Python
URL: https://pypi.org/project/Brotli/ 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 devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler BuildRequires: c++_compiler
BuildRequires: fdupes BuildRequires: fdupes
@@ -46,15 +47,18 @@ The specification of the Brotli Compressed Data Format is defined in RFC 7932.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitearch}/* %{python_sitearch}/brotli.py
%{python_sitearch}/_brotli*
%pycache_only %{python_sitearch}/__pycache__/brotli*
%{python_sitearch}/[Bb]rotli-%{version}*info
%changelog %changelog