Commit 2ec1ad0f authored by Frediano Ziglio's avatar Frediano Ziglio

build: Fix Python build dependencies for Epel 7

Use python36-xxx package instead of python3-xxx.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <>
Acked-by: Uri Lublin's avatarUri Lublin <>
parent 25b82ac8
Pipeline #124071 passed with stage
in 2 minutes and 37 seconds
......@@ -22,7 +22,7 @@ srpm:
ninja -C build-spice-protocol install
# get other dependencies for project excluding spice-protocol
dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//' *`
dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/python36/python3/; s/\bspice-protocol\b//; s/>.*//' *`
# set project version
sed -i -E "s/^( +version : )'[0-9\.]+'/\\1'$$(date +'%Y%m%d%H%M.spice.latest')'/"
......@@ -6,7 +6,7 @@ variables:
- dnf install -y git xz rpmlint findutils
# get dependencies from spec file
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//'`
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/python36/python3/; s/\bspice-protocol\b//; s/>.*//'`
- git clone ${CI_REPOSITORY_URL/spice-streaming-agent/spice-protocol}
- meson --buildtype=release spice-protocol build-spice-protocol --prefix=/usr --werror
- ninja -C build-spice-protocol install
......@@ -22,9 +22,15 @@ BuildRequires: pixman-devel
BuildRequires: glib2-devel
BuildRequires: opus-devel
BuildRequires: openssl-devel
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python36
BuildRequires: python36-six
BuildRequires: python36-pyparsing
BuildRequires: python3
BuildRequires: python3-six
BuildRequires: python3-pyparsing
# we need /usr/sbin/semanage program which is available on different
# packages depending on distribution
Requires(post): /usr/sbin/semanage
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