2013-07-05 10:05:02 +02:00
|
|
|
#
|
2015-05-15 19:02:04 +02:00
|
|
|
# spec file for package elixir
|
2013-07-05 10:05:02 +02:00
|
|
|
#
|
2015-05-15 19:02:04 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-05 10:05:02 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-05-15 19:02:04 +02:00
|
|
|
|
2013-07-05 10:05:02 +02:00
|
|
|
Name: elixir
|
2016-09-25 22:40:26 +02:00
|
|
|
Version: 1.3.3
|
2015-05-15 19:02:04 +02:00
|
|
|
Release: 0
|
2013-07-05 10:05:02 +02:00
|
|
|
Summary: Functional meta-programming aware language built on top of the Erlang
|
2015-05-15 19:02:04 +02:00
|
|
|
License: Apache-2.0 and ErlPL-1.1
|
2013-07-05 10:05:02 +02:00
|
|
|
Group: Development/Languages/Other
|
2015-05-15 19:02:04 +02:00
|
|
|
Url: http://elixir-lang.org
|
2016-01-02 18:42:28 +01:00
|
|
|
Source0: https://github.com/elixir-lang/elixir/archive/v%{version}.tar.gz
|
2014-02-17 10:46:00 +01:00
|
|
|
Source2: macros.elixir
|
2015-05-15 19:02:04 +02:00
|
|
|
BuildRequires: erlang
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
2013-07-07 16:21:04 +02:00
|
|
|
# required by Mix.SCM.Git see also (https://github.com/elixir-lang/elixir/issues/1386)
|
|
|
|
Requires: git >= 1.7
|
2016-01-02 18:42:28 +01:00
|
|
|
BuildRequires: erlang >= 18
|
|
|
|
BuildRequires: erlang-dialyzer
|
2013-07-07 16:21:04 +02:00
|
|
|
BuildRequires: git >= 1.7
|
2013-07-05 10:05:02 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2015-05-15 19:02:04 +02:00
|
|
|
Requires: erlang
|
2013-07-05 10:05:02 +02:00
|
|
|
|
|
|
|
%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 leverages 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 you can invoke Erlang code from Elixir (and vice-versa) without any conversion or performance hit. This allows a developer to mix the expressiveness of Elixir with the robustness and performance of Erlang.
|
|
|
|
|
2016-02-24 17:22:30 +01:00
|
|
|
%package src
|
|
|
|
Summary: Elixir programming language sources
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description src
|
|
|
|
Elixir source code.
|
|
|
|
|
2013-07-05 10:05:02 +02:00
|
|
|
%define elixirdir %{_prefix}/lib/elixir
|
|
|
|
|
|
|
|
%prep
|
2016-01-02 18:42:28 +01:00
|
|
|
%setup -q
|
2013-07-05 10:05:02 +02:00
|
|
|
|
|
|
|
%build
|
2015-05-15 19:02:04 +02:00
|
|
|
# Elixir wants UTF-8 locale, force it
|
|
|
|
export LANG=en_US.UTF-8
|
2013-07-05 10:05:02 +02:00
|
|
|
# Make Elixir
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
2013-08-12 09:50:11 +02:00
|
|
|
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
2016-02-24 17:22:30 +01:00
|
|
|
# install -D -m 0644
|
2013-07-05 10:05:02 +02:00
|
|
|
# Relink
|
|
|
|
for I in iex elixir elixirc mix
|
|
|
|
do
|
|
|
|
ln -sf %{elixirdir}/bin/$I %{buildroot}%{_bindir}/$I
|
|
|
|
done
|
2014-02-17 10:46:00 +01:00
|
|
|
install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.elixir
|
2013-07-05 10:05:02 +02:00
|
|
|
|
|
|
|
%check
|
2015-05-15 19:02:04 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2013-07-05 10:05:02 +02:00
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-01-02 18:42:28 +01:00
|
|
|
%doc CHANGELOG.md README.md LICENSE NOTICE
|
2013-07-05 10:05:02 +02:00
|
|
|
%dir %{elixirdir}
|
|
|
|
%dir %{elixirdir}/bin
|
|
|
|
%dir %{elixirdir}/lib
|
|
|
|
%{_bindir}/iex
|
|
|
|
%{_bindir}/elixir
|
|
|
|
%{_bindir}/elixirc
|
|
|
|
%{_bindir}/mix
|
2015-11-20 21:41:18 +01:00
|
|
|
%{_mandir}/man1/iex.1.gz
|
|
|
|
%{_mandir}/man1/elixir.1.gz
|
|
|
|
%{_mandir}/man1/elixirc.1.gz
|
|
|
|
%{_mandir}/man1/mix.1.gz
|
2013-07-05 10:05:02 +02:00
|
|
|
%{elixirdir}/bin/iex
|
|
|
|
%{elixirdir}/bin/elixirc
|
|
|
|
%{elixirdir}/bin/mix
|
|
|
|
%{elixirdir}/bin/elixir
|
|
|
|
%{elixirdir}/lib/*
|
2014-02-17 10:46:00 +01:00
|
|
|
%config %{_sysconfdir}/rpm/macros.elixir
|
2013-07-05 10:05:02 +02:00
|
|
|
|
|
|
|
%changelog
|