2011-06-17 18:57:41 +00:00
|
|
|
%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))")}
|
|
|
|
%endif
|
|
|
|
|
2011-06-17 19:28:33 +00:00
|
|
|
Name: python-netifaces
|
|
|
|
Version: 0.5
|
2014-08-17 21:27:35 +00:00
|
|
|
Release: 8%{?dist}
|
2011-06-17 19:28:33 +00:00
|
|
|
Summary: Python library to retrieve information about network interfaces
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
|
|
|
URL: http://alastairs-place.net/netifaces/
|
2011-06-17 18:57:41 +00:00
|
|
|
Source0: http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz
|
2011-06-17 19:28:33 +00:00
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
2011-06-17 18:57:41 +00:00
|
|
|
|
2011-06-17 19:28:33 +00:00
|
|
|
BuildRequires: python2-devel
|
2014-06-30 23:04:39 +00:00
|
|
|
BuildRequires: python-setuptools
|
2011-06-17 19:28:33 +00:00
|
|
|
|
|
|
|
Requires: python2
|
2011-06-17 18:57:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a cross platform API for getting address information
|
|
|
|
from network interfaces.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n netifaces-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
python setup.py install --root $RPM_BUILD_ROOT
|
2011-06-21 18:19:53 +00:00
|
|
|
chmod -x $RPM_BUILD_ROOT%{python_sitearch}/netifaces-0.5-*.egg-info/*
|
2011-06-17 18:57:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
2011-06-21 18:19:53 +00:00
|
|
|
%{python_sitearch}/netifaces-0.5-*.egg-info/
|
2011-06-17 18:57:41 +00:00
|
|
|
%{python_sitearch}/netifaces.so
|
|
|
|
|
|
|
|
%changelog
|
2014-08-17 21:27:35 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-30 23:04:39 +00:00
|
|
|
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5-7
|
|
|
|
- Replace python-setuptools-devel BR with python-setuptools
|
|
|
|
|
2014-06-07 21:36:14 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 08:37:47 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 19:55:59 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 07:23:33 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 01:55:07 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-17 18:57:41 +00:00
|
|
|
* Wed Jun 1 2011 Ryan Rix <ry@n.rix.si> 0.5-1
|
|
|
|
- Initial packaging effort
|