The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
%__meson %{_bindir}/meson |
|
%__meson_wrap_mode nodownload |
|
|
|
%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}" \ |
|
%{__meson} \\\ |
|
--buildtype=plain \\\ |
|
--prefix=%{_prefix} \\\ |
|
--libdir=%{_libdir} \\\ |
|
--libexecdir=%{_libexecdir} \\\ |
|
--bindir=%{_bindir} \\\ |
|
--sbindir=%{_sbindir} \\\ |
|
--includedir=%{_includedir} \\\ |
|
--datadir=%{_datadir} \\\ |
|
--mandir=%{_mandir} \\\ |
|
--infodir=%{_infodir} \\\ |
|
--localedir=%{_datadir}/locale \\\ |
|
--sysconfdir=%{_sysconfdir} \\\ |
|
--localstatedir=%{_localstatedir} \\\ |
|
--sharedstatedir=%{_sharedstatedir} \\\ |
|
--wrap-mode=%{__meson_wrap_mode} \\\ |
|
%{_vpath_srcdir} %{_vpath_builddir} \\\ |
|
%{nil} |
|
|
|
%meson_build \ |
|
%ninja_build -C %{_vpath_builddir} |
|
|
|
%meson_install \ |
|
%ninja_install -C %{_vpath_builddir} |
|
|
|
%meson_test \ |
|
%ninja_test -C %{_vpath_builddir} || \ |
|
( rc=$?; \ |
|
echo "-----BEGIN TESTLOG-----"; \ |
|
cat %{_vpath_builddir}/meson-logs/testlog.txt; \ |
|
echo "-----END TESTLOG-----"; \ |
|
exit $rc; )
|
|
|