File python-protobuf.spec of Package python-protobuf
%global pypi_name protobuf
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{pypi_name}
Version: 3.5.1
Release: 0
Summary: Protocol Buffers for Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://developers.google.com/protocol-buffers/
Source0: https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires: python-six >= 1.9
%python_subpackages
%description
Protocol Buffers are Google's data interchange format.
%prep
%setup -q -n %{pypi_name}-%{version}
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%files %{python_files}
%{python2_sitelib}/*
%changelog