- 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
|
||||
|
||||
|
@ -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
|
||||
@ -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
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user