summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-05-23 14:30:47 +0200
committerThomas Haller <thaller@redhat.com>2018-05-24 11:36:00 +0200
commit2e40fe5ad3afd6ad761ad92603b8b15c18fc7f5b (patch)
treee5a0433c14b449e200e61d183b7e6f398f08b6f0 /contrib
parent689c6d926c19a0baba18b30b64794bc348705f33 (diff)
contrib/rpm: use gnutls crypto library instead of NSS on rhel-8 and fedora-29
https://bugzilla.redhat.com/show_bug.cgi?id=1581693
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fedora/REQUIRED_PACKAGES1
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec13
2 files changed, 14 insertions, 0 deletions
diff --git a/contrib/fedora/REQUIRED_PACKAGES b/contrib/fedora/REQUIRED_PACKAGES
index 27606d194..2efe95ce9 100644
--- a/contrib/fedora/REQUIRED_PACKAGES
+++ b/contrib/fedora/REQUIRED_PACKAGES
@@ -23,6 +23,7 @@ yum install \
dhclient \
gettext-devel \
git \
+ gnutls-devel \
gobject-introspection-devel \
gtk-doc \
intltool \
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 618e6178b..8da0cea5a 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -74,6 +74,11 @@
%else
%bcond_with connectivity_fedora
%endif
+%if 0%{?fedora} > 28 || 0%{?rhel} > 7
+%bcond_without crypto_gnutls
+%else
+%bcond_with crypto_gnutls
+%endif
###############################################################################
@@ -141,7 +146,11 @@ BuildRequires: automake autoconf intltool libtool
%if %{with ppp}
BuildRequires: ppp-devel >= 2.4.5
%endif
+%if %{with crypto_gnutls}
+BuildRequires: gnutls-devel >= 2.12
+%else
BuildRequires: nss-devel >= 3.11.7
+%endif
BuildRequires: dhclient
BuildRequires: readline-devel
BuildRequires: audit-libs-devel
@@ -419,7 +428,11 @@ intltoolize --automake --copy --force
--with-dhcpcd=no \
--with-dhcpcanon=no \
--with-config-dhcp-default=dhclient \
+%if %{with crypto_gnutls}
+ --with-crypto=gnutls \
+%else
--with-crypto=nss \
+%endif
%if %{with sanitizer}
--with-address-sanitizer=exec \
%if 0%{?fedora}