File python-netifaces.spec of Package python-netifaces
# Created by pyp2rpm-3.2.3
%global pypi_name netifaces
Name: python-%{pypi_name}
Version: 0.10.6
Release: 1%{?dist}
Summary: Python 2 library to retrieve information about network interfaces
License: MIT License
URL: https://bitbucket.org/al45tair/netifaces
Source0: https://pypi.io/packages/source/n/netifaces/netifaces-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%global __provides_exclude_from ^(%{python2_sitearch}/%{pypi_name}.so)$
%description
This package provides a cross platform API for getting address information
from network interfaces.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
This package provides a cross platform API for getting address information
from network interfaces.
%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}
%doc README.rst
%{python2_sitearch}/%{pypi_name}.so
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.10.6-1
- Initial package.