Accepting request 306390 from home:matwey:branches:devel:languages:erlang

OBS-URL: https://build.opensuse.org/request/show/306390
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/elixir?expand=0&rev=7
This commit is contained in:
Andrei Dziahel 2015-05-15 17:02:04 +00:00 committed by Git OBS Bridge
parent 62eb668834
commit 9c27786f5f
8 changed files with 112 additions and 45 deletions

View File

@ -2,23 +2,12 @@
<service name="tar_scm" mode="disabled"><param name="scm">git</param>
<param name="url">git://github.com/elixir-lang/elixir</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">v0.12.4</param>
<param name="revision">v1.0.4</param>
<param name="changesgenerate">enable</param>
</service>
<service name="tar_scm" mode="disabled"><param name="scm">git</param>
<param name="url">git://github.com/elixir-lang/ex_doc</param>
<param name="versionformat">master</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">elixir-*.tar</param>
<param name="compression">bz2</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">ex_doc-*.tar</param>
<param name="compression">bz2</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://github.com/elixir-lang/elixir</param>
<param name="changesrevision">e02d7bf913f3e5ea8c9e49648e69324ec5c65919</param></service></servicedata>

55
elixir-doc.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package elixir-doc
#
# Copyright (c) 2015 SUSE LINUX 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-doc
Version: 1.0.4
Release: 0
Summary: Documentation for elixir
License: Apache-2.0 and ErlPL-1.1
Group: Documentation/Other
Url: http://elixir-lang.org
Source0: elixir-v%{version}.tar.bz2
BuildRequires: elixir
BuildRequires: elixir-ex_doc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: elixir = %{version}
%description
Documentation for Elexir language.
%prep
%setup -q -n elixir-v%{version}
%build
# Elixir wants UTF-8 locale, force it
export LANG=en_US.UTF-8
ex_doc "Elixir" "%{version}" "lib/elixir/ebin" -m "Kernel" -u "https://github.com/elixir-lang/elixir" -o doc/elixir -p http://elixir-lang.org/docs.html
ex_doc "EEx" "%{version}" "lib/eex/ebin" -m "EEx" -u "https://github.com/elixir-lang/elixir" -o doc/eex -p http://elixir-lang.org/docs.html
ex_doc "Mix" "%{version}" "lib/mix/ebin" -m "Mix" -u "https://github.com/elixir-lang/elixir" -o doc/mix -p http://elixir-lang.org/docs.html
ex_doc "IEx" "%{version}" "lib/iex/ebin" -m "IEx" -u "https://github.com/elixir-lang/elixir" -o doc/iex -p http://elixir-lang.org/docs.html
ex_doc "ExUnit" "%{version}" "lib/ex_unit/ebin" -m "ExUint" -u "https://github.com/elixir-lang/elixir" -o doc/ex_unit -p http://elixir-lang.org/docs.html
ex_doc "Logger" "%{version}" "lib/logger/ebin" -m "Logger" -u "https://github.com/elixir-lang/elixir" -o doc/logger -p http://elixir-lang.org/docs.html
%install
%files
%defattr(-,root,root)
%doc doc
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c47c2aa9e1bc45c7d7e2702317f21efbb0614e39aaa931524dd0fcdc68f7fadf
size 773943

3
elixir-v1.0.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e74627019b62ce83c4073be2d9fda77dbed6e40912ac378393247afbbff298f
size 901728

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Mon May 11 15:57:55 UTC 2015 - matwey.kornilov@gmail.com
- Fix a typo in elixir-doc.spec
-------------------------------------------------------------------
Sat May 9 09:49:10 UTC 2015 - matwey.kornilov@gmail.com
- Drop docs into separate package
-------------------------------------------------------------------
Sat May 09 09:27:59 UTC 2015 - matwey.kornilov@gmail.com
- Update to version v1.0.4:
+ Do not propagate protocol consolidation to children
+ Clean up ExUnit.Assertions docs
+ Avoid missing behaviour warnings when compiling erlang files
+ Add compatibilty with OTP 18 typespec changes
+ Fixes for Erlang 18.0-rc1
+ Update CHANGELOG
+ Fix doc formatting in ExUnit.Formatter
+ Wait until test process is down in ExUnit runner
+ Tag async tests as such
+ Release v1.0.4
-------------------------------------------------------------------
Fri Jun 20 14:31:10 UTC 2014 - matwey.kornilov@gmail.com
- Update to 0.14.1
-------------------------------------------------------------------
Mon Feb 17 22:01:03 UTC 2014 - develop7@develop7.info

View File

@ -1,7 +1,7 @@
#
# spec file for package
# spec file for package elixir
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,22 +15,26 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: elixir
Version: 0.12.4
Release: 1
License: Apache-2.0 and ErlPL-1.1
Version: 1.0.4
Release: 0
Summary: Functional meta-programming aware language built on top of the Erlang
Url: http://elixir-lang.org
License: Apache-2.0 and ErlPL-1.1
Group: Development/Languages/Other
Url: http://elixir-lang.org
Source0: elixir-v%{version}.tar.bz2
Source1: ex_doc-master.tar.bz2
Source2: macros.elixir
BuildRequires: erlang make gcc
BuildRequires: erlang
BuildRequires: gcc
BuildRequires: make
# required by Mix.SCM.Git see also (https://github.com/elixir-lang/elixir/issues/1386)
Requires: git >= 1.7
BuildRequires: erlang >= 17.0
BuildRequires: git >= 1.7
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: erlang
%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.
@ -39,26 +43,16 @@ Elixir also provides first-class support for pattern matching, polymorphism via
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}
%setup -q -n %{name}-v%{version}
%build
# Elixir wants UTF-8 locale, force it
export LANG=en_US.UTF-8
# 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 DESTDIR=%{buildroot} PREFIX=%{_prefix}
@ -70,10 +64,12 @@ done
install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.elixir
%check
export LANG=en_US.UTF-8
make test
%files
%defattr(-,root,root)
%doc CHANGELOG.md README.md LICENSE LEGAL
%dir %{elixirdir}
%dir %{elixirdir}/bin
%dir %{elixirdir}/lib
@ -88,8 +84,4 @@ make test
%{elixirdir}/lib/*
%config %{_sysconfdir}/rpm/macros.elixir
%files doc
%defattr(-,root,root)
%doc CHANGELOG.md README.md LICENSE LEGAL docs
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10e5a7d6b3bfe596679542d7cea9796e341111f77cf79cc77d5d39c5c0c6db46
size 84772