Name: custom-macros Version: 1.0 Release: 5%{?dist} Summary: clang + ThinLTO + x86-64-v3 and slim-build rpm macro overrides License: MIT BuildArch: noarch Source0: macros.z-clang-opt %description rpm macro overrides for garrus/clang-opt user-space rebuilds: the clang toolchain with ThinLTO and -march=x86-64-v3 linked by lld, plus slim builds (no debuginfo/debugsource subpackages, and no %%check section). Installed both as a macros.d drop-in and as the site-default /etc/rpm/macros, since the latter is what actually wins in the COPR buildroot. %prep %setup -q -c -T cp -p %{SOURCE0} . %install install -d %{buildroot}%{_rpmmacrodir} %{buildroot}%{_sysconfdir}/rpm install -m 0644 macros.z-clang-opt %{buildroot}%{_rpmmacrodir}/macros.z-clang-opt install -m 0644 macros.z-clang-opt %{buildroot}%{_sysconfdir}/rpm/macros %files %{_rpmmacrodir}/macros.z-clang-opt %{_sysconfdir}/rpm/macros %changelog * Sun Oct 12 2026 Lutherus <128003623+lshyrilser1@users.noreply.github.com> - 1.0-5 - Disable %check globally (%_without_check) for rebuild-friendly builds - Neutralize %__debug_install_post / %mingw_debug_install_post so specs that call debug hooks explicitly no longer leave unpackaged debug files