Add a README-STATIC file with information about the static library

This commit is contained in:
Björn Esser 2019-01-30 12:24:01 +01:00
parent 52f5ae5ab3
commit c001230d49
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -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 glibcs
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 <besser82@fedoraproject.org> - 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 <besser82@fedoraproject.org> - 4.4.3-3
- Replace unsafe functions in libxcrypt-compat with stubs (#1670735)