| Summary: | Add a %python3_version rpm macro | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Garrett Holmstrom <gholms> |
| Component: | python3 | Assignee: | Dave Malcolm <dmalcolm> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | amcnabb, dmalcolm, thomas.moschny, tomspur |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python3-3.2.1-3.fc17 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-18 18:51:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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