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/