Files
erlang-erchef/erlang-erchef.spec

58 lines
1.8 KiB
RPMSpec

#
# spec file for package erlang-erchef
#
# 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-erchef
Version: 1.2.6+git.1360122927.77ade20
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Release: 0
License: Apache-2.0
Summary: Erlang based Chef Server top-level OTP release project
Url: https://github.com/opscode/erchef
Group: Development/Libraries/Other
Source: erchef-%{version}.tar.gz
BuildRequires: erlang-rebar
BuildRequires: erlang-eper
BuildRequires: erlang-chef_wm
BuildRequires: erlang-rebar_lock_deps_plugin
Requires: erlang
Requires: erlang-eper
Requires: erlang-chef_wm
Requires: erlang-rebar_lock_deps_plugin
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Erlang based Chef Server top-level OTP release project
%prep
%setup -n erchef-%{version}
%build
%rebar compile
%install
for dir in ebin priv src ; do
install -d %{buildroot}%{erlang_libdir}/erchef-%{mod_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/erchef-%{mod_ver}/${dir}/
done
%files
%defattr(-,root,root)
%dir %{erlang_libdir}/erchef-%{mod_ver}
%changelog