2020-07-26 18:11:36 +02:00
|
|
|
--- a/data/macros.meson
|
|
|
|
+++ b/data/macros.meson
|
2020-07-15 14:23:12 +02:00
|
|
|
@@ -1,9 +1,15 @@
|
2019-03-11 14:12:59 +01:00
|
|
|
%__meson %{_bindir}/meson
|
|
|
|
%__meson_wrap_mode nodownload
|
2018-09-28 17:49:38 +02:00
|
|
|
%__meson_auto_features enabled
|
2019-03-11 14:12:59 +01:00
|
|
|
+%_vpath_srcdir .
|
|
|
|
+%_vpath_builddir build
|
2020-07-26 18:11:36 +02:00
|
|
|
|
2017-01-10 17:34:08 +01:00
|
|
|
%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} \
|
2020-07-26 18:11:36 +02:00
|
|
|
@@ -25,21 +31,24 @@
|
2020-07-15 14:23:12 +02:00
|
|
|
%{nil}}
|
2020-07-26 18:11:36 +02:00
|
|
|
|
2017-06-23 16:57:12 +02:00
|
|
|
%meson_build \
|
2020-07-15 14:23:12 +02:00
|
|
|
+ export LANG=C.UTF-8 \
|
|
|
|
%{shrink:%{__meson} compile \
|
|
|
|
-C %{_vpath_builddir} \
|
2020-07-26 18:11:36 +02:00
|
|
|
- -j %{_smp_build_ncpus} \
|
|
|
|
+ %{?_smp_mflags} \
|
|
|
|
--verbose \
|
2020-07-15 14:23:12 +02:00
|
|
|
%{nil}}
|
2020-07-26 18:11:36 +02:00
|
|
|
|
2017-06-23 16:57:12 +02:00
|
|
|
%meson_install \
|
|
|
|
+ export LANG=C.UTF-8 \
|
2020-07-15 14:23:12 +02:00
|
|
|
%{shrink:DESTDIR=%{buildroot} %{__meson} install \
|
|
|
|
-C %{_vpath_builddir} \
|
|
|
|
--no-rebuild \
|
|
|
|
%{nil}}
|
2020-07-26 18:11:36 +02:00
|
|
|
|
2017-06-23 16:57:12 +02:00
|
|
|
%meson_test \
|
|
|
|
+ export LANG=C.UTF-8 \
|
2020-07-15 14:23:12 +02:00
|
|
|
%{shrink:%{__meson} test \
|
2019-07-03 09:24:00 +02:00
|
|
|
-C %{_vpath_builddir} \
|
2020-07-26 18:11:36 +02:00
|
|
|
- --num-processes %{_smp_build_ncpus} \
|
|
|
|
+ %{?jobs:--num-processes %{jobs}} \
|
|
|
|
--print-errorlogs \
|
|
|
|
%{nil}}
|