]> git.pld-linux.org Git - packages/llvm.git/commitdiff
use new %_ver_lt macro
authorJan Palus <atler@pld-linux.org>
Tue, 29 Sep 2020 10:56:32 +0000 (12:56 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 29 Sep 2020 10:56:32 +0000 (12:56 +0200)
llvm.spec

index f0d4ccfb22bf2d393d35a57fd1c4ef86f3b48998..56d1b2d18933aee14a8cd13511c60660897eab8f 100644 (file)
--- a/llvm.spec
+++ b/llvm.spec
@@ -64,7 +64,7 @@ BuildRequires:        cmake >= 3.4.3
 BuildRequires: flex
 BuildRequires: gcc >= 5:3.4
 # gcc4 might be installed, but not current __cc
-%if %(rpmvercmp %{cc_version} 3.4 > /dev/null; test $? = 2 && echo 1 || echo 0)
+%if %{_ver_lt "%{cc_version}" "3.4"}
 BuildRequires: __cc >= 3.4
 %endif
 BuildRequires: groff
@@ -87,7 +87,7 @@ BuildRequires:        python >= 1:2.7
 BuildRequires: python-PyYAML
 BuildRequires: python-pygments >= 2.0
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.734
+BuildRequires: rpmbuild(macros) >= 1.750
 %{?with_doc:BuildRequires:     sphinx-pdg}
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
This page took 0.145925 seconds and 4 git commands to generate.