[erlang-snappy] Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely

Ville Skyttä scop at fedoraproject.org
Sat Jul 12 12:33:24 UTC 2014


commit a6615e4a8255d987ba1273cd449623a4afe63b4a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jul 12 15:33:41 2014 +0300

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

 erlang-snappy.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/erlang-snappy.spec b/erlang-snappy.spec
index 777be27..a358215 100644
--- a/erlang-snappy.spec
+++ b/erlang-snappy.spec
@@ -11,7 +11,7 @@
 
 Name:		erlang-%{realname}
 Version:	1.0.3
-Release:	0.6.git80db168%{?dist}
+Release:	0.7.git80db168%{?dist}
 Summary:	An Erlang NIF wrapper for Google's snappy library
 Group:		Development/Languages
 License:	ASL 2.0
@@ -21,6 +21,7 @@ Source0:	%{upstream}-%{realname}-erlang-nif-%{git_tag}.tar.gz
 Patch1:		erlang-snappy-0001-No-bundled-snappy.patch
 Patch2:		erlang-snappy-0002-Remove-artificial-dependency-on-the-Erlang-s-version.patch
 BuildRequires:	erlang-rebar
+BuildRequires:	erlang-rpm-macros >= 0.1.4
 BuildRequires:	snappy-devel
 # Error:erlang(erlang:load_nif/2) in R12B or earlier
 Requires:	erlang-erts%{?_isa} >= R13B
@@ -41,7 +42,7 @@ rm -rf c_src/snappy
 
 
 %build
-rebar compile -v
+%rebar_compile
 
 
 %install
@@ -52,7 +53,7 @@ install -p -m 0755 priv/%{realname}_nif.so %{buildroot}%{_libdir}/erlang/lib/%{r
 
 
 %check
-rebar eunit -v
+%__rebar eunit -v
 
 
 %files
@@ -66,6 +67,9 @@ rebar eunit -v
 
 
 %changelog
+* Sat Jul 12 2014 Ville Skyttä <ville.skytta at iki.fi> - 1.0.3-0.7.git80db168
+- Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.3-0.6.git80db168
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list