2018-09-28 17:49:38 +02:00
|
|
|
--- a/data/macros.meson
|
|
|
|
+++ b/data/macros.meson
|
|
|
|
@@ -1,9 +1,15 @@
|
2017-01-10 17:34:08 +01:00
|
|
|
%__meson %{_bindir}/meson
|
2017-06-23 14:40:55 +02:00
|
|
|
%__meson_wrap_mode nodownload
|
2018-09-28 17:49:38 +02:00
|
|
|
%__meson_auto_features enabled
|
2017-01-10 17:34:08 +01:00
|
|
|
+%_vpath_srcdir .
|
|
|
|
+%_vpath_builddir build
|
|
|
|
|
|
|
|
%meson \
|
2018-09-28 17:49:38 +02:00
|
|
|
- %set_build_flags \
|
2017-06-23 14:40:55 +02:00
|
|
|
+ export LANG=C.UTF-8 \
|
|
|
|
+ export CFLAGS="${CFLAGS:-%optflags}" \
|
2017-01-10 17:34:08 +01:00
|
|
|
+ export CXXFLAGS="${CXXFLAGS:-%optflags}" \
|
2017-06-23 14:40:55 +02:00
|
|
|
+ export FFLAGS="${FFLAGS:-%optflags}" \
|
|
|
|
+ export FCFLAGS="${FCFLAGS:-%optflags}" \
|
2018-09-28 17:49:38 +02:00
|
|
|
%{shrink:%{__meson} \
|
|
|
|
--buildtype=plain \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
@@ -25,12 +31,15 @@
|
|
|
|
%{nil}}
|
2017-06-23 16:57:12 +02:00
|
|
|
|
|
|
|
%meson_build \
|
|
|
|
+ export LANG=C.UTF-8 \
|
|
|
|
%ninja_build -C %{_vpath_builddir}
|
|
|
|
|
|
|
|
%meson_install \
|
|
|
|
+ export LANG=C.UTF-8 \
|
|
|
|
%ninja_install -C %{_vpath_builddir}
|
|
|
|
|
|
|
|
%meson_test \
|
|
|
|
+ export LANG=C.UTF-8 \
|
2018-02-06 10:16:50 +01:00
|
|
|
%ninja_test -C %{_vpath_builddir} || \
|
2018-03-06 21:13:47 +01:00
|
|
|
( rc=$?; \
|
2018-02-06 10:16:50 +01:00
|
|
|
echo "-----BEGIN TESTLOG-----"; \
|