diff --git a/libressl.spec b/libressl.spec index a7686b8..fc0aabf 100644 --- a/libressl.spec +++ b/libressl.spec @@ -56,7 +56,7 @@ Summary: LibreSSL utils and libs coexisting with OpenSSL Name: libressl Version: %{base_version}.git%{git_date} -Release: 13 +Release: 14 # The code is distributed under ISC license except of original OpenSSL code License: ISC and BSD-like Group: System/Base @@ -195,6 +195,7 @@ pkg-config sets -I%{_libdir} in CFLAGS. %{_includedir} %{_mandir}/*/* %{_omandir}/man3/* +%{_rpmmacrodir}/*libressl* #------------------------------------------------------------------------------------- %package -n ocspcheck @@ -393,6 +394,16 @@ chrpath --delete %{buildroot}/%{_obindir}/{nc,ocspcheck,libressl} rm -fvr %{buildroot}/%{_openssldir}/{certs,cert.pem} 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 _pcf(){ unset oflags nflags