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.

36 lines
1.2 KiB

%__meson %{_bindir}/meson
%__sourcedir .
%__builddir %{_target_platform}
%meson \
export CFLAGS="%{optflags}" \
export CXXFLAGS="%{optflags}" \
export FFLAGS="%{optflags} -I%{_fmoddir}" \
export FCFLAGS="%{optflags} -I%{_fmoddir}" \
export LDFLAGS="%{?__global_ldflags}" \
mkdir -p %{__builddir} \
pushd %{__builddir} \
%{__meson} \\\
--buildtype=plain \\\
--prefix=%{_prefix} \\\
--libdir=%{_libdir} \\\
--libexecdir=%{_libexecdir} \\\
--bindir=%{_bindir} \\\
--includedir=%{_includedir} \\\
--datadir=%{_datadir} \\\
--mandir=%{_mandir} \\\
--localedir=%{_datadir}/locale \\\
--sysconfdir=%{_sysconfdir} \\\
--localstatedir=%{_localstatedir} \\\
$OLDPWD/%{__sourcedir} \
popd
%meson_build \
%ninja_build -C %{__builddir}
%meson_install \
%ninja_install -C %{__builddir}
%meson_test \
%ninja_test -C %{__builddir}