commit 84e904af4f69a0ce868a749c41e8fd6bf77b81781b5f17d64986781c7af4c10a Author: Matwey Kornilov Date: Fri Jul 5 08:05:02 2013 +0000 Accepting request 182275 from home:matwey Elixir language OBS-URL: https://build.opensuse.org/request/show/182275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/elixir?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..4a8e9f4 --- /dev/null +++ b/_service @@ -0,0 +1,25 @@ + + git + git://github.com/elixir-lang/elixir + @PARENT_TAG@ + v0.9.3 + + + git + git://github.com/elixir-lang/ex_doc + master + + + + elixir-*.tar + bz2 + + + + ex_doc-*.tar + bz2 + + + + + diff --git a/elixir-v0.9.3.tar.bz2 b/elixir-v0.9.3.tar.bz2 new file mode 100644 index 0000000..25798a0 --- /dev/null +++ b/elixir-v0.9.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d762e4c69c62d09813d59861e1d9dc2fb1bd783ec12b6d1cbb0b647765dfa629 +size 629863 diff --git a/elixir.changes b/elixir.changes new file mode 100644 index 0000000..723be9a --- /dev/null +++ b/elixir.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jul 5 07:36:33 UTC 2013 - matwey.kornilov@gmail.com + +- Initial version + diff --git a/elixir.spec b/elixir.spec new file mode 100644 index 0000000..aa26058 --- /dev/null +++ b/elixir.spec @@ -0,0 +1,92 @@ +# +# spec file for package +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +Name: elixir +Version: 0.9.3 +Release: 1 +License: Apache-2.0 and ErlPL-1.1 +Summary: Functional meta-programming aware language built on top of the Erlang +Url: http://elixir-lang.org +Group: Development/Languages/Other +Source0: elixir-v%{version}.tar.bz2 +Source1: ex_doc-master.tar.bz2 +BuildRequires: erlang make gcc +# for unit-tests: +BuildRequires: git +BuildRoot: %{_tmppath}/%{name}-%{version}-build +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 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. + +%package doc +Summary: Documentation for elexir +Group: Documentation/Other +Requires: elexir + +%description doc +Documentation for Elexir language. + +%define elixirdir %{_prefix}/lib/elixir + +%prep +%setup -q -b 1 -n %{name}-v%{version} + +%build +# Make Elixir +make +# Make docs +ln -s ex_doc-master ../ex_doc +PATH=$PATH:$PWD/bin make -C ../ex_doc +make docs + +%install +make install INSTALL_PATH=%{buildroot}%{_prefix} +# Relink +for I in iex elixir elixirc mix +do + ln -sf %{elixirdir}/bin/$I %{buildroot}%{_bindir}/$I +done + +%check +make test + +%files +%defattr(-,root,root) +%dir %{elixirdir} +%dir %{elixirdir}/bin +%dir %{elixirdir}/lib +%{_bindir}/iex +%{_bindir}/elixir +%{_bindir}/elixirc +%{_bindir}/mix +%{elixirdir}/bin/iex +%{elixirdir}/bin/elixirc +%{elixirdir}/bin/mix +%{elixirdir}/bin/elixir +%{elixirdir}/lib/* + +%files doc +%defattr(-,root,root) +%doc CHANGELOG.md README.md LICENSE LEGAL docs + +%changelog + diff --git a/ex_doc-master.tar.bz2 b/ex_doc-master.tar.bz2 new file mode 100644 index 0000000..58368e7 --- /dev/null +++ b/ex_doc-master.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea58fb42b480a2aa434d4cfe97f1e91de686bc2b7c5785fc6c970dd8b3877b69 +size 77064