[packages/erlang] add P: for supported OTP versions
atler
atler at pld-linux.org
Thu Nov 14 17:56:35 CET 2024
commit 226711b84525e01b43356caca28b8fa1bc1ee331
Author: Jan Palus <atler 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
More information about the pld-cvs-commit
mailing list