Files
erlang-rebar-obs/macros.erlang-rebar

24 lines
394 B
Plaintext

# Macros for erlang-rebar module building.
#
# Copyright: (c) 2013 Sascha Peilicke <saschpe@gmx.de>
#
# SUSE-style macros:
%__rebar /usr/bin/rebar
%rebar() \
CFLAGS="${CFLAGS:-%optflags}" \
CXXFLAGS="${CXXFLAGS:-%optflags}" \
FFLAGS="${FFLAGS:-%optflags}" %{__rebar} %* \
%{nil}
%rebar_compile() \
%{rebar} compile -v %* \
%{nil}
# Fedora compat:
%__rebar_compile %{rebar_compile}