[packages/liborc] - updated to 2.2.0 (expects orc-format 1.1.0); cpuinfo dependencies for avx512 bcond

qboosh qboosh at pld-linux.org
Thu Sep 4 19:02:55 CEST 2025


commit d7c4e22733889da3f1fcfe98e09bc6d10aff3a8f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 4 19:05:42 2025 +0200

    - updated to 2.2.0 (expects orc-format 1.1.0); cpuinfo dependencies for avx512 bcond

 liborc.spec | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/liborc.spec b/liborc.spec
index b624fd1..814b68e 100644
--- a/liborc.spec
+++ b/liborc.spec
@@ -1,21 +1,24 @@
 # TODO:
 # - java (requires maven)
 # - libhdfspp?
+# - sparsehash?
 #
 # Conditional build:
 %bcond_with	java		# Java library
-%bcond_with	avx512		# AVX512 x86 instructions
+%bcond_with	avx512		# AVX512 x86 instructions (FIXME: adds also march=native)
 
+# see cmake_modules/ThirdpartyToolchain.cmake /ORC_FORMAT_VERSION, sha256 is specified later
+%define	orc_format_ver	1.1.0
 Summary:	Apache ORC - small, fast columnar storage for Hadoop workloads
 Summary(pl.UTF-8):	Apache ORC - małym, szybki kolumnowy format przechowywania danych dla zadań Hadoopa
 Name:		liborc
-Version:	2.1.3
+Version:	2.2.0
 Release:	1
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://downloads.apache.org/orc/orc-%{version}/orc-%{version}.tar.gz
-# Source0-md5:	9f49814d56198551d223156b8498b537
-Source1:	https://downloads.apache.org/orc/orc-format-1.1.0/orc-format-1.1.0.tar.gz
+# Source0-md5:	fe4e8724b8fc092dd09d32a05b66ddd2
+Source1:	https://downloads.apache.org/orc/orc-format-%{orc_format_ver}/orc-format-%{orc_format_ver}.tar.gz
 # Source1-md5:	45ddc8bbdacc0f2b8b1bd570b8a692c2
 Patch0:		%{name}-shared.patch
 URL:		https://orc.apache.org/
@@ -27,6 +30,13 @@ BuildRequires:	snappy-devel
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRequires:	zlib-devel
 BuildRequires:	zstd-devel
+%if %{with avx512}
+Requires:	cpuinfo(avx512bw)
+Requires:	cpuinfo(avx512cd)
+Requires:	cpuinfo(avx512dq)
+Requires:	cpuinfo(avx512f)
+Requires:	cpuinfo(avx512vl)
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liborc.git/commitdiff/d7c4e22733889da3f1fcfe98e09bc6d10aff3a8f



More information about the pld-cvs-commit mailing list