OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-rebar_elixir_plugin?expand=0&rev=1
53 lines
1.7 KiB
RPMSpec
53 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package erlang-rebar_elixir_plugin
|
|
#
|
|
# Copyright (c) 2015 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: erlang-rebar_elixir_plugin
|
|
Version: 0.0.0+git1429562209.7058379
|
|
Release: 0
|
|
%define app_name rebar_elixir_plugin
|
|
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
|
|
License: MIT
|
|
Summary: Rebar plugin to compile Elixir files
|
|
Url: https://github.com/yrashk/rebar_elixir_plugin
|
|
Group: Development/Libraries/Other
|
|
Source: %{app_name}-%{version}.tar.bz2
|
|
Requires: erlang
|
|
BuildRequires: erlang
|
|
BuildRequires: erlang-rebar
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This plugin allows you to compile Elixir files in your Erlang projects using Rebar.
|
|
|
|
%prep
|
|
%setup -q -n %{app_name}-%{version}
|
|
|
|
%build
|
|
mkdir ebin
|
|
%{_bindir}/erlc -o ebin src/*erl
|
|
|
|
%install
|
|
for dir in ebin ; do
|
|
mkdir -p %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}/
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md
|
|
%{erlang_libdir}/%{app_name}-%{app_ver}/
|