meson: Update to 0.50.1

* Also add macro file for pakfire.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Stefan Schantl 2019-06-21 13:31:23 +02:00 committed by Michael Tremer
parent 840393ec99
commit e1187e5093
2 changed files with 49 additions and 1 deletions

42
meson/meson.macro Normal file
View File

@ -0,0 +1,42 @@
#
# Meson macros
#
__meson = %{bindir}/meson
__meson_wrap_mode = nodownload
__meson_auto_features = enabled
_smp_mesonflags = %{PARALLELISMFLAGS}
meson = \
%{__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} \
--auto-features=%{__meson_auto_features} \
. %{DISTRO_MACHINE}
meson_build = \
%{ninja_build} -C %{DISTRO_MACHINE}
meson_install = \
%{ninja_install} -C %{DISTRO_MACHINE}
meson_test = \
%{__meson} test \
-C %{DISTRO_MACHINE} \
%{PARALLELISMFLAGS} \
--print-errorlogs

View File

@ -4,7 +4,7 @@
###############################################################################
name = meson
version = 0.48.1
version = 0.50.1
release = 1
arch = noarch
@ -40,12 +40,18 @@ build
install
%{python3} setup.py install -O1 --skip-build --root %{BUILDROOT}
# Install pakfire macro.
mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
install -v -m 644 %{DIR_SOURCE}/%{name}.macro \
%{BUILDROOT}/usr/lib/pakfire/macros
end
end
packages
package %{name}
requires
ninja-build >= 1.9.0
python3-setuptools
end
end