macros.meson: simplify RPM macros by using expand
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
0728484ef7
commit
c1dddce4e7
|
@ -1,11 +1,12 @@
|
||||||
%__meson /usr/bin/meson
|
%__meson /usr/bin/meson
|
||||||
|
|
||||||
%meson \
|
%meson() %{expand:\
|
||||||
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
CFLAGS="%{optflags}" ; \
|
||||||
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
|
CXXFLAGS="%{optflags}" ; \
|
||||||
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
|
FFLAGS="%{optflags} -I%{_fmoddir}" ; \
|
||||||
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
|
FCFLAGS="%{optflags} -I%{_fmoddir}" ; \
|
||||||
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
|
LDFLAGS="%{__global_ldflags}" ; \
|
||||||
%__meson \\\
|
%__meson %{?1} \\\
|
||||||
--prefix=%{_prefix} \\\
|
--prefix=%{_prefix} \\\
|
||||||
--buildtype=plain
|
--buildtype=plain \
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue