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

View File

@ -8,23 +8,23 @@
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: python-netifaces
Version: 0.5
Release: 1
%define pop_name netifaces
Provides: %{pop_name}
Requires: python = %{py_ver}
BuildRequires: gcc
BuildRequires: python-devel
BuildRequires: python-setuptools
Group: Development/Languages/Python
License: MIT
URL: http://alastairs-place.net/netifaces/
Summary: Portable network interface information
Source: %{pop_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Name: python-netifaces
Version: 0.5
Release: 0
License: MIT
Summary: Portable network interface information
Url: http://alastairs-place.net/netifaces/
Group: Development/Languages/Python
Source: netifaces-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-distribute
Provides: netifaces
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%endif
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
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,
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
provided by the socket options is normally less complete.
Authors:
Alastair Houghton <alastair at alastairs-place net>
%prep
%setup -q -n %pop_name-%{version}
%setup -q -n netifaces-%{version}
%build
%{__python} setup.py build
python setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%files
%defattr(-,root,root,-)
%doc README
%{python_sitearch}/*
%changelog
* Thu Jan 27 2011 Robert Schweikert <rschweikert@novell.com> - netifaces-1
- Initial build.