From 348e8ab35663b70f01fef44a94c57c88ef7355d3b6185de10e512a59fd76a840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 23 Jul 2018 10:25:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=21 --- python-distorm3.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-distorm3.spec b/python-distorm3.spec index 9260ea5..26da0a0 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -31,6 +31,7 @@ Patch0: 0001-don-t-stutter-static-on-BigEndian.patch # PATCH-FIX-UPSTREAM https://github.com/gdabah/distorm/pull/116 Patch1: reproducible.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -54,8 +55,10 @@ export CFLAGS="%{optflags}" %python_install # setup.py install puts files into wrong directory # https://github.com/gdabah/distorm/issues/124 -%python_expand mkdir -p %{buildroot}%{$python_sitearch} -%python_expand mv -v %{buildroot}%{$python_sitelib}/%{modname}* %{buildroot}%{$python_sitearch} +if [[ "x%_lib" != 'xlib' ]]; then + %python_expand mkdir -p %{buildroot}%{$python_sitearch} + %python_expand mv -v %{buildroot}%{$python_sitelib}/%{modname}* %{buildroot}%{$python_sitearch} +fi %python_expand %fdupes %{buildroot}%{$python_sitearch} # tests are not packaged in the upstream tarball