diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-05-23 14:30:47 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-05-24 11:36:00 +0200 |
| commit | ebd61e1bc15ef94fab28a2fc2de9118d9d8e44aa (patch) | |
| tree | e5a0433c14b449e200e61d183b7e6f398f08b6f0 /contrib | |
| parent | db99b6bba7d97009b2034cf62a421152317e7c6a (diff) | |
| download | NetworkManager-ebd61e1bc15ef94fab28a2fc2de9118d9d8e44aa.tar.gz | |
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_PACKAGES | 1 | ||||
| -rw-r--r-- | contrib/fedora/rpm/NetworkManager.spec | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/contrib/fedora/REQUIRED_PACKAGES b/contrib/fedora/REQUIRED_PACKAGES index 27606d1946..2efe95ce95 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 618e6178b0..8da0cea5a3 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} |
