From 33d2332bfa13079d0868b2f22f0a951f252f3e26 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Jul 20 2021 10:48:30 +0000 Subject: Drop references to old Fedora versions --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index 5c51c9f..248689e 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -51,7 +51,7 @@ NOTE: A summary of changes from the older guidelines is available at https://hackmd.io/@python-maint/rJmQQc4DP //// -NOTE: These guidelines only support Fedora 31+. +NOTE: These guidelines only support current Fedora releases. For older releases (such as in EPEL 8), consult the xref:Python.adoc[201x-era guidelines]. @@ -555,13 +555,12 @@ The provide *SHOULD NOT* be added manually: if a generator or macro is not used, do not add the `+python-FOO+` / `+python3.X-FOO+` provides at all. -On Fedora 33+, this is done automatically for package names by a generator. +This is done automatically for package names by a generator. If absolutely necessary, the generator can be disabled by undefining <<__pythonname_provides,the `+%__pythonname_provides+` macro>>. -On releases older than Fedora 33, +For provides that aren’t package names, or (for technical reasons) for packages without files, -or for provides that aren’t package names, the generator will not work. For these cases, the following invocation will provide `+python3-FOO+`, `+python-FOO+` and `+python3.X-FOO+`: @@ -1677,8 +1676,7 @@ or `+%if "%{python3_version}" > "3.8"+` is not possible, because the comparison is performed alphabetically on strings. Hence it is true that `+"3.10" < "3.8"+` (which is not desired). -Starting with RPM 4.16 (Fedora 33), -it is possible to explicitly compare version literals by using the `+v+` prefix, +It is possible to explicitly compare version literals by using the `+v+` prefix, similar to the Python string prefixes: [source,spec] @@ -1688,7 +1686,9 @@ similar to the Python string prefixes: %endif ---- -As a workaround for compatibility with older RPM releases, +[NOTE] +==== +As a workaround for compatibility with RPM releases before 4.16 (Fedora 33), `+%{python3_version_nodots}+` can be compared as an integers: [source,spec] @@ -1700,6 +1700,7 @@ As a workaround for compatibility with older RPM releases, This will work with Python 3.10 (310 > 39), but eventually break with Python 4.0 (40 < 310). +==== === Disabling automation