From c001230d491f8134c4331c5782d0484f2635aa69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 30 Jan 2019 12:24:01 +0100 Subject: [PATCH] Add a README-STATIC file with information about the static library --- libxcrypt.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libxcrypt.spec b/libxcrypt.spec index 455fc2b..c1c7731 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -290,6 +290,12 @@ should work unmodified with the provided version of the libcrypt.so.1 library in place. EOF %endif +%{__cat} << EOF >> README-STATIC +Applications that use certain legacy APIs supplied by glibc’s +libcrypt (encrypt, encrypt_r, setkey, setkey_r, and fcrypt) +cannot be compiled nor linked against the supplied build of +the object files provided in the static library libcrypt.a. +EOF %{__mkdir_p} %{_vpath_builddir}{,-compat} @@ -341,7 +347,7 @@ popd # Install documentation to shared %%_pkgdocdir. %{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \ - ChangeLog NEWS README THANKS TODO + ChangeLog NEWS README README-STATIC THANKS TODO # Install distribution README file, if existing, to shared %%_pkgdocdir. if [ -f README%{distname} ]; then @@ -432,6 +438,7 @@ done %files static +%doc %{_pkgdocdir}/README-STATIC /%{_lib}/.lib{,x}crypt.a.hmac /%{_lib}/lib{,x}crypt.a @@ -439,6 +446,7 @@ done %changelog * Wed Jan 30 2019 Björn Esser - 4.4.3-4 - Add a README-POSIX file with information about the stub functions +- Add a README-STATIC file with information about the static library * Wed Jan 30 2019 Björn Esser - 4.4.3-3 - Replace unsafe functions in libxcrypt-compat with stubs (#1670735)