43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
|
%__meson %{_bindir}/meson
|
||
|
%__meson_wrap_mode nodownload
|
||
|
|
||
|
%meson \
|
||
|
export CFLAGS="${CFLAGS:-%optflags}" \
|
||
|
export CXXFLAGS="${CXXFLAGS:-%optflags}" \
|
||
|
export FFLAGS="${FFLAGS:-%optflags}" \
|
||
|
export FCFLAGS="${FCFLAGS}" \
|
||
|
export LDFLAGS="${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} \\\
|
||
|
. build \\\
|
||
|
%{nil}
|
||
|
|
||
|
%meson_build \
|
||
|
ninja -C build
|
||
|
|
||
|
%meson_install \
|
||
|
export DESTDIR="%{buildroot}" \
|
||
|
ninja install -C build
|
||
|
|
||
|
%meson_test \
|
||
|
ninja test -C build || \
|
||
|
( rc=$?; \
|
||
|
echo "-----BEGIN TESTLOG-----"; \
|
||
|
cat %{_vpath_builddir}/meson-logs/testlog.txt; \
|
||
|
echo "-----END TESTLOG-----"; \
|
||
|
exit $rc; )
|