2018-04-27 09:22:12 +02:00
|
|
|
Index: meson-0.45.0/data/macros.meson
|
|
|
|
===================================================================
|
|
|
|
--- meson-0.45.0.orig/data/macros.meson
|
|
|
|
+++ meson-0.45.0/data/macros.meson
|
|
|
|
@@ -1,12 +1,14 @@
|
2017-01-10 17:34:08 +01:00
|
|
|
%__meson %{_bindir}/meson
|
2017-06-23 14:40:55 +02:00
|
|
|
%__meson_wrap_mode nodownload
|
2017-01-10 17:34:08 +01:00
|
|
|
+%_vpath_srcdir .
|
|
|
|
+%_vpath_builddir build
|
|
|
|
|
|
|
|
%meson \
|
|
|
|
- export CFLAGS="${CFLAGS:-%__global_cflags}" \
|
|
|
|
- export CXXFLAGS="${CXXFLAGS:-%__global_cxxflags}" \
|
|
|
|
- export FFLAGS="${FFLAGS:-%__global_fflags}" \
|
|
|
|
- export FCFLAGS="${FCFLAGS:-%__global_fcflags}" \
|
|
|
|
- export LDFLAGS="${LDFLAGS:-%__global_ldflags}" \
|
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}" \
|
2017-01-10 17:34:08 +01:00
|
|
|
%{__meson} \\\
|
|
|
|
--buildtype=plain \\\
|
|
|
|
--prefix=%{_prefix} \\\
|
2018-04-27 09:22:12 +02:00
|
|
|
@@ -27,12 +29,15 @@
|
2017-06-23 16:57:12 +02:00
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%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-----"; \
|