Blame SPECS/python-netifaces.spec

cce5c4
%global pypi_name netifaces
cce5c4
cce5c4
%if 0%{?rhel} > 7
cce5c4
# Disable python2 build by default
cce5c4
%bcond_with python2
cce5c4
%else
cce5c4
%bcond_without python2
cce5c4
%endif
cce5c4
cce5c4
Name:           python-netifaces
cce5c4
Version:        0.10.6
cce5c4
Release:        4%{?dist}
cce5c4
Summary:        Python library to retrieve information about network interfaces 
cce5c4
License:        MIT
cce5c4
URL:            https://pypi.python.org/pypi/netifaces
cce5c4
Source0:        https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
cce5c4
cce5c4
%if %{with python2}
cce5c4
BuildRequires:  python2-devel
cce5c4
BuildRequires:  python2-setuptools
cce5c4
%endif # with python2
cce5c4
cce5c4
%description
cce5c4
This package provides a cross platform API for getting address information
cce5c4
from network interfaces.
cce5c4
cce5c4
%if %{with python2}
cce5c4
%package -n python2-%{pypi_name}
cce5c4
Summary:        Python 2 library to retrieve information about network interfaces
cce5c4
%{?python_provide:%python_provide python2-%{pypi_name}}
cce5c4
cce5c4
%description -n python2-%{pypi_name}
cce5c4
This package provides a cross platform API for getting address information
cce5c4
from network interfaces.
cce5c4
%endif # with python2
cce5c4
cce5c4
%package -n python%{python3_pkgversion}-%{pypi_name}
cce5c4
Summary:        Python %{python3_pkgversion} library to retrieve information about network interfaces
cce5c4
BuildRequires:  python%{python3_pkgversion}-devel
cce5c4
BuildRequires:  python%{python3_pkgversion}-setuptools
cce5c4
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
cce5c4
cce5c4
%description -n python%{python3_pkgversion}-%{pypi_name}
cce5c4
This package provides a cross platform API for getting address information
cce5c4
from network interfaces.
cce5c4
cce5c4
cce5c4
%prep
cce5c4
%setup -q -n %{pypi_name}-%{version}
cce5c4
cce5c4
cce5c4
%build
cce5c4
%if %{with python2}
cce5c4
%py2_build
cce5c4
%endif # with python2
cce5c4
%py3_build
cce5c4
cce5c4
cce5c4
%install
cce5c4
%if %{with python2}
cce5c4
%py2_install
cce5c4
%endif # with python2
cce5c4
%py3_install
cce5c4
cce5c4
%if %{with python2}
cce5c4
%files -n python2-%{pypi_name}
cce5c4
%doc README.rst
cce5c4
%{python2_sitearch}/%{pypi_name}-%{version}-*.egg-info/
cce5c4
%{python2_sitearch}/%{pypi_name}.so
cce5c4
%endif # with python2
cce5c4
cce5c4
%files -n python%{python3_pkgversion}-%{pypi_name}
cce5c4
%doc README.rst
cce5c4
%{python3_sitearch}/%{pypi_name}-%{version}-*.egg-info/
cce5c4
%{python3_sitearch}/%{pypi_name}*.so
cce5c4
cce5c4
%changelog
cce5c4
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.10.6-4
cce5c4
- Conditionalize the python2 subpackage
cce5c4
cce5c4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.6-3
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cce5c4
cce5c4
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10.6-2
cce5c4
- Update Python 2 dependency declarations to new packaging standards
cce5c4
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
cce5c4
cce5c4
* Mon Aug 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.10.6-1
cce5c4
- Update to 0.10.6
cce5c4
cce5c4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.5-7
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cce5c4
cce5c4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.5-6
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cce5c4
cce5c4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.5-5
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cce5c4
cce5c4
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.5-4
cce5c4
- Rebuild for Python 3.6
cce5c4
cce5c4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.5-3
cce5c4
- Rebuild for Python 3.6
cce5c4
cce5c4
* Mon Nov 14 2016 Orion Poplawski <orion@cora.nwra.com> - 0.10.5-2
cce5c4
- Really ship python2-netifaces
cce5c4
cce5c4
* Mon Nov 14 2016 Orion Poplawski <orion@cora.nwra.com> - 0.10.5-1
cce5c4
- Update to 0.10.5
cce5c4
- Ship python2-netifaces
cce5c4
- Modernize spec
cce5c4
cce5c4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-5
cce5c4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cce5c4
cce5c4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.4-4
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cce5c4
cce5c4
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-3
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cce5c4
cce5c4
* Tue Jun 16 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.4-2
cce5c4
- Add python3 subpackage
cce5c4
cce5c4
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.4-1
cce5c4
- Upstream 0.10.4
cce5c4
- Packaging cleanups
cce5c4
cce5c4
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cce5c4
cce5c4
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5-7
cce5c4
- Replace python-setuptools-devel BR with python-setuptools
cce5c4
cce5c4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cce5c4
cce5c4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cce5c4
cce5c4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cce5c4
cce5c4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cce5c4
cce5c4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
cce5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cce5c4
cce5c4
* Wed Jun 1 2011 Ryan Rix <ry@n.rix.si> 0.5-1
cce5c4
- Initial packaging effort