forked from pool/brotli
Jan Engelhardt
8e1dfe35df
- 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
56 lines
1.6 KiB
RPMSpec
56 lines
1.6 KiB
RPMSpec
#
|
|
# 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
|