Files
erlang-chef_db/erlang-chef_db.spec

73 lines
2.3 KiB
RPMSpec

#
# spec file for package erlang-chef_db
#
# 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-chef_db
Version: 0.0.0+git.1365209085.6ef8409
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Release: 0
License: Apache-2.0
Summary: Database layer for Chef
Url: http://github.com/opscode/chef_db/
Group: Development/Libraries/Other
Source: chef_db-%{version}.tar.gz
Patch01: PATCH001-remove-dependencies-from-rebar.config-file.patch
Patch02: PATCH02-remove-version-check-with-git.patch
BuildRequires: erlang-rebar
Requires: erlang
BuildRequires: erlang-chef_objects
Requires: erlang-chef_objects
BuildRequires: erlang-couchbeam
Requires: erlang-couchbeam
BuildRequires: erlang-meck
Requires: erlang-meck
BuildRequires: erlang-sqerl
Requires: erlang-sqerl
BuildRequires: erlang-stats_hero
Requires: erlang-stats_hero
BuildRequires: erlang-ej
Requires: erlang-ej
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the database layer for chef.
Chef is a system integration framework written in erlang and ruby and
designed to bring the benefits of configuration management to your entire
infrastructure.
%prep
%setup -n chef_db-%{version}
%patch01
%patch02
%build
%rebar compile escriptize
%install
for dir in ebin include priv; do
install -d %{buildroot}%{erlang_libdir}/chef_db-%{mod_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/chef_db-%{mod_ver}/${dir}/
done
%files
%defattr(-,root,root)
%dir %{erlang_libdir}/chef_db-%{mod_ver}
%{erlang_libdir}/chef_db-%{mod_ver}/ebin
%{erlang_libdir}/chef_db-%{mod_ver}/include
%{erlang_libdir}/chef_db-%{mod_ver}/priv