Commit 40a04698 authored by Frediano Ziglio's avatar Frediano Ziglio

ci: Run rpmlint on generated SPEC file

Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Kevin Pouget's avatarKevin Pouget <kpouget@redhat.com>
parent 5a15cd3f
......@@ -4,7 +4,9 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- dnf install -y git make automake autoconf autoconf-archive libtool xz
- >
dnf install -y
git make automake autoconf autoconf-archive libtool xz rpmlint
# get dependencies from spec file
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//' spice-streaming-agent.spec.in`
- git clone ${CI_REPOSITORY_URL/spice-streaming-agent/spice-protocol}
......@@ -22,6 +24,8 @@ build_and_test:
build_meson:
script:
- meson --buildtype=release build-default
# check SPEC file
- rpmlint -o "NetworkEnabled False" build-default/spice-streaming-agent.spec
# this fix an issue with Meson dist
- if ! test -r ../spice-common.git; then DIR=`basename "$PWD"`; ln -s "$DIR/.git/modules/spice-common" ../spice-common.git; fi
- ninja -C build-default dist
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment