From 298958146f716479973c92f01d59bf05f88e3749 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Tue, 23 Feb 2021 17:18:25 +0100 Subject: [PATCH] Backport compat package updates --- llvm.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/llvm.spec b/llvm.spec index 22d7c77..62d4baa 100644 --- a/llvm.spec +++ b/llvm.spec @@ -18,8 +18,8 @@ %global patch_ver 0 %if %{with compat_build} -%global pkg_name llvm%{maj_ver}.%{min_ver} -%global exec_suffix -%{maj_ver}.%{min_ver} +%global pkg_name llvm%{maj_ver} +%global exec_suffix -%{maj_ver} %global install_prefix %{_libdir}/%{name} %global install_bindir %{install_prefix}/bin %global install_includedir %{install_prefix}/include @@ -110,8 +110,10 @@ Requires: libedit-devel # separate files, so that llvm-devel would not need to Require these packages, # but this caused bugs (rhbz#1773678) and forced us to carry two non-upstream # patches. -Requires: llvm-static%{?_isa} = %{version}-%{release} -Requires: llvm-test%{?_isa} = %{version}-%{release} +Requires: %{name}-static%{?_isa} = %{version}-%{release} +%if %{without compat_build} +Requires: %{name}-test%{?_isa} = %{version}-%{release} +%endif Requires(post): %{_sbindir}/alternatives