| |
@@ -1815,17 +1815,17 @@
|
| |
|
| |
[NOTE]
|
| |
====
|
| |
- As a workaround for compatibility with RPM releases before 4.16 (Fedora 33),
|
| |
+ As a workaround for compatibility with RPM releases up to 4.16 (EPEL 9),
|
| |
`+%{python3_version_nodots}+` can be compared as an integers:
|
| |
|
| |
[source,spec]
|
| |
----
|
| |
- %if %{python3_version_nodots} > 38
|
| |
+ %if 0%{?python3_version_nodots} > 38
|
| |
...
|
| |
%endif
|
| |
----
|
| |
|
| |
- This will work with Python 3.10 (310 > 39),
|
| |
+ This will work with Python 3.10 (310 > 38),
|
| |
but eventually break with Python 4.0 (40 < 310).
|
| |
====
|
| |
|
| |
This is not defined until
python3-devel
is installed, so it has to beconditionally evaluated just like the previous
python3_version
example.
ALso note that the comparison using
python3_version
does not work onEPEL 9 as well, and
python3_version_nodots
is required.Signed-off-by: Michel Alexandre Salim salimma@fedoraproject.org