[packages/uchardet] use %{x86_with_sse2} macro
atler
atler at pld-linux.org
Sat Dec 10 21:56:35 CET 2022
commit 6d8a76e5fa25d5e4408bd22184c81b9adf066d28
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Dec 10 21:52:38 2022 +0100
use %{x86_with_sse2} macro
uchardet.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/uchardet.spec b/uchardet.spec
index 7ed0157..e00b683 100644
--- a/uchardet.spec
+++ b/uchardet.spec
@@ -2,7 +2,7 @@
# Conditional build:
%bcond_with sse2 # use SSE2 instructions (without runtime detection)
-%ifarch %{x8664} x32 pentium4
+%ifarch %{x86_with_sse2}
%define with_sse2 1
%endif
Summary: Encoding detector library
@@ -17,6 +17,7 @@ Source0: https://www.freedesktop.org/software/uchardet/releases/%{name}-%{versio
URL: https://www.freedesktop.org/wiki/Software/uchardet/
BuildRequires: cmake >= 2.8.5
BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: rpmbuild(macros) >= 2.007
%if %{with sse2}
Requires: cpuinfo(sse2)
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/uchardet.git/commitdiff/84fc4e012fdcb3a3beae0230f72aa9d8bdc1ece3
More information about the pld-cvs-commit
mailing list