From 70e479e566fc103b830ee8c845fb240cb228ce367d8da5a52ac5d0b931eaf2a1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 May 2021 08:52:45 +0000 Subject: [PATCH] I give up, use the existing bits in %prep that I missed. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=11 --- python-dbus-deviation.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 92c9887..5678336 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -45,8 +45,8 @@ This functionality is also available as a Python module, dbusdeviation. %prep %setup -q -n dbus-deviation-%{version} sed -i -e "/setuptools_/d" setup.py -chmod -x dbusapi/tests/*.py dbusdeviation/utilities/*.py -sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py +chmod -x dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py +sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py %build %python_build @@ -56,8 +56,6 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff %python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Drop execute bits for shipped modules -%python_expand find %{buildroot}%{$python_sitelib} -name '*.py' -print0 | xargs -0 chmod a-x %check %pyunittest -v