From 35da8cd86af95357c09a04f8f1b2e70b4ec6bef7b159c20116e79697fab66501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 26 Jun 2017 16:44:47 +0000 Subject: [PATCH] Accepting request 506296 from home:mimi_vx:branches:devel:languages:python - use simplier macros for build c parts and runtests OBS-URL: https://build.opensuse.org/request/show/506296 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=2 --- python-python-ptrace.changes | 5 +++++ python-python-ptrace.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-python-ptrace.changes b/python-python-ptrace.changes index a138051..e5d704f 100644 --- a/python-python-ptrace.changes +++ b/python-python-ptrace.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 26 16:26:48 UTC 2017 - mimi.vx@gmail.com + +- use simplier macros for build c parts and runtests + ------------------------------------------------------------------- Sun Jun 25 09:00:13 UTC 2017 - mimi.vx@gmail.com diff --git a/python-python-ptrace.spec b/python-python-ptrace.spec index 99d7e46..c5f60bf 100644 --- a/python-python-ptrace.spec +++ b/python-python-ptrace.spec @@ -47,17 +47,17 @@ chmod 0644 examples/*.py %build %python_build -%{python_expand $python setup_cptrace.py build} +%python_exec setup_cptrace.py build %install %python_install -%{python_expand $python setup_cptrace.py install -O1 --skip-build --root %{buildroot}} +%python_exec setup_cptrace.py install -O1 --skip-build --root %{buildroot} %python_clone -a %{buildroot}%{_bindir}/gdb.py %python_clone -a %{buildroot}%{_bindir}/strace.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand $python runtests.py} +%python_exec runtests.py %post %python_install_alternative strace.py