Accepting request 197129 from home:gregfreemyer:Tools-for-forensic-boot-cd

clean-up macro definition as per python-pip.  saschpe requested this, so I'll let him review/accept this SR.

OBS-URL: https://build.opensuse.org/request/show/197129
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dpkt?expand=0&rev=8
This commit is contained in:
Sascha Peilicke
2013-09-03 08:51:36 +00:00
committed by Git OBS Bridge
parent 36ca31846a
commit 93ceeef752

View File

@@ -27,16 +27,11 @@ BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: python-devel
BuildRequires: python-xml
BuildRequires: epydoc
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%endif
%if 0%{?suse_version} < 1120
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%description
Fast, simple packet creation / parsing, with definitions for the basic TCP/IP