summaryrefslogtreecommitdiff
path: root/rpm/mongodb-enterprise-unstable.spec
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2021-03-04 20:27:10 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-06 23:58:47 +0000
commitbfcd6b8aa168f787c0244a06546b188ef7499e11 (patch)
tree1d464d50511ed8d89f404496f1478b59bb911f98 /rpm/mongodb-enterprise-unstable.spec
parent51304bb545840ef0b62a6445b1060559ab831ea1 (diff)
downloadmongo-bfcd6b8aa168f787c0244a06546b188ef7499e11.tar.gz
SERVER-54057 Move RPM python dependency to tools-extra package
This requirement should never have been on the server package once the tools were moved to their own package. This change just moves the requirement where it should be. (cherry picked from commit 364c92daaa4666e6428b6e0b805d71a01edf395c) (cherry picked from commit 8224fa0bd9cfac6b7855dabf438bb944846ab08c) (cherry picked from commit ca2d0476ed41c24929d357021e74961d7c1d6ef7)
Diffstat (limited to 'rpm/mongodb-enterprise-unstable.spec')
-rw-r--r--rpm/mongodb-enterprise-unstable.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec
index 3525160013f..83c45af758a 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -23,12 +23,17 @@ BuildRequires: /usr/bin/pathfix.py, python3-devel
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
+%define python_pkg python3
+%else
+%define python_pkg python2
+%endif
+
%if 0%{?suse_version}
%define timezone_pkg timezone
%define python_pkg python
%else
%define timezone_pkg tzdata
-%define python_pkg python2
%endif
%description
@@ -52,7 +57,7 @@ This metapackage will install the mongo shell, import/export tools, other client
%package server
Summary: MongoDB database server (enterprise)
Group: Applications/Databases
-Requires: openssl, net-snmp, cyrus-sasl, cyrus-sasl-plain, cyrus-sasl-gssapi, %{timezone_pkg}, %{python_pkg}
+Requires: openssl, net-snmp, cyrus-sasl, cyrus-sasl-plain, cyrus-sasl-gssapi, %{timezone_pkg}
Conflicts: mongo-10gen, mongo-10gen-enterprise, mongo-10gen-enterprise-server, mongo-10gen-server, mongo-10gen-unstable, mongo-10gen-unstable-enterprise, mongo-10gen-unstable-enterprise-mongos, mongo-10gen-unstable-enterprise-server, mongo-10gen-unstable-enterprise-shell, mongo-10gen-unstable-enterprise-tools, mongo-10gen-unstable-mongos, mongo-10gen-unstable-server, mongo-10gen-unstable-shell, mongo-10gen-unstable-tools, mongo18-10gen, mongo18-10gen-server, mongo20-10gen, mongo20-10gen-server, mongodb, mongodb-server, mongodb-dev, mongodb-clients, mongodb-10gen, mongodb-10gen-enterprise, mongodb-10gen-unstable, mongodb-10gen-unstable-enterprise, mongodb-10gen-unstable-enterprise-mongos, mongodb-10gen-unstable-enterprise-server, mongodb-10gen-unstable-enterprise-shell, mongodb-10gen-unstable-enterprise-tools, mongodb-10gen-unstable-mongos, mongodb-10gen-unstable-server, mongodb-10gen-unstable-shell, mongodb-10gen-unstable-tools, mongodb-enterprise, mongodb-enterprise-mongos, mongodb-enterprise-server, mongodb-enterprise-shell, mongodb-enterprise-tools, mongodb-nightly, mongodb-org, mongodb-org-mongos, mongodb-org-server, mongodb-org-shell, mongodb-org-tools, mongodb-stable, mongodb18-10gen, mongodb20-10gen, mongodb-org-unstable, mongodb-org-unstable-mongos, mongodb-org-unstable-server, mongodb-org-unstable-shell, mongodb-org-unstable-tools
%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 700 || 0%{?fedora} >= 15