ALT Linux Bugzilla – #3311
%__python_version expands to nothing if puthon is not installed
Last modified: 2008-06-13 12:15:56
You need to
before you can comment on or make changes to this bug.
GLobal macro %__python_version expands to empty string if puthon is not
installed. This causes parse errors in sandman while doing it's pre-commit check
on specfiles containing something like:
Requires: python >= %__python_version
This macro should look like this:
%__python_version %((%__python -c 'import sys; print sys.version' 2>/dev/null ||
echo "unknown") |head -1 |cut -d' ' -f1 |cut -d. -f1,2)
This will not cause any errors in build process since python-devel package is
often BuildRequire'd in such packages.
Applied in upcoming rpm-4.0.4-alt28