[erlang-bear] Initial commit (see rhbz #853686)

Peter Lemenkov peter at fedoraproject.org
Mon Sep 3 17:39:32 UTC 2012


commit 023cc2e9fff1c098361af48ab91b26d477492d81
Author: Fedora Build <lemenkov at gmail.com>
Date:   Mon Sep 3 21:39:22 2012 +0400

    Initial commit (see rhbz #853686)
    
    Signed-off-by: Fedora Build <lemenkov at gmail.com>

 .gitignore       |    1 +
 erlang-bear.spec |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aeb8313 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/boundary-bear-0.1.1-0-gb1882d7.tar.gz
diff --git a/erlang-bear.spec b/erlang-bear.spec
new file mode 100644
index 0000000..05ccee1
--- /dev/null
+++ b/erlang-bear.spec
@@ -0,0 +1,59 @@
+%global realname bear
+%global upstream boundary
+%global debug_package %{nil}
+%global git_tag b1882d7
+%global patchnumber 0
+
+
+Name:		erlang-%{realname}
+Version:	0.1.1
+Release:	1%{?dist}
+Summary:	A set of statistics functions for erlang
+Group:		Development/Languages
+License:	ASL 2.0
+URL:		https://github.com/boundary/bear
+# wget --content-disposition https://github.com/boundary/bear/tarball/0.1.1
+Source0:	%{upstream}-%{realname}-%{version}-%{patchnumber}-g%{git_tag}.tar.gz
+BuildRequires:	erlang-rebar
+# Error:erlang(erlang:max/2) in R12B and below
+# Error:erlang(erlang:min/2) in R12B and below
+Requires:	erlang-erts%{?_isa} >= R13B
+Requires:	erlang-stdlib%{?_isa}
+
+
+%description
+A set of statistics functions for Erlang. Currently bear is focused on use
+inside the Folsom Erlang metrics library but all of these functions are generic
+and useful in other situations.
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-%{git_tag}
+sed -i -e "s,git,\"0.1.1\",g" src/bear.app.src
+
+
+%build
+rebar compile -v
+
+
+%install
+install -D -m 644 ebin/%{realname}.app $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+install -m 644 ebin/%{realname}.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/
+
+
+%check
+# No tests currently
+#rebar eunit -v
+
+
+%files
+%doc LICENSE README.md
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.beam
+
+
+%changelog
+* Sun Sep 02 2012 Peter Lemenkov <lemenkov at gmail.com> - 0.1.1-1
+- Initial build
diff --git a/sources b/sources
index e69de29..545984d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+18b6d80094ea0f2434ce0849c0a0ec3c  boundary-bear-0.1.1-0-gb1882d7.tar.gz


More information about the scm-commits mailing list