53 lines
1.7 KiB
RPMSpec
53 lines
1.7 KiB
RPMSpec
|
#
|
||
|
# spec file for package erlang-ej
|
||
|
#
|
||
|
# 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: erlang-ej
|
||
|
Version: 0.0.2+git.1353738132.c33ab74
|
||
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
||
|
Release: 0
|
||
|
License: Apache-2.0
|
||
|
Summary: Helper module for working with Erlang terms representing JSON
|
||
|
Url: http://github.com/seth/ej/
|
||
|
Group: Development/Libraries/Other
|
||
|
Source: ej-%{version}.tar.gz
|
||
|
Patch01: PATCH001-remove-git-version-check
|
||
|
BuildRequires: erlang-rebar
|
||
|
Requires: erlang
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Helper module for working with Erlang terms representing JSON.
|
||
|
|
||
|
%prep
|
||
|
%setup -n ej-%{version}
|
||
|
%patch01
|
||
|
|
||
|
%build
|
||
|
%rebar compile escriptize
|
||
|
|
||
|
%install
|
||
|
for dir in ebin include ; do
|
||
|
install -d %{buildroot}%{erlang_libdir}/ej-%{mod_ver}/${dir}
|
||
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/ej-%{mod_ver}/${dir}/
|
||
|
done
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{erlang_libdir}/ej-%{mod_ver}
|
||
|
%{erlang_libdir}/ej-%{mod_ver}/ebin
|
||
|
%{erlang_libdir}/ej-%{mod_ver}/include
|