summaryrefslogtreecommitdiff
path: root/rpm/mongodb-org.spec
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2021-02-15 20:36:42 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-16 20:02:27 +0000
commit27723699479793778e7198f9e88483c72717c08e (patch)
tree458ccf681de8c967229d43670f413af1e1faddfa /rpm/mongodb-org.spec
parent7425114969ccf84bfea3bea5be52129f93b34eb3 (diff)
downloadmongo-27723699479793778e7198f9e88483c72717c08e.tar.gz
SERVER-54057 Don't depend on python2 on RHEL 8 or Fedora >= 30
Diffstat (limited to 'rpm/mongodb-org.spec')
-rw-r--r--rpm/mongodb-org.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpm/mongodb-org.spec b/rpm/mongodb-org.spec
index 59c3314e490..f5947448f1a 100644
--- a/rpm/mongodb-org.spec
+++ b/rpm/mongodb-org.spec
@@ -29,8 +29,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%define python_pkg python
%else
%define timezone_pkg tzdata
+%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
+%define python_pkg python3
+%else
%define python_pkg python2
%endif
+%endif
%description
MongoDB is built for scalability, performance and high availability, scaling from single server deployments to large, complex multi-site architectures. By leveraging in-memory computing, MongoDB provides high performance for both reads and writes. MongoDB’s native replication and automated failover enable enterprise-grade reliability and operational flexibility.