# Created by pyp2rpm-3.3.2 %global pypi_name brotlipy Name: python-%{pypi_name} Version: 0.7.0 Release: 1%{?dist} Summary: Python binding to the Brotli library License: MIT URL: https://github.com/python-hyper/brotlipy/ Source0: https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: python2-devel BuildRequires: python2dist(cffi) >= 1.0.0 BuildRequires: python2dist(cffi) >= 1.0.0 BuildRequires: python2dist(enum34) < 2 BuildRequires: python2dist(enum34) >= 1.0.4 BuildRequires: python2dist(setuptools) BuildRequires: python3-devel BuildRequires: python3dist(cffi) >= 1.0.0 BuildRequires: python3dist(cffi) >= 1.0.0 BuildRequires: python3dist(setuptools) %description This library contains Python bindings for the reference Brotli encoder/decoder, available here_. This allows Python software to use the Brotli compression algorithm directly from Python code.To use it simply, try this:.. code-block:: python import brotli data brotli.decompress(compressed_data)More information can be found in the documentation_... _available here: .. _in the documentation: The... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2dist(cffi) >= 1.0.0 Requires: python2dist(enum34) < 2 Requires: python2dist(enum34) >= 1.0.4 %description -n python2-%{pypi_name} This library contains Python bindings for the reference Brotli encoder/decoder, available here_. This allows Python software to use the Brotli compression algorithm directly from Python code.To use it simply, try this:.. code-block:: python import brotli data brotli.decompress(compressed_data)More information can be found in the documentation_... _available here: .. _in the documentation: The... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(cffi) >= 1.0.0 %description -n python3-%{pypi_name} This library contains Python bindings for the reference Brotli encoder/decoder, available here_. This allows Python software to use the Brotli compression algorithm directly from Python code.To use it simply, try this:.. code-block:: python import brotli data brotli.decompress(compressed_data)More information can be found in the documentation_... _available here: .. _in the documentation: The... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{pypi_name} %license libbrotli/LICENSE LICENSE %doc README.rst %{python2_sitearch}/brotli %{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license libbrotli/LICENSE LICENSE %doc README.rst %{python3_sitearch}/brotli %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Jul 16 2018 Felix Kaechele - 0.7.0-1 - Initial package.