blob: 47ab5798679f3c928c14b49b450e44ee8c8234d4 [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.2
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"
* Sun May 17 2015 * Jiri Kastner <> - 0.2-1
- update to 0.2
* Wed May 13 2009 * Arnaldo Carvalho de Melo <> - 0.1-1
- Initial package