From 77f5fe846d37d076960ae410fd1b847345f01218 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 6 Sep 2017 16:59:59 +0200 Subject: [PATCH 1/2] Ensure openssl libs are installed for SSL support, add missing BuildRequires to halt build before starting if deps missing --- scripts/mongodb_consistent_backup.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/mongodb_consistent_backup.spec b/scripts/mongodb_consistent_backup.spec index e5ee0f34..64b14a0f 100644 --- a/scripts/mongodb_consistent_backup.spec +++ b/scripts/mongodb_consistent_backup.spec @@ -21,13 +21,13 @@ Prefix: /usr # Use CentOS SCL python27 (https://www.softwarecollections.org/en/scls/rhscl/python27/) on CentOS 6 (RHEL6 untested) # On build host: 'yum install python27-python python27-python-devel python27-python-virtualenv gcc' -%{?el6:Requires: python27-python} -%{?el6:BuildRequires: python27-python python27-python-devel python27-python-virtualenv gcc} +%{?el6:Requires: python27-python openssl-libs} +%{?el6:BuildRequires: python27-python python27-python-devel python27-python-virtualenv gcc make libffi-devel openssl-devel} # Use base python/virtualenv, which should be 2.7 on CentOS/RHEL 7 # On build host: 'yum install python python-devel python-virtualenv gcc' -%{?el7:Requires: python >= 2.7} -%{?el7:BuildRequires: python >= 2.7 python-devel >= 2.7 python-virtualenv gcc} +%{?el7:Requires: python >= 2.7 openssl-libs} +%{?el7:BuildRequires: python >= 2.7 python-devel >= 2.7 python-virtualenv gcc make libffi-devel openssl-devel} %description From 31beb9d5beb3046787ad7ad802f99f1a11923b23 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 6 Sep 2017 20:20:34 +0200 Subject: [PATCH 2/2] fix comment --- scripts/mongodb_consistent_backup.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mongodb_consistent_backup.spec b/scripts/mongodb_consistent_backup.spec index 64b14a0f..e9ef0092 100644 --- a/scripts/mongodb_consistent_backup.spec +++ b/scripts/mongodb_consistent_backup.spec @@ -20,12 +20,12 @@ Source3: README.rst Prefix: /usr # Use CentOS SCL python27 (https://www.softwarecollections.org/en/scls/rhscl/python27/) on CentOS 6 (RHEL6 untested) -# On build host: 'yum install python27-python python27-python-devel python27-python-virtualenv gcc' +# On build host: 'yum install python27-python python27-python-devel python27-python-virtualenv gcc make libffi-devel openssl-devel' %{?el6:Requires: python27-python openssl-libs} %{?el6:BuildRequires: python27-python python27-python-devel python27-python-virtualenv gcc make libffi-devel openssl-devel} # Use base python/virtualenv, which should be 2.7 on CentOS/RHEL 7 -# On build host: 'yum install python python-devel python-virtualenv gcc' +# On build host: 'yum install python python-devel python-virtualenv gcc make libffi-devel openssl-devel' %{?el7:Requires: python >= 2.7 openssl-libs} %{?el7:BuildRequires: python >= 2.7 python-devel >= 2.7 python-virtualenv gcc make libffi-devel openssl-devel}