summaryrefslogtreecommitdiff
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
parent7425114969ccf84bfea3bea5be52129f93b34eb3 (diff)
downloadmongo-27723699479793778e7198f9e88483c72717c08e.tar.gz
SERVER-54057 Don't depend on python2 on RHEL 8 or Fedora >= 30
-rw-r--r--rpm/mongodb-enterprise-unstable.spec4
-rw-r--r--rpm/mongodb-enterprise.spec4
-rw-r--r--rpm/mongodb-org-unstable.spec4
-rw-r--r--rpm/mongodb-org.spec4
4 files changed, 16 insertions, 0 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec
index 24d61017a03..5e45fb21a7e 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -28,8 +28,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.
diff --git a/rpm/mongodb-enterprise.spec b/rpm/mongodb-enterprise.spec
index 4dfb9df90ec..3e9246a738b 100644
--- a/rpm/mongodb-enterprise.spec
+++ b/rpm/mongodb-enterprise.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.
diff --git a/rpm/mongodb-org-unstable.spec b/rpm/mongodb-org-unstable.spec
index 1c9ca458b8c..da7306fe20e 100644
--- a/rpm/mongodb-org-unstable.spec
+++ b/rpm/mongodb-org-unstable.spec
@@ -27,8 +27,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.
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.