Skip to content

Apache DataFusion SQL Query Engine

ARROW-10723: [Packaging][deb][RPM] Enable Parquet encription

Sutou Kouhei027841131530
diff --git a/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/rules b/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/rules
index e9f8fde676..4f130f7145 100755
--- a/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/rules
+++ b/dev/tasks/linux-packages/apache-arrow/debian.ubuntu-xenial/rules
@@ -51,6 +51,7 @@ override_dh_auto_configure:
-DARROW_WITH_ZSTD=ON \
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-DCMAKE_UNITY_BUILD=ON \
+ -DPARQUET_REQUIRE_ENCRYPTION=ON \
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3
dh_auto_configure \
diff --git a/dev/tasks/linux-packages/apache-arrow/debian/rules b/dev/tasks/linux-packages/apache-arrow/debian/rules
index fc20c96547..4a3ae3ff36 100755
--- a/dev/tasks/linux-packages/apache-arrow/debian/rules
+++ b/dev/tasks/linux-packages/apache-arrow/debian/rules
@@ -48,6 +48,7 @@ override_dh_auto_configure:
-DARROW_WITH_ZSTD=ON \
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-DCMAKE_UNITY_BUILD=ON \
+ -DPARQUET_REQUIRE_ENCRYPTION=ON \
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
index 04651bb893..77547427a6 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -99,7 +99,7 @@ BuildRequires: utf8proc-devel
%endif
BuildRequires: zlib-devel
-%if %{use_flight}
+%if %{use_parquet}
BuildRequires: openssl-devel
%endif
@@ -155,6 +155,9 @@ cd cpp/build
-DARROW_WITH_ZSTD=ON \
-DCMAKE_BUILD_TYPE=$cpp_build_type \
-DCMAKE_UNITY_BUILD=ON \
+%if %{use_parquet}
+ -DPARQUET_REQUIRE_ENCRYPTION=ON \
+%endif
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3 \
%if %{use_ninja}
@@ -269,8 +272,8 @@ Requires: brotli-devel
Requires: bzip2-devel
Requires: libzstd-devel
Requires: lz4-devel
-%if %{use_flight}
-BuildRequires: openssl-devel
+%if %{use_parquet}
+Requires: openssl-devel
%endif
%if %{have_rapidjson}
Requires: rapidjson-devel
@@ -468,7 +471,6 @@ Summary: Python integration library for Apache Arrow Flight
License: Apache-2.0
Requires: %{name}-flight-libs = %{version}-%{release}
Requires: %{name}-python-libs = %{version}-%{release}
-Requires: openssl
%description python-flight-libs
This package contains the Python integration library for Apache Arrow Flight.
@@ -552,6 +554,7 @@ Summary: Runtime libraries for Apache Parquet C++
License: Apache-2.0
Requires: boost%{boost_version}-program-options
Requires: %{name}-libs = %{version}-%{release}
+Requires: openssl
%description -n parquet-libs
This package contains the libraries for Apache Parquet C++.
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
index 93436bbbf3..a218b4184f 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
@@ -42,6 +42,7 @@ RUN \
gtk-doc \
libzstd-devel \
lz4-devel \
+ openssl-devel \
pkg-config \
python36 \
python36-devel \