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 <fziglio@redhat.com>
Acked-by: Uri Lublin's avatarUri Lublin <uril@redhat.com>
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/>.*//' *.spec.in`
dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/python36/python3/; s/\bspice-protocol\b//; s/>.*//' *.spec.in`
# set project version
sed -i -E "s/^( +version : )'[0-9\.]+'/\\1'$$(date +'%Y%m%d%H%M.spice.latest')'/" meson.build
......
......@@ -6,7 +6,7 @@ variables:
before_script:
- dnf install -y git xz rpmlint findutils
# get dependencies from spec file
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//' spice-streaming-agent.spec.in`
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/python36/python3/; s/\bspice-protocol\b//; s/>.*//' spice-streaming-agent.spec.in`
- 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
%else
BuildRequires: python3
BuildRequires: python3-six
BuildRequires: python3-pyparsing
%endif
# 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