# Created by pyp2rpm-2.0.0 %global pypi_name simplejson Name: python-%{pypi_name} Version: 3.16.0 Release: 1%{?dist} Summary: Simple, fast, extensible JSON encoder/decoder for Python License: AFL and MIT URL: https://github.com/simplejson/simplejson Source0: https://files.pythonhosted.org/packages/e3/24/c35fb1c1c315fc0fffe61ea00d3f88e85469004713dab488dee4f35b0aff/%{pypi_name}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description simplejson ---------- .. image:: https://travis- ci.org/simplejson/simplejson.svg?branch=master :target: https://travis- ci.org/simplejson/simplejson simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed ... %package -n python2-%{pypi_name} Summary: Simple, fast, extensible JSON encoder/decoder for Python %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} simplejson ---------- .. image:: https://travis- ci.org/simplejson/simplejson.svg?branch=master :target: https://travis- ci.org/simplejson/simplejson simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed ... %package -n python3-%{pypi_name} Summary: Simple, fast, extensible JSON encoder/decoder for Python %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} simplejson ---------- .. image:: https://travis- ci.org/simplejson/simplejson.svg?branch=master :target: https://travis- ci.org/simplejson/simplejson simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed ... %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 subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %doc README.rst LICENSE.txt %{python2_sitearch}/%{pypi_name} %{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %doc README.rst LICENSE.txt %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Sep 18 2019 Yuri Pradkin - 3.16.0-1 - Initial package.