Fix up the shebang for python3 example

This commit is contained in:
Kalev Lember 2013-02-23 20:10:15 +01:00
parent a7768ca94b
commit f3582499aa

View File

@ -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/