diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2021-02-15 20:36:42 -0800 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-03 18:04:27 +0000 |
commit | 5ca884098ccbd9866ee670d2fee2a4a8ef2bd1da (patch) | |
tree | 4a930baabef901882446e8e984266131ef053075 /rpm | |
parent | 34b5c11859be0af4a784d5fa1f9288c4a1b95114 (diff) | |
download | mongo-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.spec | 4 | ||||
-rw-r--r-- | rpm/mongodb-enterprise.spec | 4 | ||||
-rw-r--r-- | rpm/mongodb-org-unstable.spec | 4 | ||||
-rw-r--r-- | rpm/mongodb-org.spec | 4 |
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. |