1
0
Sascha Peilicke 2011-11-29 09:21:43 +00:00 committed by Git OBS Bridge
parent 38db14251e
commit a3d36dadbb
2 changed files with 27 additions and 31 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 29 09:21:30 UTC 2011 - saschpe@suse.de
- Minor cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 27 12:37:48 UTC 2011 - rschweikert@novell.com Thu Jan 27 12:37:48 UTC 2011 - rschweikert@novell.com

View File

@ -8,23 +8,23 @@
# Please submit bugfixes or comments via http://www.suse.de/feedback/ # Please submit bugfixes or comments via http://www.suse.de/feedback/
# #
# norootforbuild
Name: python-netifaces Name: python-netifaces
Version: 0.5 Version: 0.5
Release: 1 Release: 0
%define pop_name netifaces License: MIT
Provides: %{pop_name} Summary: Portable network interface information
Requires: python = %{py_ver} Url: http://alastairs-place.net/netifaces/
BuildRequires: gcc Group: Development/Languages/Python
BuildRequires: python-devel Source: netifaces-%{version}.tar.bz2
BuildRequires: python-setuptools BuildRequires: python-devel
Group: Development/Languages/Python BuildRequires: python-distribute
License: MIT Provides: netifaces
URL: http://alastairs-place.net/netifaces/ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Portable network interface information %if 0%{?suse_version}
Source: %{pop_name}-%{version}.tar.bz2 %py_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %endif
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description %description
netifaces provides a (hopefully portable-ish) way for Python programmers to netifaces provides a (hopefully portable-ish) way for Python programmers to
@ -35,31 +35,22 @@ The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux and
Solaris. On Windows, it is currently not able to retrieve IPv6 addresses, Solaris. On Windows, it is currently not able to retrieve IPv6 addresses,
owing to shortcomings of the Windows API. owing to shortcomings of the Windows API.
It should work on other UNIX-like systems provided they implement either It should work on other UNIX-like systems provided they implement either
getifaddrs() or support the SIOCGIFxxx socket options, although the data getifaddrs() or support the SIOCGIFxxx socket options, although the data
provided by the socket options is normally less complete. provided by the socket options is normally less complete.
Authors:
Alastair Houghton <alastair at alastairs-place net>
%prep %prep
%setup -q -n %pop_name-%{version} %setup -q -n netifaces-%{version}
%build %build
%{__python} setup.py build python setup.py build
%install %install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean %files
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README %doc README
%{python_sitearch}/*
%changelog %changelog
* Thu Jan 27 2011 Robert Schweikert <rschweikert@novell.com> - netifaces-1
- Initial build.