commit 226711b84525e01b43356caca28b8fa1bc1ee331
Author: Jan Palus <at...@pld-linux.org>
Date:   Thu Nov 14 17:22:31 2024 +0100

    add P: for supported OTP versions
    
    starting with version 17 major version depicts OTP version:
    ihttps://www.erlang.org/doc/system/versions.html#otp-version
    
    each major release is able to load files from two previous major
    releases:
    https://www.erlang.org/doc/system/misc.html#compatibility

 erlang.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/erlang.spec b/erlang.spec
index 5f9e29f..41ecced 100644
--- a/erlang.spec
+++ b/erlang.spec
@@ -13,6 +13,7 @@
 %bcond_without doc             # build documentation
 #
 
+%define                otp             %(echo %version | cut -f1 -d.)
 %define                erts_version    15.1.2
 
 Summary:       OpenSource Erlang/OTP
@@ -56,6 +57,9 @@ BuildConflicts:       unixODBC-devel
 %endif
 Requires:      systemd-units >= 38
 Requires(post,preun,postun):   systemd-units >= 38
+Provides:      erlang(OTP) = %otp
+Provides:      erlang(OTP) = %{lua:print(macros.otp - 1)}
+Provides:      erlang(OTP) = %{lua:print(macros.otp - 2)}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define _erl_target %(echo %{_build}%{?_gnu} | sed 
-e's/amd64/x86_64/;s/athlon/i686/;s/ppc/powerpc/;s/x32/x86_64/')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/erlang.git/commitdiff/226711b84525e01b43356caca28b8fa1bc1ee331

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to