[elixir] Initial import (#825418).
Ricky Elrod
codeblock at fedoraproject.org
Sun May 27 03:47:18 UTC 2012
commit 286007c01f2b8463b5abecc9bb1517720fdf9906
Author: Ricky Elrod <ricky at elrod.me>
Date: Sat May 26 23:46:10 2012 -0400
Initial import (#825418).
.gitignore | 1 +
elixir.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1e6e2b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/elixir-lang-elixir-v0.5.0-0-g6052352.tar.gz
diff --git a/elixir.spec b/elixir.spec
new file mode 100644
index 0000000..02aa11b
--- /dev/null
+++ b/elixir.spec
@@ -0,0 +1,64 @@
+%define gitcommit 6052352
+%define gitdate 20120526
+%define patchlevel 0
+Name: elixir
+Version: 0.5.0
+Release: 1.%{gitdate}git%{gitcommit}%{?dist}
+Summary: A modern approach to programming for the Erlang VM
+
+Group: Development/Languages
+# See LEGAL (provided by upstream) for explaination/breakdown.
+License: ASL 2.0 and ERPL
+URL: http://elixir-lang.org/
+# Source0 retrieved by pulling a Github tarball.
+# See: https://github.com/elixir-lang/elixir/tags
+Source0: %{name}-lang-%{name}-v%{version}-%{patchlevel}-g%{gitcommit}.tar.gz
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: erlang-rebar
+Requires: erlang-erts >= R15B
+Requires: erlang-inets
+
+%description
+Elixir is a programming language built on top of the Erlang VM.
+As Erlang, it is a functional language built to support distributed,
+fault-tolerant, non-stop applications with hot code swapping.
+
+%prep
+%setup -q -n %{name}-lang-%{name}-%{gitcommit}
+sed -i -e "s/time //g" Makefile
+find -name '*.bat' -exec rm \{\} \;
+
+%build
+make %{?_smp_mflags}
+
+%check
+make test
+
+%install
+rm -rf %{buildroot}
+
+# Removed packaged binary (rebar) which we already have as a build dep
+rm rebar
+
+mkdir -p %{buildroot}/%{_datadir}/%{name}/%{version}
+cp -ra bin ebin include %{buildroot}/%{_datadir}/%{name}/%{version}
+
+mkdir -p %{buildroot}/%{_bindir}
+ln -s %{_datadir}/%{name}/%{version}/bin/{elixir,elixirc,iex} %{buildroot}/%{_bindir}/
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE LEGAL
+%{_bindir}/elixir
+%{_bindir}/elixirc
+%{_bindir}/iex
+%{_datadir}/%{name}
+
+
+%changelog
+* Sat May 26 2012 Ricky Elrod <codeblock at fedoraproject.org> - 0.5.0-1.20120526git6052352
+- Initial build.
diff --git a/sources b/sources
index e69de29..0aea895 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a5de19d99387c9fff44e8a56fb3a58d5 elixir-lang-elixir-v0.5.0-0-g6052352.tar.gz
More information about the scm-commits
mailing list