Hide Forgot
Description of problem: The rpm package provides a useful %python_version macro: %python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])") Could we have a similar %python3_version macro as well? Version-Release number of selected component (if applicable): python3-3.1.2-14.fc14.x86_64 Steps to Reproduce: rpm --eval %python3_version Actual results: %python3_version Expected results: 3.1
Change committed/pushed to git: http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=commitdiff;h=65e90f617be391c7453dd0241e828b9f8f5cf5a1 With this applied locally, I get the following on this F15 box: $ rpm --eval %python3_version 3.2 Building python3-3.2.1-3.fc17 for dist-rawhide Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3284119