# Created by pyp2rpm-2.0.0 %global pypi_name protobuf Name: python-%{pypi_name} Version: 3.9.1 Release: 1%{?dist} Summary: Protocol Buffers License: 3-Clause BSD License URL: https://developers.google.com/protocol-buffers/ Source0: https://files.pythonhosted.org/packages/6d/54/12c5c92ffab546538ea5b544c6afbfcce333fd47e99c1198e24a8efdef1f/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-six BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description Protocol Buffers are Google's data interchange format %package -n python2-%{pypi_name} Summary: Protocol Buffers %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-six >= 1.9 Requires: python-setuptools %description -n python2-%{pypi_name} Protocol Buffers are Google's data interchange format %package -n python3-%{pypi_name} Summary: Protocol Buffers %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python-six >= 1.9 Requires: python3-setuptools %description -n python3-%{pypi_name} Protocol Buffers are Google's data interchange format %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 %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{pypi_name} %doc README.md #%{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %{python2_sitelib}/%{pypi_name}-%{version}-py?.?-nspkg.pth %{python2_sitelib}/google/%{pypi_name} %files -n python3-%{pypi_name} %doc README.md #%{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py?.?-nspkg.pth %{python3_sitelib}/google/%{pypi_name} %changelog * Wed Sep 18 2019 Yuri Pradkin - 3.9.1-1 - Initial package.