Accepting request 873412 from home:alois:branches:Archiving

- Add _multibuild and create python module package

OBS-URL: https://build.opensuse.org/request/show/873412
OBS-URL: https://build.opensuse.org/package/show/Archiving/brotli?expand=0&rev=30
This commit is contained in:
Jan Engelhardt 2021-02-22 12:56:42 +00:00 committed by Git OBS Bridge
parent 3f098799f2
commit 8e1dfe35df
4 changed files with 65 additions and 1 deletions

4
_multibuild Normal file
View File

@ -0,0 +1,4 @@
<multibuild>
<flavor>python-brotli</flavor>
</multibuild>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 18 09:25:31 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>
- Add _multibuild and create python module package
-------------------------------------------------------------------
Tue Sep 1 13:56:47 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package brotli
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2017 Buschmann <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties

55
python-brotli.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package python-brotli
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-brotli
Version: 1.0.9
Release: 0
Summary: Brotli python module
License: MIT
Group: Development/Languages/Python
URL: https://github.com/google/brotli
Source: https://github.com/google/brotli/archive/v%version.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
%python_subpackages
%description
Module to use Brotli with python.
%prep
%autosetup -n brotli-%version
%build
%python_build
%install
%python_install
%files %python_files
%doc python/README.md
%license LICENSE
%python_sitearch/__pycache__
%python_sitearch/_brotli.cpython*.so
%python_sitearch/brotli.py
%python_sitearch/Brotli-%version-py%python_version.egg-info
%changelog