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

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


commit de0b27cb7eee4d790ae9bfd4255b39f2adaab471
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jul 12 15:25:01 2014 +0300

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

 erlang-esdl.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/erlang-esdl.spec b/erlang-esdl.spec
index 4e0f857..9564918 100644
--- a/erlang-esdl.spec
+++ b/erlang-esdl.spec
@@ -9,7 +9,7 @@
 
 Name:           erlang-%{realname}
 Version:        1.3.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Erlang OpenGL/SDL API and utilities
 Group:          Development/Libraries
 License:        MIT
@@ -20,6 +20,7 @@ VCS:		scm:git:https://github.com/dgud/esdl.git
 Source0:	https://github.com/dgud/esdl/archive/%{realname}-%{version}/%{realname}-%{realname}-%{version}.tar.gz
 BuildRequires:  SDL-devel
 BuildRequires:	erlang-rebar
+BuildRequires:	erlang-rpm-macros >= 0.1.4
 BuildRequires:	dos2unix
 Requires:	erlang-erts%{?_isa}
 Requires:	erlang-kernel%{?_isa}
@@ -45,7 +46,7 @@ sed -i -e "s,git,\"%{version}\",g" src/sdl.app.src
 
 
 %build
-CFLAGS="%{optflags}" rebar compile -v
+%rebar_compile
 
 
 %install
@@ -67,6 +68,9 @@ install -p -m 0644 src/*.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{ver
 
 
 %changelog
+* Sat Jul 12 2014 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-4
+- 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.3.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list