diff --git a/libxcrypt.spec b/libxcrypt.spec index fad59d4..e064f3e 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -5,6 +5,7 @@ %bcond_with new_api %endif + # Build the compat package? %if !(0%{?fedora} >= 999 || 0%{?rhel} >= 99 || %{without new_api}) %bcond_without compat_pkg @@ -12,6 +13,7 @@ %bcond_with compat_pkg %endif + # Replace obsolete functions with a stub? %if (0%{?fedora} >= 30 || 0%{?rhel} >= 9) && %{with compat_pkg} %bcond_without enosys_stubs @@ -19,9 +21,11 @@ %bcond_with enosys_stubs %endif + # Build the static library? %bcond_without staticlib + # Run memcheck? %ifarch %{valgrind_arches} # Valgrind does not work well on %%{power64} arches. @@ -69,6 +73,8 @@ %global compat_api glibc %endif + +# Do we replace the obsolete API functions with stubs? %if %{with enosys_stubs} %global enosys_stubs yes %else @@ -87,6 +93,7 @@ %endif %endif + # Needed for out-of-tree builds. %global _configure ../"configure"