[Rpm-maint] [rpm-software-management/rpm] RFE: Convenient version comparison macro (#1217)

Panu Matilainen notifications at github.com
Thu May 14 08:13:06 UTC 2020


...except that versions are not integers, they're strings, and the expression parser now explicitly separates the two. So we could make the string comparison *be* version comparison, at which point you could do this in a spec

```
%if "%{python3_version}" >= "3.9"
...
%endif
```

...and it'd do the actually right thing without any extra macros, but also available in the macro side through %[] and %{expr:...}.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1217#issuecomment-628471158
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200514/16a06d5f/attachment.html>


More information about the Rpm-maint mailing list