Skip to content

Commit

Permalink
add: gleam (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Nov 5, 2023
1 parent 37a2103 commit 7fe2a17
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/gleam/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "gleam.spec"
}
}
31 changes: 31 additions & 0 deletions anda/gleam/gleam.spec
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions anda/gleam/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("gleam-lang/gleam"));

0 comments on commit 7fe2a17

Please sign in to comment.