diff --git a/libxcrypt.spec b/libxcrypt.spec index 2aa9a7b..3a1b4a4 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -158,7 +158,7 @@ fi \ Name: libxcrypt Version: 4.4.26 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others # For explicit license breakdown, see the @@ -211,8 +211,10 @@ Provides: %{name}-common = %{version}-%{release} Obsoletes: %{name}-compat < %{version}-%{release} %endif +%if !(0%{?fedora} > 35 || 0%{?rhel} > 10) # We need a version of glibc, that doesn't build libcrypt anymore. Requires: glibc%{?_isa} >= %{glibc_minver} +%endif %if 0%{?fedora} >= 30 Recommends: mkpasswd @@ -248,7 +250,11 @@ Summary: Compatibility library providing legacy API functions BuildRequires: libxcrypt-compat Requires: %{name}%{?_isa} = %{version}-%{release} + +%if !(0%{?fedora} > 35 || 0%{?rhel} > 10) +# We need a version of glibc, that doesn't build libcrypt anymore. Requires: glibc%{?_isa} >= %{glibc_minver} +%endif %description compat This package contains the library providing the compatibility API @@ -545,6 +551,9 @@ done %changelog +* Tue Sep 21 2021 Björn Esser - 4.4.26-3 +- Limit explicit versioned Requires on glibc to older distro releases + * Sat Sep 18 2021 Björn Esser - 4.4.26-2 - Build from signed and verified distribution tarball