diff --git a/.gitignore b/.gitignore index a8a7ab4..a9d2488 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /netifaces-0.5.tar.gz +/netifaces-0.10.4.tar.gz diff --git a/python-netifaces.spec b/python-netifaces.spec index 9736fbb..06b49ad 100644 --- a/python-netifaces.spec +++ b/python-netifaces.spec @@ -1,23 +1,23 @@ -%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%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 +%global pypi_name netifaces + Name: python-netifaces -Version: 0.5 -Release: 8%{?dist} +Version: 0.10.4 +Release: 1%{?dist} Summary: Python library to retrieve information about network interfaces Group: Development/Libraries License: MIT -URL: http://alastairs-place.net/netifaces/ -Source0: http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +URL: https://pypi.python.org/pypi/netifaces +Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python-setuptools -Requires: python2 %description This package provides a cross platform API for getting address information @@ -25,30 +25,27 @@ from network interfaces. %prep -%setup -q -n netifaces-%{version} +%setup -q -n %{pypi_name}-%{version} -%build -python setup.py build +%Build +%{__python2} setup.py build %install -rm -rf $RPM_BUILD_ROOT -python setup.py install --root $RPM_BUILD_ROOT -chmod -x $RPM_BUILD_ROOT%{python_sitearch}/netifaces-0.5-*.egg-info/* - - -%clean -rm -rf $RPM_BUILD_ROOT +%{__python2} setup.py install --root $RPM_BUILD_ROOT %files -%defattr(-,root,root,-) -%doc README -%{python_sitearch}/netifaces-0.5-*.egg-info/ -%{python_sitearch}/netifaces.so +%doc README.rst +%{python2_sitearch}/%{pypi_name}-%{version}-*.egg-info/ +%{python2_sitearch}/%{pypi_name}.so %changelog +* Mon Feb 23 2015 Haïkel Guémar - 0.10.4-1 +- Upstream 0.10.4 +- Packaging cleanups + * Sun Aug 17 2014 Fedora Release Engineering - 0.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 3765e48..a894f93 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ea662a4b4c7db5d1631cc33bf68eb030 netifaces-0.5.tar.gz +36da76e2cfadd24cc7510c2c0012eb1e netifaces-0.10.4.tar.gz