https://fedoraproject.org/wiki/Packaging:Python
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
These no longer work with Python 3 due to "print" changes. They should be
replaced with something like these that work with both Python 2 and 3 (already
done in spectemplate-python.spec in rpmdevtools git):
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
distutils.sysconfig import *; import sys;
sys.stdout.write(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from
distutils.sysconfig import *; import sys;
sys.stdout.write(get_python_lib(1))")}
The spec template in the Sugar packaging guidelines
(https://fedoraproject.org/wiki/Packaging:SugarActivityGuidelines)
indicates that the package should not own %{sugaractivitydir} (which
evaluates to /usr/share/sugar/activities). Unfortunately, this means
nothing in the filesystem owns that directory because sugar itself
doesn't own it for some reason.
I would suggest that the simplest way to fix it would be to have the
sugar package own that directory, but alternately we could fix the sugar
packaging guidelines and fix up all of the activity packages.
- J<