Update to 0.10.5
- Ship python2-netifaces - Modernize spec
This commit is contained in:
parent
03e1d851e2
commit
0cee13c90a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/netifaces-0.5.tar.gz
|
||||
/netifaces-0.10.4.tar.gz
|
||||
/netifaces-0.10.5.tar.gz
|
||||
|
@ -1,23 +1,14 @@
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
%{!?__python2: %global __python2 /usr/bin/python2}
|
||||
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
%global pypi_name netifaces
|
||||
|
||||
Name: python-netifaces
|
||||
Version: 0.10.4
|
||||
Release: 5%{?dist}
|
||||
Version: 0.10.5
|
||||
Release: 1%{?dist}
|
||||
Summary: Python library to retrieve information about network interfaces
|
||||
|
||||
Group: Development/Libraries
|
||||
License: MIT
|
||||
URL: https://pypi.python.org/pypi/netifaces
|
||||
Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
@ -27,45 +18,37 @@ BuildRequires: python-setuptools
|
||||
This package provides a cross platform API for getting address information
|
||||
from network interfaces.
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: Python library to retrieve information about network interfaces
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: Python 2 library to retrieve information about network interfaces
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%description -n python2-%{pypi_name}
|
||||
This package provides a cross platform API for getting address information
|
||||
from network interfaces.
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{pypi_name}
|
||||
Summary: Python %{python3_pkgversion} library to retrieve information about network interfaces
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{pypi_name}
|
||||
This package provides a cross platform API for getting address information
|
||||
from network interfaces.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%endif
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --root $RPM_BUILD_ROOT
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --root $RPM_BUILD_ROOT
|
||||
popd
|
||||
%endif
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
|
||||
%files
|
||||
@ -73,14 +56,17 @@ popd
|
||||
%{python2_sitearch}/%{pypi_name}-%{version}-*.egg-info/
|
||||
%{python2_sitearch}/%{pypi_name}.so
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-%{pypi_name}
|
||||
%files -n python%{python3_pkgversion}-%{pypi_name}
|
||||
%doc README.rst
|
||||
%{python3_sitearch}/%{pypi_name}-%{version}-*.egg-info/
|
||||
%{python3_sitearch}/%{pypi_name}*.so
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Nov 14 2016 Orion Poplawski <orion@cora.nwra.com> - 0.10.5-1
|
||||
- Update to 0.10.5
|
||||
- Ship python2-netifaces
|
||||
- Modernize spec
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-5
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user