Commit 9df0fd25 authored by Frediano Ziglio's avatar Frediano Ziglio

copr: Fix build of initial SRPMS

- add missing package (meson);
- set a dummy username to make git commit work;
- workaround a problem with Meson and recursive modules.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
parent 2727236d
......@@ -2,7 +2,7 @@
# See: https://docs.pagure.org/copr.copr/user_documentation.html#make-srpm
PROTOCOL_GIT_REPO = https://gitlab.freedesktop.org/spice/spice-protocol
BUILD = xz git rpm-build
BUILD = xz git rpm-build meson
srpm:
dnf install -y $(BUILD)
......@@ -18,10 +18,13 @@ srpm:
# set project version
sed -i -E "s/^( +version : )'[0-9\.]+'/\\1'$$(date +'%Y%m%d%H%M.spice.latest')'/" meson.build
git add meson.build
git config --local user.email "dummy@dummy.com"
git config --local user.name "dummy"
git commit -m 'automatic version update'
# create source rpm
rm -rf build && mkdir build
git submodule update --init --recursive
meson . build --prefix=/usr --werror
if ! test -r ../spice-common.git; then DIR=`basename "$$PWD"`; ln -s "$$DIR/.git/modules/spice-common" ../spice-common.git; fi
ninja -C build 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