File python-protobuf.spec of Package python-protobuf

# Created by pyp2rpm-3.2.3
%global pypi_name protobuf

Name:           python-%{pypi_name}
Version:        3.5.1
Release:        1%{?dist}
Summary:        Protocol Buffers

License:        3-Clause BSD License
URL:            https://developers.google.com/protocol-buffers/
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
Protocol Buffers are Google's data interchange format

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
 
Requires:       python2-setuptools
Requires:       python2-six >= 1.9

%description -n python2-%{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

%install
%py2_install

%files -n python2-%{pypi_name}
%{python2_sitelib}/google
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?-nspkg.pth
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Tue Jan 16 2018 Yunfei Shi <shiyf2@lenovo.com>  - 3.5.1-1
- Initial package.
openSUSE Build Service is sponsored by