Skip to content

Commit

Permalink
Fixes #15731: packages fail to build on rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Sep 17, 2019
1 parent a962281 commit c709b21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions rudder-server-relay/SPECS/dependencies
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sles-12:pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
sles-15:pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
rhel-7:selinux-policy-devel pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
rhel-8:selinux-policy-devel pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
sles-12:python-devel python-setuptools python-lxml python-requests pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
sles-15:python3-devel python3-pip python3-lxml python3-requests pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
rhel-7:python-devel python-setuptools pythons-libs python-lxml python-requests selinux-policy-devel pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
rhel-8:python3-devel python3-pip python3-lxml python3-requests selinux-policy-devel pkgconfig postgresql-devel openssl-devel zlib-devel xz-devel
rust:yes
12 changes: 8 additions & 4 deletions rudder-server-relay/SPECS/rudder-server-relay.spec
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,21 @@ Requires: pwdutils cron
# This should not be here because relay and webapp configuration is in a single file : /etc/sysconfig/rudder-relay-apache
# We could remove this when we split it or when we remove wsgi from rudder-webapp
%if 0%{?suse_version} && 0%{?suse_version} < 1500
Requires: apache2-mod_wsgi, python-pyOpenSSL
BuildRequires: python
Requires: python, apache2-mod_wsgi, python-pyOpenSSL
%endif
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
Requires: apache2-mod_wsgi-python3
BuildRequires: python3
Requires: python3, apache2-mod_wsgi-python3
%endif


## Python (used by rudder package command)
## Python
%if 0%{?rhel} == 7 || ( 0%{?suse_version} && 0%{?suse_version} < 1500 )
Requires: python, python-lxml, python-requests
BuildRequires: python, python-pip, python-lxml, python-requests
Requires: python, python-setuptools, python-lxml, python-requests
%else
BuildRequires: python3, python3-pip, python3-lxml, python3-requests
Requires: python3, python3-lxml, python3-requests
%endif

Expand Down
2 changes: 1 addition & 1 deletion rudder-server-relay/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: rudder-server-relay
Section: web
Priority: extra
Maintainer: Rudder Team <dev@rudder.io>
Build-Depends: debhelper (>= 9), ca-certificates, curl, pkg-config, libpq-dev, libssl-dev, zlib1g-dev, systemd
Build-Depends: debhelper (>= 9), python3-dev, python3-setuptools, python3-pip, python3-distutils|libpython3.5-stdlib, python3-requests, python3-lxml, ca-certificates, curl, pkg-config, libpq-dev, libssl-dev, zlib1g-dev, systemd
Standards-Version: 3.8.0
Homepage: https://www.rudder.io

Expand Down

0 comments on commit c709b21

Please sign in to comment.