mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-30 17:49:00 +00:00
Re-running 'meson setup' with sanitizer flags caused the following error: 'ERROR: Unknown options: "b_lundef, b_sanitize"' This is a workaround for an upstream Meson issue: https://github.com/mesonbuild/meson/issues/13651 Signed-off-by: correctmost <126085-correctmost@users.noreply.gitlab.freedesktop.org> Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
27 lines
939 B
YAML
27 lines
939 B
YAML
image: fedora:latest
|
|
|
|
variables:
|
|
DEPS_COMMON: git gcc redhat-rpm-config
|
|
meson ninja-build gtk-doc glib2-devel
|
|
gettext gettext-devel bzip2 rpmlint rpm-build
|
|
mingw32-filesystem mingw64-filesystem
|
|
mingw32-gcc mingw64-gcc
|
|
|
|
before_script:
|
|
- dnf install -y $DEPS_COMMON
|
|
|
|
fedora:
|
|
script:
|
|
# build project and distribution
|
|
- meson --buildtype=release build-default
|
|
- ninja -C build-default
|
|
- ninja -C build-default dist
|
|
# check SPEC file
|
|
- rpmlint spice-protocol.spec
|
|
# check the SPEC version and project (in meson.build) are the same
|
|
- "VER_SPEC=$(sed '/^Version:/!d; s/.*: \\+//' < spice-protocol.spec)"
|
|
- "VER_PROJECT=$(sed '/version/ { s/.*'\\''\\(.*\\)'\\''.*/\\1/; q }; d' < meson.build)"
|
|
- "test \"x$VER_SPEC\" = \"x$VER_PROJECT\""
|
|
# build RPM from tarball generate
|
|
- rpmbuild -ta build-default/meson-dist/spice-protocol*.tar.xz
|