[erlang-riak_pb] Initial build (see rhbz #854458)

Peter Lemenkov peter at fedoraproject.org
Mon Oct 8 18:24:07 UTC 2012


commit 056e84cfc69fdc58451cb04d896016ed1808e543
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Mon Oct 8 22:23:59 2012 +0400

    Initial build (see rhbz #854458)
    
    Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>

 .gitignore          |    1 +
 erlang-riak_pb.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2bbfc17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/basho-riak_pb-1.2.0-0-gb895297.tar.gz
diff --git a/erlang-riak_pb.spec b/erlang-riak_pb.spec
new file mode 100644
index 0000000..4ddd292
--- /dev/null
+++ b/erlang-riak_pb.spec
@@ -0,0 +1,63 @@
+%global realname riak_pb
+%global upstream basho
+%global debug_package %{nil}
+%global git_tag b895297
+%global patchnumber 0
+
+
+Name:		erlang-%{realname}
+Version:	1.2.0
+Release:	1%{?dist}
+Summary:	Riak Protocol Buffers Messages
+Group:		Development/Languages
+License:	ASL 2.0
+URL:		https://github.com/basho/riak_pb
+# wget --content-disposition https://github.com/basho/riak_pb/tarball/1.2.0
+Source0:	%{upstream}-%{realname}-%{version}-%{patchnumber}-g%{git_tag}.tar.gz
+BuildRequires:	erlang-protobuffs >= 0.7.0
+BuildRequires:	erlang-rebar
+# Error:erlang(erlang:atom_to_binary/2) in R12B and below
+Requires:	erlang-erts%{?_isa} >= R13B
+Requires:	erlang-protobuffs%{?_isa} >= 0.7.0
+Requires:	erlang-stdlib%{?_isa}
+
+
+%description
+The message definitions for the Protocol Buffers-based interface to Riak and
+various Erlang-specific utility modules for the message types.
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-a8ad881
+sed -i -e "/{protobuffs/d" rebar.config
+
+
+%build
+rebar compile -v
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/include
+install -m 644 ebin/%{realname}.app $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 ebin/*.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 include/*.hrl $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/include
+
+
+%check
+rebar eunit -v
+
+
+%files
+%doc README.md
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/include
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/include/*.hrl
+
+
+%changelog
+* Wed Sep 05 2012 Peter Lemenkov <lemenkov at gmail.com> - 1.2.0-1
+- Initial build
diff --git a/sources b/sources
index e69de29..2bce445 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9f96f02bb98b97725293193e4d766ef2  basho-riak_pb-1.2.0-0-gb895297.tar.gz


More information about the scm-commits mailing list