blob: c7ad7536f7b0e22e08c81a352b84518af70dbaf0 [file] [log] [blame]
%{!?pytho1_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
Summary: Ethernet settings python bindings
Name: python-inet_diag
Version: 0.1
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Libraries
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Python bindings for the inet_diag kernel interface, that allows querying AF_INET
socket state.
%setup -q
%{__python} build
rm -rf %{buildroot}
%{__python} install --skip-build --root %{buildroot}
mkdir -p %{buildroot}%{_sbindir}
cp -p %{buildroot}%{_sbindir}/pss
cp -p %{buildroot}%{_sbindir}/psk
rm -rf %{buildroot}
%if "%{python_ver}" >= "2.5"
* Wed May 13 2009 * Arnaldo Carvalho de Melo <> - 0.1-1
- Initial package