From 4aeb276c65dcdb01c0da2d54b2012c63d4d0f138 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Jan 30 2022 23:00:25 +0000 Subject: Ensure ELF binary dependency generation and -debug{info,source} packages --- diff --git a/mbedtls.spec b/mbedtls.spec index 725cbd8..01ff4c7 100644 --- a/mbedtls.spec +++ b/mbedtls.spec @@ -2,10 +2,6 @@ %global _docdir_fmt %{name} %endif -%if 0%{?fedora} || 0%{?rhel} -%global debug_package %{nil} -%endif - Name: mbedtls Version: 2.28.0 Release: 1%{?dist} @@ -75,6 +71,12 @@ make apidoc %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 %ctest --output-on-failure --force-new-ctest-process --parallel 1