[erlang-basho_metrics] Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc

Ville Skyttä scop at fedoraproject.org
Sat Jul 12 11:48:22 UTC 2014


commit f883922c5fbbaf97e6838a32b3c34ea0b952ef2b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Jul 1 23:55:12 2014 +0300

    Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc

 erlang-basho_metrics.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/erlang-basho_metrics.spec b/erlang-basho_metrics.spec
index 47448b7..41b2e59 100644
--- a/erlang-basho_metrics.spec
+++ b/erlang-basho_metrics.spec
@@ -12,7 +12,7 @@
 
 Name:		erlang-%{realname}
 Version:	1.0.0
-Release:	9%{?dist}
+Release:	10%{?dist}
 Summary:	Fast performance metrics for Erlang
 Group:		Development/Languages
 License:	ASL 2.0
@@ -20,6 +20,7 @@ URL:		https://github.com/basho/basho_metrics
 # wget --content-disposition https://github.com/basho/basho_metrics/tarball/1.0.0
 Source0:	%{upstream}-%{realname}-%{version}-%{patchnumber}-g%{git_tag}.tar.gz
 BuildRequires:	erlang-rebar
+BuildRequires:	erlang-rpm-macros >= 0.1.4
 BuildRequires:	boost-devel
 # Error:erlang(erlang:load_nif/2) in R12B and below
 # Error:erlang(erlang:nif_error/1) in R13B and below
@@ -40,7 +41,7 @@ rm -rf c_src/boost
 
 
 %build
-rebar compile -v
+%rebar_compile
 
 
 %install
@@ -51,7 +52,7 @@ install -p -m 0755 priv/%{realname}_nifs.so %{buildroot}%{_libdir}/erlang/lib/%{
 
 
 %check
-rebar eunit -v
+%__rebar eunit -v
 
 
 %files
@@ -65,6 +66,9 @@ rebar eunit -v
 
 
 %changelog
+* Tue Jul  1 2014 Ville Skyttä <ville.skytta at iki.fi> - 1.0.0-10
+- Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list