From 93ceeef7524a914c744fcd256a4e91191a2f0c98528652a803059f9b01cefb38 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 3 Sep 2013 08:51:36 +0000 Subject: [PATCH] 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 --- python-dpkt.spec | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/python-dpkt.spec b/python-dpkt.spec index 158bd95..49ba2f4 100644 --- a/python-dpkt.spec +++ b/python-dpkt.spec @@ -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