59 lines
2.0 KiB
RPMSpec
59 lines
2.0 KiB
RPMSpec
|
#
|
||
|
# spec file for package erlang-chef_certgen
|
||
|
#
|
||
|
# 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_certgen
|
||
|
Version: 0.0.0+git.1363024704.d7c99d2
|
||
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
||
|
Release: 0
|
||
|
License: Apache-2.0
|
||
|
Summary: Chef Certificate Generator
|
||
|
Url: http://github.com/opscode/chef_certgen/
|
||
|
Group: Development/Libraries/Other
|
||
|
Source: chef_certgen-%{version}.tar.gz
|
||
|
BuildRequires: erlang-rebar
|
||
|
Requires: erlang
|
||
|
BuildRequires: openssl-devel
|
||
|
Requires: openssl-devel
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Chef Certificate Generator (chef_certgen)
|
||
|
Chef Certificate Generator is an Erlang NIF that exposes some of the OpenSSL
|
||
|
functionality missing from the builtin Erlang crypto application.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -n chef_certgen-%{version}
|
||
|
|
||
|
%build
|
||
|
#%rebar compile escriptize
|
||
|
rebar compile
|
||
|
|
||
|
%install
|
||
|
for dir in ebin include priv ; do
|
||
|
install -d %{buildroot}%{erlang_libdir}/chef_certgen-%{mod_ver}/${dir}
|
||
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/chef_certgen-%{mod_ver}/${dir}/
|
||
|
done
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{erlang_libdir}/chef_certgen-%{mod_ver}
|
||
|
%{erlang_libdir}/chef_certgen-%{mod_ver}/ebin
|
||
|
%{erlang_libdir}/chef_certgen-%{mod_ver}/include
|
||
|
%{erlang_libdir}/chef_certgen-%{mod_ver}/priv
|