33%define svc_user st2
44%define stanley_user stanley
55%define packs_group st2packs
6- %define epoch %(_epoch= `echo $ST2PKG_VERSION | grep -q dev || echo 1`; echo "${_epoch:-0}")
76
87%include ../rpmspec/st2pkg_toptags.spec
98
@@ -13,13 +12,15 @@ Epoch: %{epoch}
1312
1413%if 0%{?use_st2python }
1514Requires: st2python, python-devel, openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
15+ %endif
16+
1617%if 0%{?rhel } == 7
1718Requires: python-devel, openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
19+ %endif
20+
1821%if 0%{?rhel } >= 8
1922Requires: python3-devel openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
2023%endif
21- %endif
22- %endif
2324
2425# EL8 requires a few python packages available within 'BUILDROOT' when outside venv
2526# These are in the el8 packagingbuild dockerfile
@@ -29,7 +30,7 @@ Requires: python3-devel openssl-devel, libffi-devel, git, pam, openssh-server, o
2930BuildRequires: python3-devel
3031BuildRequires: python3-setuptools
3132Requires: python3-virtualenv
32- BuildRequires: python3-virtualenv
33+ # BuildRequires: python3-virtualenv
3334%endif # Requires for RHEL 8
3435
3536Summary: StackStorm all components bundle
0 commit comments