From 19d413d351baeb5ffbf095436fa930779bfb8ddf Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Thu, 9 Apr 2020 21:37:12 +0300 Subject: [PATCH] Make netcat-openbsd the default netcat Old default netcat was unmaintained and lacked important features, e.g. IPv6 --- libressl.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libressl.spec b/libressl.spec index 422631d..f8f175d 100644 --- a/libressl.spec +++ b/libressl.spec @@ -230,9 +230,18 @@ Conflicts: netcat-gnu Provides: netcat-tls = %{EVRD} Provides: netcat-libressl = %{EVRD} Provides: nc = %{EVRD} -# Provide "netcat" but of a lower version than the real netcat -# to allow other packages to depend from any variant of netcat +# Provide "netcat" to satisfy deps of packages which require _any_ +# implementation of netcat. +# But make this netcat the default one, so, +# while other packages provide "netcat = 1.0", +# provide a higher version here to make this package +# the default candidate to be installed as "netcat". +%if %{mdvver} > 201610 +Provides: netcat = %{EVRD} +%else +# keep old default in rosa2016.1 Provides: netcat = 1.0 +%endif %description -n netcat-openbsd The nc package contains Netcat (the program is actually nc), a simple