Bug 1355810
| Summary: | %python_provide macro breaks fedpkg | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Matěj Cepl <mcepl> | ||||
| Component: | python-rpm-macros | Assignee: | Orion Poplawski <orion> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | epel7 | CC: | cstratak, j, mcepl, orion, python-sig, sergio | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-07-12 15:42:51 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1341641 | ||||||
| Attachments: |
|
||||||
Instead of:
%{?python_provide:%python_provide python3-%{modname}}
use:
%{?python_provide:%python_provide python%{python3-pkgversion}-%{modname}}
python3- is not valid on EL7.
is not %{python3-pkgversion} is %{python3_pkgversion}
documented here:
https://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
Created attachment 1178939 [details] example spec file Description of problem: When I include the following line (and the equivalent for python3) to my spec, fedpkg breaks %{?python_provide:%python_provide python2-%{modname}} with $ fedpkg --dist master --module-name pytest-runner srpm error: line 42: Unknown tag: %python_provide: ERROR: python3-pytest_runner not recognized. error: query of specfile /home/matej/build/EXTRAS/pytest-runner/pytest-runner.spec failed, can't parse Could not execute srpm: Could not get n-v-r-e from '\n' $ Version-Release number of selected component (if applicable): python-srpm-macros-3-6.el7.1.noarch python-rpm-macros-3-6.el7.1.noarch How reproducible: 100% Steps to Reproduce: 1. see above 2. 3. Actual results: my Python packaging is completely broken, Expected results: Additional info: This bug completely disallows me to do packaging work on RHEL-7. Of course, I am aware that I am also forbidden to use one spec for all branches (because now every packages asks for python2-foo instead of python-foo, so all my current python packages are broken), but this one completely shuts me down.