Add libressl macros

This commit is contained in:
Mikhail Novosyolov 2020-01-25 15:03:09 +03:00
parent e50016a4ce
commit f094e4f91a

View file

@ -56,7 +56,7 @@
Summary: LibreSSL utils and libs coexisting with OpenSSL Summary: LibreSSL utils and libs coexisting with OpenSSL
Name: libressl Name: libressl
Version: %{base_version}.git%{git_date} Version: %{base_version}.git%{git_date}
Release: 13 Release: 14
# The code is distributed under ISC license except of original OpenSSL code # The code is distributed under ISC license except of original OpenSSL code
License: ISC and BSD-like License: ISC and BSD-like
Group: System/Base Group: System/Base
@ -195,6 +195,7 @@ pkg-config sets -I%{_libdir} in CFLAGS.
%{_includedir} %{_includedir}
%{_mandir}/*/* %{_mandir}/*/*
%{_omandir}/man3/* %{_omandir}/man3/*
%{_rpmmacrodir}/*libressl*
#------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------
%package -n ocspcheck %package -n ocspcheck
@ -393,6 +394,16 @@ chrpath --delete %{buildroot}/%{_obindir}/{nc,ocspcheck,libressl}
rm -fvr %{buildroot}/%{_openssldir}/{certs,cert.pem} rm -fvr %{buildroot}/%{_openssldir}/{certs,cert.pem}
mv -v %{buildroot}/%{_openssldir}/openssl.cnf %{buildroot}/%{_openssldir}/libressl.cnf mv -v %{buildroot}/%{_openssldir}/openssl.cnf %{buildroot}/%{_openssldir}/libressl.cnf
# Having sovers as macros may be useful to check that binaries are linked against LibreSSL
cat << EOF > macros.file
%%libressl_version %{base_version}
%%libressl_libcrypto_sover %{libcrypto_sover}
%%libressl_libssl_sover %{libssl_sover}
%%libressl_libtls_sover %{libtls_sover}
%%libressl_prefix /opt/libressl
EOF
%install_macro libressl macros.file
%check %check
_pcf(){ _pcf(){
unset oflags nflags unset oflags nflags