Ensure ELF binary dependency generation and -debug{info,source} packages

epel9
Robert Scheck 3 years ago
parent 0d876d9f87
commit 4aeb276c65

@ -2,10 +2,6 @@
%global _docdir_fmt %{name} %global _docdir_fmt %{name}
%endif %endif
%if 0%{?fedora} || 0%{?rhel}
%global debug_package %{nil}
%endif
Name: mbedtls Name: mbedtls
Version: 2.28.0 Version: 2.28.0
Release: 1%{?dist} Release: 1%{?dist}
@ -75,6 +71,12 @@ make apidoc
%install %install
%cmake_install %cmake_install
# Library files aren't supposed to be executable, but RPM requires this historically
# for automatic per-file level automatic dependency generation at ELF binaries; see:
# - https://github.com/ARMmbed/mbedtls/commit/280165c9b39091c7c7ffe031430c7cf93ebc4dec
# - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PDD6RNQMII472HXM4XAUUWWZKKBGHPTO/
chmod 755 %{buildroot}%{_libdir}/*.so.*
%check %check
%ctest --output-on-failure --force-new-ctest-process --parallel 1 %ctest --output-on-failure --force-new-ctest-process --parallel 1

Loading…
Cancel
Save