From 8e1dfe35dfb166720bd2cbac5a740f68b54a9d53f1197d9f8f98a22799c00791 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 22 Feb 2021 12:56:42 +0000 Subject: [PATCH] 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 --- _multibuild | 4 ++++ brotli.changes | 5 +++++ brotli.spec | 2 +- python-brotli.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 _multibuild create mode 100644 python-brotli.spec diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..d5ae92b --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + python-brotli + + diff --git a/brotli.changes b/brotli.changes index 18256f6..30fafa6 100644 --- a/brotli.changes +++ b/brotli.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 18 09:25:31 UTC 2021 - Luigi Baldoni + +- Add _multibuild and create python module package + ------------------------------------------------------------------- Tue Sep 1 13:56:47 UTC 2020 - Jan Engelhardt diff --git a/brotli.spec b/brotli.spec index 2a747ec..94472b3 100644 --- a/brotli.spec +++ b/brotli.spec @@ -1,7 +1,7 @@ # # spec file for package brotli # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2017 Buschmann # # All modifications and additions to the file contributed by third parties diff --git a/python-brotli.spec b/python-brotli.spec new file mode 100644 index 0000000..9f3b0e7 --- /dev/null +++ b/python-brotli.spec @@ -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