summaryrefslogtreecommitdiff
path: root/rpm
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-03-03 18:04:27 +0000
commit5ca884098ccbd9866ee670d2fee2a4a8ef2bd1da (patch)
tree4a930baabef901882446e8e984266131ef053075 /rpm
parent34b5c11859be0af4a784d5fa1f9288c4a1b95114 (diff)
downloadmongo-5ca884098ccbd9866ee670d2fee2a4a8ef2bd1da.tar.gz
SERVER-54057 Don't depend on python2 on RHEL 8 or Fedora >= 30
(cherry picked from commit 27723699479793778e7198f9e88483c72717c08e)
Diffstat (limited to 'rpm')
-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 bf008044a1d..33d6334e0a4 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -18,8 +18,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 d1e1dc6caf7..e94542bb568 100644
--- a/rpm/mongodb-enterprise.spec
+++ b/rpm/mongodb-enterprise.spec
@@ -19,8 +19,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 6cbd5f3fa9c..0b098851636 100644
--- a/rpm/mongodb-org-unstable.spec
+++ b/rpm/mongodb-org-unstable.spec
@@ -17,8 +17,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 f7c9bed6de2..57423d862e8 100644
--- a/rpm/mongodb-org.spec
+++ b/rpm/mongodb-org.spec
@@ -19,8 +19,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.