Upgrade to Elixir 1.18.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/elixir?expand=0&rev=112
This commit is contained in:
Fabrizio Sestito 2025-01-23 14:09:43 +00:00 committed by Git OBS Bridge
commit 1517f353b5
16 changed files with 3511 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,22 @@
diff --git a/lib/logger/test/logger/translator_test.exs b/lib/logger/test/logger/translator_test.exs
index e15010a29..cc99f945b 100644
--- a/lib/logger/test/logger/translator_test.exs
+++ b/lib/logger/test/logger/translator_test.exs
@@ -945,6 +945,7 @@ test "translates :proc_lib crashes with neighbour with name" do
"""
end
+ @tag :skip
test "translates Supervisor progress" do
{:ok, pid} = Supervisor.start_link([], strategy: :one_for_one)
@@ -960,6 +961,7 @@ test "translates Supervisor progress" do
"""
end
+ @tag :skip
test "translates Supervisor progress with name" do
{:ok, pid} = Supervisor.start_link([], strategy: :one_for_one, name: __MODULE__)

3
elixir-1.17.1-doc.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a6beb4e3d68803e17bcbbd850de8cf663631cca3eff7c8b14cd1e08caa8466b
size 6298402

3
elixir-1.17.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7567c7dcedd5e999d2d41bc2ff70626f49ec283af22eda4f347861bccb34c301
size 3254822

3
elixir-1.17.2-doc.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:adf8f367885b40f4905ba92636c99fc3d5f8b28a007a68320e8b1a9f0b2ea1db
size 6300987

3
elixir-1.17.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7bb8e6414b77c1707f39f620a2ad54f68d64846d663ec78069536854247fb1ab
size 3255067

3
elixir-1.18.0-doc.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fa52ef7aeb1dc478187f536ae85f63289abe88090659c1dad0bb9ab09821897
size 6295863

3
elixir-1.18.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f29104ae5a0ea78786b5fb96dce0c569db91df5bd1d3472b365dc2ea14ea784f
size 3355182

BIN
elixir-1.18.1-doc.zip (Stored with Git LFS) Normal file

Binary file not shown.

BIN
elixir-1.18.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
elixir-1.18.2-doc.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9abf670c47a7a59cd41aadca8e2b80ef37f110921f2ca6002416887650983bf9
size 6427312

3
elixir-1.18.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efc8d0660b56dd3f0c7536725a95f4d8b6be9f11ca9779d824ad79377753e916
size 3391256

3299
elixir.changes Normal file

File diff suppressed because it is too large Load Diff

125
elixir.spec Normal file
View File

@ -0,0 +1,125 @@
#
# spec file for package elixir
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define elixirdir %{_prefix}/lib/elixir
Name: elixir
Version: 1.18.2
Release: 0
Summary: Functional meta-programming aware language built atop Erlang
License: Apache-2.0
Group: Development/Languages/Other
URL: https://elixir-lang.org
Source0: https://github.com/elixir-lang/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/elixir-lang/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip
Source2: macros.elixir
Patch0: 001-skip-translator-supervisor-test.patch
BuildRequires: erlang >= 25
BuildRequires: erlang-dialyzer
BuildRequires: erlang-src
BuildRequires: fdupes
BuildRequires: gcc
# required by Mix.SCM.Git see also (https://github.com/elixir-lang/elixir/issues/1386)
BuildRequires: git-core >= 1.7
BuildRequires: make
BuildRequires: unzip
Requires: erlang >= 25
BuildArch: noarch
%description
Elixir is a functional meta-programming aware language built on top
of the Erlang VM. It is a dynamic language with flexible syntax with
macros support that leverage Erlang's abilities to build concurrent,
distributed, fault-tolerant applications with hot code upgrades.
Elixir also provides first-class support for pattern matching,
polymorphism via protocols (similar to Clojure's), aliases and
associative data structures (usually known as dicts or hashes in
other programming languages).
Finally, Elixir and Erlang share the same bytecode and data types.
This means one can invoke Erlang code from Elixir (and vice-versa)
without any conversion or performance impact.
%package doc
Summary: Documentation for elixir
Group: Documentation/Other
Requires: elixir = %{version}
BuildArch: noarch
%description doc
Documentation for the Elixir language.
%prep
%autosetup -p1
unzip -o %{SOURCE1}
find doc \( -name ".build" -or -name ".ex_doc" \) -delete
%build
# Elixir wants UTF-8 locale, force it
export LANG=en_US.UTF-8
# Make Elixir
%make_build
%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
mkdir -p %{buildroot}%{_bindir}
for I in iex elixir elixirc mix
do
ln -sf %{elixirdir}/bin/$I %{buildroot}%{_bindir}/$I
done
install -D -m 0644 %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.elixir
mkdir -p %{buildroot}%{_defaultdocdir}
cp -pa doc %{buildroot}%{_defaultdocdir}/elixir-doc
%fdupes -s %{buildroot}/%{_mandir}
%fdupes %{buildroot}/%{_prefix}
%check
export LANG=en_US.UTF-8
%make_build test
%files
%doc CHANGELOG.md README.md NOTICE
%license LICENSE
%dir %{elixirdir}
%dir %{elixirdir}/bin
%dir %{elixirdir}/lib
%{_bindir}/iex
%{_bindir}/elixir
%{_bindir}/elixirc
%{_bindir}/mix
%{_mandir}/man1/iex.1%{?ext_man}
%{_mandir}/man1/elixir.1%{?ext_man}
%{_mandir}/man1/elixirc.1%{?ext_man}
%{_mandir}/man1/mix.1%{?ext_man}
%{elixirdir}/bin/iex
%{elixirdir}/bin/elixirc
%{elixirdir}/bin/mix
%{elixirdir}/bin/elixir
%{elixirdir}/lib/*
%{_rpmmacrodir}/macros.elixir
%files doc
%license LICENSE
%{_defaultdocdir}/elixir-doc
%changelog

11
macros.elixir Normal file
View File

@ -0,0 +1,11 @@
# macros.elixir
#
%elixir_dir %{_prefix}/lib/elixir
%elixir_libdir %{_prefix}/lib/elixir/lib
%__mix %{_bindir}/mix
%mix_compile() \
MIX_ENV=prod %__mix compile \
%{nil}