[packages/llvm] use new %_ver_lt macro
atler
atler at pld-linux.org
Tue Sep 29 12:57:58 CEST 2020
commit 9fb373f507aeaf47887d43cae41579f857f5d9d1
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Sep 29 12:56:32 2020 +0200
use new %_ver_lt macro
llvm.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index f0d4ccf..56d1b2d 100644
--- 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/9fb373f507aeaf47887d43cae41579f857f5d9d1
More information about the pld-cvs-commit
mailing list