forked from pool/python-netifaces
- Minor cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netifaces?expand=0&rev=2
This commit is contained in:
parent
38db14251e
commit
a3d36dadbb
@ -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
|
||||||
|
|
||||||
|
@ -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
|
|
||||||
Provides: %{pop_name}
|
|
||||||
Requires: python = %{py_ver}
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
Group: Development/Languages/Python
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://alastairs-place.net/netifaces/
|
|
||||||
Summary: Portable network interface information
|
Summary: Portable network interface information
|
||||||
Source: %{pop_name}-%{version}.tar.bz2
|
Url: http://alastairs-place.net/netifaces/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
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
|
%description
|
||||||
netifaces provides a (hopefully portable-ish) way for Python programmers to
|
netifaces provides a (hopefully portable-ish) way for Python programmers to
|
||||||
@ -39,27 +39,18 @@ 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.
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user