From 7fe2a17b408985618efee71a2bfb08d03031d074 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 5 Nov 2023 19:41:02 +0800 Subject: [PATCH] add: gleam (#776) --- anda/gleam/anda.hcl | 5 +++++ anda/gleam/gleam.spec | 31 +++++++++++++++++++++++++++++++ anda/gleam/update.rhai | 1 + 3 files changed, 37 insertions(+) create mode 100644 anda/gleam/anda.hcl create mode 100644 anda/gleam/gleam.spec create mode 100644 anda/gleam/update.rhai diff --git a/anda/gleam/anda.hcl b/anda/gleam/anda.hcl new file mode 100644 index 0000000000..dfa5c8e4bc --- /dev/null +++ b/anda/gleam/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "gleam.spec" + } +} diff --git a/anda/gleam/gleam.spec b/anda/gleam/gleam.spec new file mode 100644 index 0000000000..65008ee76f --- /dev/null +++ b/anda/gleam/gleam.spec @@ -0,0 +1,31 @@ +%undefine __brp_mangle_shebangs + +Name: gleam +Version: 0.32.2 +Release: 1%?dist +Summary: A friendly language for building type-safe, scalable systems +License: Apache-2.0 +URL: https://gleam.run/ +Source0: https://github.com/gleam-lang/gleam/archive/v%version.tar.gz +Requires: erlang elixir +BuildRequires: cargo-rpm-macros anda-srpm-macros + +%description +Gleam is a friendly language for building type-safe, scalable systems! +It compiles to Erlang (or JavaScript) and has straightforward interop with other BEAM languages such as Erlang, Elixir, and LFE. + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/gleam %buildroot%_bindir/gleam + +%files +%_bindir/gleam + +%changelog +%autochangelog diff --git a/anda/gleam/update.rhai b/anda/gleam/update.rhai new file mode 100644 index 0000000000..503768b86f --- /dev/null +++ b/anda/gleam/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("gleam-lang/gleam"));