From f3582499aa8634cb7a87bd91a4de245697bc6a57 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 23 Feb 2013 20:10:15 +0100 Subject: [PATCH] Fix up the shebang for python3 example --- pyatspi.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyatspi.spec b/pyatspi.spec index 9eef200..b13b233 100644 --- a/pyatspi.spec +++ b/pyatspi.spec @@ -71,6 +71,10 @@ popd # Install the example into docdir instead rm $RPM_BUILD_ROOT%{_bindir}/magFocusTracker.py +# Fix up the shebang for python3 example +cp -a examples python3-examples +sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' python3-examples/magFocusTracker.py + %files %doc COPYING COPYING.GPL AUTHORS README @@ -79,7 +83,7 @@ rm $RPM_BUILD_ROOT%{_bindir}/magFocusTracker.py %files -n python3-pyatspi %doc COPYING COPYING.GPL AUTHORS README -%doc examples/magFocusTracker.py +%doc python3-examples/magFocusTracker.py %{python3_sitelib}/pyatspi/