Bug 1741100
| Summary: | python2-paste-script fails to install in Fedora 31+ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-paste-script | Assignee: | Andrea <andrea.manzi> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 31 | CC: | andrea.manzi, djc, infra-sig, lewk, rbarlow |
| 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: | 2019-08-19 10:56:48 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: | 1700324, 1690439 | ||
|
Description
Miro Hrončok
2019-08-14 09:13:34 UTC
ok i will remove python2-paste-script from rawhide/f31 and keep only python3-paste-script i feel a bit stupid:-) i have tried to modify the spec file to include the python2 package only in releases <= 30, but i still see the python2 package built https://koji.fedoraproject.org/koji/buildinfo?buildID=1356940 what is the correct syntax for this? https://src.fedoraproject.org/rpms/python-paste-script/blob/master/f/python-paste-script.spec thanks! %if %{?fedora}%{!?fedora:0} <= 30 || %{?rhel}%{!?rhel:0} <= 8
This translates to (on Fedora 32):
32 <= 30 || 0 <= 8
Or (on RHEL 8):
0 <= 30 || 8 <= 8
I.e. it is always true.
If you really need a crazy conditions like that, here's how to do it:
%if (0%{?fedora} && (0%{?fedora} <= 30)) || (0%{?rhel} && (0%{?rhel} <= 8))
thanks! i have applied the changes both on Rawhide https://koji.fedoraproject.org/koji/taskinfo?taskID=37149509 and F31 https://koji.fedoraproject.org/koji/taskinfo?taskID=37149816 |