Blame SPECS/python-netifaces.spec

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