diff --git a/.libarrow.metadata b/.libarrow.metadata index 9997cf2..cef77d8 100644 --- a/.libarrow.metadata +++ b/.libarrow.metadata @@ -1 +1 @@ -f131330dd28fab9313a42ee1f3db766577726600 SOURCES/apache-arrow-5.0.0.tar.gz +6b31b156f6e97e0382bfa8afb10b1e4916a6decf SOURCES/apache-arrow-7.0.0.tar.gz diff --git a/SPECS/libarrow.spec b/SPECS/libarrow.spec index e194dc2..04ce406 100644 --- a/SPECS/libarrow.spec +++ b/SPECS/libarrow.spec @@ -17,22 +17,21 @@ # specific language governing permissions and limitations # under the License. -%global use_flight 1 -%global use_gandiva 0 -%global use_mimalloc 0 -%global use_ninja 1 +%bcond_without use_flight +%bcond_with use_gandiva +%bcond_with use_mimalloc +%bcond_without use_ninja # TODO: Enable this. This works on local but is fragile on GitHub Actions and # Travis CI. -%global use_s3 0 -%global have_rapidjson 1 -%global have_re2 1 -%global have_utf8proc 1 +%bcond_with use_s3 +%bcond_without have_rapidjson +%bcond_without have_re2 +%bcond_without have_utf8proc Name: libarrow -Version: 5.0.0 +Version: 7.0.0 Release: 1%{?dist} -Summary: Apache Arrow is a data processing library for analysis - +Summary: A toolbox for accelerated data interchange and in-memory processing License: ASL 2.0 URL: https://arrow.apache.org/ Source0: https://dist.apache.org/repos/dist/release/arrow/arrow-%{version}/apache-arrow-%{version}.tar.gz @@ -41,24 +40,23 @@ Patch0001: 0001-cpp-CMakeLists.txt.patch # a 64-bit build and runtime environment. This is only consumer of the liborc # package, and in turn the only consumer of this and liborc is Ceph, which # is also 64-bit only -ExcludeArch: i686 armv7hl +ExcludeArch: %{ix86} %{arm} BuildRequires: bison BuildRequires: boost-devel BuildRequires: brotli-devel BuildRequires: bzip2-devel BuildRequires: cmake -%if %{use_ninja} +%if %{with use_ninja} BuildRequires: ninja-build %endif BuildRequires: meson -%if %{use_s3} +%if %{with use_s3} BuildRequires: curl-devel %endif BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: gflags-devel BuildRequires: glog-devel -BuildRequires: protobuf-devel BuildRequires: grpc-devel BuildRequires: grpc-plugins BuildRequires: libzstd-devel @@ -71,112 +69,37 @@ BuildRequires: xsimd-devel BuildRequires: abseil-cpp-devel BuildRequires: c-ares-devel BuildRequires: thrift-devel -%if %{have_rapidjson} +%if %{with have_rapidjson} BuildRequires: rapidjson-devel %endif -%if %{have_re2} +%if %{with have_re2} BuildRequires: re2-devel %endif BuildRequires: snappy-devel -%if %{have_utf8proc} +%if %{with have_utf8proc} BuildRequires: utf8proc-devel %endif BuildRequires: zlib-devel BuildRequires: liborc-devel - -%if %{use_gandiva} +%if %{with use_gandiva} BuildRequires: llvm-devel BuildRequires: ncurses-devel %endif - BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc -Requires: boost-system -Requires: boost-filesystem -Requires: brotli - %description -Apache Arrow is a data processing library for analysis. - - -%prep -%setup -q -n apache-arrow-%{version} -%patch0001 -p1 - -%build -mkdir cpp/build -pushd cpp/build -%cmake .. \ -%if %{use_flight} - -DARROW_FLIGHT=ON \ -%endif -%if %{use_gandiva} - -DARROW_GANDIVA=ON \ -%endif -%if %{use_mimalloc} - -DARROW_MIMALLOC=ON \ -%endif - -DARROW_ORC=ON \ - -DARROW_PARQUET=ON \ - -DARROW_PLASMA=ON \ - -DARROW_PYTHON=ON \ - -DARROW_JEMALLOC=OFF \ - -DProtobuf_SOURCE="SYSTEM" \ - -DgRPC_SOURCE="SYSTEM" \ - -Dxsimd_SOURCE="SYSTEM" \ -%if %{use_s3} - -DARROW_S3=ON \ -%endif - -DARROW_WITH_BROTLI=ON \ - -DARROW_WITH_BZ2=ON \ - -DARROW_WITH_LZ4=ON \ - -DARROW_WITH_SNAPPY=ON \ - -DARROW_WITH_ZLIB=ON \ - -DARROW_WITH_ZSTD=ON \ - -DARROW_WITH_XSIMD=ON \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \ - -DARROW_USE_CCACHE=OFF \ - -DCMAKE_UNITY_BUILD=ON \ - -DPARQUET_REQUIRE_ENCRYPTION=ON \ - -DPythonInterp_FIND_VERSION=ON \ - -DPythonInterp_FIND_VERSION_MAJOR=3 \ -%if %{use_ninja} - -GNinja -%endif - -export VERBOSE=1 -export GCC_COLORS= -%cmake_build - -popd -pushd c_glib -meson setup build \ - --default-library=both \ - --libdir=%{_libdir} \ - --prefix=%{_prefix} \ - -Darrow_cpp_build_dir=../cpp/build \ - -Darrow_cpp_build_type=relwithdebinfo \ - -Dgtk_doc=true -cd build && %ninja_build - -%check - -%install -echo install - -pushd c_glib/build -DESTDIR=$RPM_BUILD_ROOT %ninja_install - -popd -pushd cpp/build -%cmake_install - +Apache Arrow defines a language-independent columnar memory +format for flat and hierarchical data, organized for efficient +analytic operations on modern hardware like CPUs and GPUs. The +Arrow memory format also supports zero-copy reads for lightning- +fast data access without serialization overhead %files %{_libdir}/libarrow.so.* +#-------------------------------------------------------------------- + %package doc Summary: Documentation files for Apache Arrow C++ BuildArch: noarch @@ -189,6 +112,8 @@ Documentation files for Apache Arrow C++. %doc README.md NOTICE.txt %exclude %{_docdir}/arrow/ +#-------------------------------------------------------------------- + %package devel Summary: Libraries and header files for Apache Arrow C++ Requires: %{name} = %{version}-%{release} @@ -197,14 +122,14 @@ Requires: bzip2-devel Requires: libzstd-devel Requires: lz4-devel Requires: openssl-devel -%if %{have_rapidjson} +%if %{with have_rapidjson} Requires: rapidjson-devel %endif -%if %{have_re2} +%if %{with have_re2} Requires: re2-devel %endif Requires: snappy-devel -%if %{have_utf8proc} +%if %{with have_utf8proc} Requires: utf8proc-devel %endif Requires: zlib-devel @@ -213,20 +138,21 @@ Requires: zlib-devel Libraries and header files for Apache Arrow C++. %files devel -%{_includedir}/arrow/ +%dir %{_includedir}/arrow + %{_includedir}/arrow/* %exclude %{_includedir}/arrow/dataset/ -%if %{use_flight} +%if %{with use_flight} %exclude %{_includedir}/arrow/flight/ %exclude %{_includedir}/arrow-flight-glib %endif %exclude %{_includedir}/arrow/python/ %exclude %{_libdir}/cmake/arrow/* -%{_libdir}/cmake/arrow/ArrowConfig*.cmake -%{_libdir}/cmake/arrow/ArrowOptions.cmake -%{_libdir}/cmake/arrow/ArrowTargets*.cmake -%{_libdir}/cmake/arrow/FindArrow.cmake -%{_libdir}/cmake/arrow/arrow-config.cmake -%exclude %{_libdir}/libarrow.a +%dir %{_libdir}/cmake/arrow + %{_libdir}/cmake/arrow/ArrowConfig*.cmake + %{_libdir}/cmake/arrow/ArrowOptions.cmake + %{_libdir}/cmake/arrow/ArrowTargets*.cmake + %{_libdir}/cmake/arrow/FindArrow.cmake + %{_libdir}/cmake/arrow/arrow-config.cmake %{_libdir}/libarrow.so %{_libdir}/pkgconfig/arrow-compute.pc %{_libdir}/pkgconfig/arrow-csv.pc @@ -234,6 +160,9 @@ Libraries and header files for Apache Arrow C++. %{_libdir}/pkgconfig/arrow-json.pc %{_libdir}/pkgconfig/arrow-orc.pc %{_libdir}/pkgconfig/arrow.pc +%exclude %{_libdir}/libarrow.a + +#-------------------------------------------------------------------- %package dataset-libs Summary: C++ library to read and write semantic datasets @@ -246,6 +175,8 @@ This package contains the libraries for Apache Arrow dataset. %files dataset-libs %{_libdir}/libarrow_dataset.so.* +#-------------------------------------------------------------------- + %package dataset-devel Summary: Libraries and header files for Apache Arrow dataset Requires: %{name}-dataset-libs = %{version}-%{release} @@ -254,15 +185,18 @@ Requires: %{name}-dataset-libs = %{version}-%{release} Libraries and header files for Apache Arrow dataset. %files dataset-devel -%{_includedir}/arrow/dataset/ +%dir %{_includedir}/arrow/dataset + %{_includedir}/arrow/dataset/* %{_libdir}/cmake/arrow/ArrowDatasetConfig*.cmake %{_libdir}/cmake/arrow/ArrowDatasetTargets*.cmake %{_libdir}/cmake/arrow/FindArrowDataset.cmake -%exclude %{_libdir}/libarrow_dataset.a %{_libdir}/libarrow_dataset.so %{_libdir}/pkgconfig/arrow-dataset.pc +%exclude %{_libdir}/libarrow_dataset.a + +#-------------------------------------------------------------------- -%if %{use_flight} +%if %{with use_flight} %package flight-libs Summary: C++ library for fast data transport Requires: %{name} = %{version}-%{release} @@ -277,6 +211,8 @@ This package contains the libraries for Apache Arrow Flight. %{_libdir}/libarrow-flight-glib.so.* %{_libdir}/girepository-1.0/ArrowFlight-1.0.typelib +#-------------------------------------------------------------------- + %package flight-devel Summary: Libraries and header files for Apache Arrow Flight Requires: %{name}-flight-libs = %{version}-%{release} @@ -285,22 +221,24 @@ Requires: %{name}-flight-libs = %{version}-%{release} Libraries and header files for Apache Arrow Flight. %files flight-devel -%dir %{_includedir}/arrow/flight/ +%dir %{_includedir}/arrow/flight %{_includedir}/arrow/flight/* %dir %{_includedir}/arrow-flight-glib %{_includedir}/arrow-flight-glib/* %{_libdir}/cmake/arrow/ArrowFlightConfig*.cmake %{_libdir}/cmake/arrow/ArrowFlightTargets*.cmake %{_libdir}/cmake/arrow/FindArrowFlight.cmake -%exclude %{_libdir}/libarrow_flight.a %{_libdir}/libarrow_flight.so -%exclude %{_libdir}/libarrow-flight-glib.a %{_libdir}/libarrow-flight-glib.so %{_libdir}/pkgconfig/arrow-flight.pc %{_libdir}/pkgconfig/arrow-flight-glib.pc +%exclude %{_libdir}/libarrow_flight.a +%exclude %{_libdir}/libarrow-flight-glib.a %endif -%if %{use_gandiva} +#-------------------------------------------------------------------- + +%if %{with use_gandiva} %package -n gandiva-libs Summary: C++ library for compiling and evaluating expressions Requires: %{name} = %{version}-%{release} @@ -313,6 +251,8 @@ This package contains the libraries for Gandiva. %files -n gandiva-libs %{_libdir}/libgandiva.so.* +#-------------------------------------------------------------------- + %package -n gandiva-devel Summary: Libraries and header files for Gandiva Requires: gandiva-libs = %{version}-%{release} @@ -322,15 +262,18 @@ Requires: llvm-devel Libraries and header files for Gandiva. %files -n gandiva-devel -%{_includedir}/gandiva/ +%dir %{_includedir}/gandiva + %{_includedir}/gandiva/* %{_libdir}/cmake/arrow/GandivaConfig*.cmake %{_libdir}/cmake/arrow/GandivaTargets*.cmake %{_libdir}/cmake/arrow/FindGandiva.cmake -%exclude %{_libdir}/libgandiva.a %{_libdir}/libgandiva.so %{_libdir}/pkgconfig/gandiva.pc +%exclude %{_libdir}/libgandiva.a %endif +#-------------------------------------------------------------------- + %package python-libs Summary: Python integration library for Apache Arrow Requires: %{name} = %{version}-%{release} @@ -343,6 +286,8 @@ This package contains the Python integration library for Apache Arrow. %files python-libs %{_libdir}/libarrow_python.so.* +#-------------------------------------------------------------------- + %package python-devel Summary: Libraries and header files for Python integration library Requires: %{name}-devel = %{version}-%{release} @@ -354,16 +299,19 @@ Requires: python3-devel Libraries and header files for Python integration library for Apache Arrow. %files python-devel -%{_includedir}/arrow/python/ +%dir %{_includedir}/arrow/python + %{_includedir}/arrow/python/* %exclude %{_includedir}/arrow/python/flight.h %{_libdir}/cmake/arrow/ArrowPythonConfig*.cmake %{_libdir}/cmake/arrow/ArrowPythonTargets*.cmake %{_libdir}/cmake/arrow/FindArrowPython.cmake -%exclude %{_libdir}/libarrow_python.a %{_libdir}/libarrow_python.so %{_libdir}/pkgconfig/arrow-python.pc +%exclude %{_libdir}/libarrow_python.a + +#-------------------------------------------------------------------- -%if %{use_flight} +%if %{with use_flight} %package python-flight-libs Summary: Python integration library for Apache Arrow Flight Requires: %{name}-flight-libs = %{version}-%{release} @@ -376,6 +324,8 @@ This package contains the Python integration library for Apache Arrow Flight. %files python-flight-libs %{_libdir}/libarrow_python_flight.so.* +#-------------------------------------------------------------------- + %package python-flight-devel Summary: Libraries and header files for Python integration Requires: %{name}-flight-devel = %{version}-%{release} @@ -391,11 +341,13 @@ Apache Arrow Flight. %{_libdir}/cmake/arrow/ArrowPythonFlightConfig*.cmake %{_libdir}/cmake/arrow/ArrowPythonFlightTargets*.cmake %{_libdir}/cmake/arrow/FindArrowPythonFlight.cmake -%exclude %{_libdir}/libarrow_python_flight.a %{_libdir}/libarrow_python_flight.so %{_libdir}/pkgconfig/arrow-python-flight.pc +%exclude %{_libdir}/libarrow_python_flight.a %endif +#-------------------------------------------------------------------- + %package -n plasma-libs Summary: Runtime libraries for Plasma in-memory object store Requires: %{name} = %{version}-%{release} @@ -407,6 +359,8 @@ This package contains the libraries for Plasma in-memory object store. %files -n plasma-libs %{_libdir}/libplasma.so.* +#-------------------------------------------------------------------- + %package -n plasma-store-server Summary: Server for Plasma in-memory object store Requires: plasma-libs = %{version}-%{release} @@ -418,21 +372,29 @@ This package contains the server for Plasma in-memory object store. %files -n plasma-store-server %{_bindir}/plasma-store-server -%package -n plasma-devel +#-------------------------------------------------------------------- + +%package -n plasma-libs-devel Summary: Libraries and header files for Plasma in-memory object store Requires: plasma-libs = %{version}-%{release} +# plasma-devel a.k.a. kdelibs-devel provides +# conflicts with all versions of plasma-devel %%{_libdir}/libplasma.so +BuildConflicts: plasma-devel -%description -n plasma-devel +%description -n plasma-libs-devel Libraries and header files for Plasma in-memory object store. -%files -n plasma-devel -%{_includedir}/plasma/ +%files -n plasma-libs-devel +%dir %{_includedir}/plasma + %{_includedir}/plasma/* %{_libdir}/cmake/arrow/PlasmaConfig*.cmake %{_libdir}/cmake/arrow/PlasmaTargets*.cmake %{_libdir}/cmake/arrow/FindPlasma.cmake -%exclude %{_libdir}/libplasma.a %{_libdir}/libplasma.so %{_libdir}/pkgconfig/plasma*.pc +%exclude %{_libdir}/libplasma.a + +#-------------------------------------------------------------------- %package -n parquet-libs Summary: Runtime libraries for Apache Parquet C++ @@ -447,22 +409,27 @@ This package contains the libraries for Apache Parquet C++. %files -n parquet-libs %{_libdir}/libparquet.so.* -%package -n parquet-devel +#-------------------------------------------------------------------- + +%package -n parquet-libs-devel Summary: Libraries and header files for Apache Parquet C++ Requires: parquet-libs = %{version}-%{release} Requires: zlib-devel -%description -n parquet-devel +%description -n parquet-libs-devel Libraries and header files for Apache Parquet C++. -%files -n parquet-devel -%{_includedir}/parquet/ +%files -n parquet-libs-devel +%dir %{_includedir}/parquet + %{_includedir}/parquet/* %{_libdir}/cmake/arrow/ParquetConfig*.cmake %{_libdir}/cmake/arrow/ParquetTargets*.cmake %{_libdir}/cmake/arrow/FindParquet.cmake -%exclude %{_libdir}/libparquet.a %{_libdir}/libparquet.so %{_libdir}/pkgconfig/parquet*.pc +%exclude %{_libdir}/libparquet.a + +#-------------------------------------------------------------------- %package glib-libs Summary: Runtime libraries for Apache Arrow GLib @@ -477,6 +444,8 @@ This package contains the libraries for Apache Arrow GLib. %{_libdir}/girepository-1.0/Arrow-1.0.typelib %exclude %{_datadir}/doc/arrow-glib/* +#-------------------------------------------------------------------- + %package glib-devel Summary: Libraries and header files for Apache Arrow GLib Requires: %{name}-devel = %{version}-%{release} @@ -488,14 +457,17 @@ Requires: gobject-introspection-devel Libraries and header files for Apache Arrow GLib. %files glib-devel -%{_includedir}/arrow-glib/ -%exclude %{_libdir}/libarrow-glib.a +%dir %{_includedir}/arrow-glib + %{_includedir}/arrow-glib/* %{_libdir}/libarrow-glib.so %{_libdir}/pkgconfig/arrow-glib.pc %{_libdir}/pkgconfig/arrow-orc-glib.pc %{_datadir}/arrow-glib/example/ %{_datadir}/gir-1.0/Arrow-1.0.gir %{_datadir}/gir-1.0/ArrowFlight-1.0.gir +%exclude %{_libdir}/libarrow-glib.a + +#-------------------------------------------------------------------- %package glib-doc Summary: Documentation for Apache Arrow GLib @@ -504,8 +476,12 @@ Summary: Documentation for Apache Arrow GLib Documentation for Apache Arrow GLib. %files glib-doc -%{_datadir}/gtk-doc/html/arrow-glib/ -%{_datadir}/gtk-doc/html/arrow-flight-glib/ +%dir %{_datadir}/gtk-doc/html/arrow-glib + %{_datadir}/gtk-doc/html/arrow-glib/* +%dir %{_datadir}/gtk-doc/html/arrow-flight-glib + %{_datadir}/gtk-doc/html/arrow-flight-glib/* + +#-------------------------------------------------------------------- %package dataset-glib-libs Summary: Runtime libraries for Apache Arrow dataset GLib @@ -520,6 +496,8 @@ This package contains the libraries for Apache Arrow dataset GLib. %{_libdir}/libarrow-dataset-glib.so.* %{_libdir}/girepository-1.0/ArrowDataset-1.0.typelib +#-------------------------------------------------------------------- + %package dataset-glib-devel Summary: Libraries and header files for Apache Arrow dataset GLib Requires: %{name}-dataset-devel = %{version}-%{release} @@ -530,11 +508,14 @@ Requires: %{name}-dataset-glib-libs = %{version}-%{release} Libraries and header files for Apache Arrow dataset GLib. %files dataset-glib-devel -%{_includedir}/arrow-dataset-glib/ -%exclude %{_libdir}/libarrow-dataset-glib.a +%dir %{_includedir}/arrow-dataset-glib + %{_includedir}/arrow-dataset-glib/ %{_libdir}/libarrow-dataset-glib.so %{_libdir}/pkgconfig/arrow-dataset-glib.pc %{_datadir}/gir-1.0/ArrowDataset-1.0.gir +%exclude %{_libdir}/libarrow-dataset-glib.a + +#-------------------------------------------------------------------- %package dataset-glib-doc Summary: Documentation for Apache Arrow dataset GLib @@ -543,9 +524,12 @@ Summary: Documentation for Apache Arrow dataset GLib Documentation for Apache Arrow dataset GLib. %files dataset-glib-doc -%{_datadir}/gtk-doc/html/arrow-dataset-glib/ +%dir %{_datadir}/gtk-doc/html/arrow-dataset-glib + %{_datadir}/gtk-doc/html/arrow-dataset-glib/* + +#-------------------------------------------------------------------- -%if %{use_gandiva} +%if %{with use_gandiva} %package -n gandiva-glib-libs Summary: Runtime libraries for Gandiva GLib Requires: gandiva-libs = %{version}-%{release} @@ -559,6 +543,8 @@ This package contains the libraries for Gandiva GLib. %{_libdir}/libgandiva-glib.so.* %{_libdir}/girepository-1.0/Gandiva-1.0.typelib +#-------------------------------------------------------------------- + %package -n gandiva-glib-devel Summary: Libraries and header files for Gandiva GLib Requires: gandiva-devel = %{version}-%{release} @@ -568,11 +554,14 @@ Requires: %{name}-glib-devel = %{version}-%{release} Libraries and header files for Gandiva GLib. %files -n gandiva-glib-devel -%{_includedir}/gandiva-glib/ -%exclude %{_libdir}/libgandiva-glib.a +%dir %{_includedir}/gandiva-glib + %{_includedir}/gandiva-glib/* %{_libdir}/libgandiva-glib.so %{_libdir}/pkgconfig/gandiva-glib.pc %{_datadir}/gir-1.0/Gandiva-1.0.gir +%exclude %{_libdir}/libgandiva-glib.a + +#-------------------------------------------------------------------- %package -n gandiva-glib-doc Summary: Documentation for Gandiva GLib @@ -581,9 +570,12 @@ Summary: Documentation for Gandiva GLib Documentation for Gandiva GLib. %files -n gandiva-glib-doc -%{_datadir}/gtk-doc/html/gandiva-glib/ +%dir %{_datadir}/gtk-doc/html/gandiva-glib + %{_datadir}/gtk-doc/html/gandiva-glib/* %endif +#-------------------------------------------------------------------- + %package -n plasma-glib-libs Summary: Runtime libraries for Plasma GLib Requires: plasma-libs = %{version}-%{release} @@ -597,6 +589,8 @@ This package contains the libraries for Plasma GLib. %{_libdir}/libplasma-glib.so.* %{_libdir}/girepository-1.0/Plasma-1.0.typelib +#-------------------------------------------------------------------- + %package -n plasma-glib-devel Summary: Libraries and header files for Plasma GLib Requires: plasma-devel = %{version}-%{release} @@ -607,11 +601,14 @@ Requires: %{name}-glib-devel = %{version}-%{release} Libraries and header files for Plasma GLib. %files -n plasma-glib-devel -%{_includedir}/plasma-glib/ -%exclude %{_libdir}/libplasma-glib.a +%dir %{_includedir}/plasma-glib + %{_includedir}/plasma-glib/ %{_libdir}/libplasma-glib.so %{_libdir}/pkgconfig/plasma-glib.pc %{_datadir}/gir-1.0/Plasma-1.0.gir +%exclude %{_libdir}/libplasma-glib.a + +#-------------------------------------------------------------------- %package -n plasma-glib-doc Summary: Documentation for Plasma GLib @@ -620,7 +617,10 @@ Summary: Documentation for Plasma GLib Documentation for Plasma GLib. %files -n plasma-glib-doc -%{_datadir}/gtk-doc/html/plasma-glib/ +%dir %{_datadir}/gtk-doc/html/plasma-glib + %{_datadir}/gtk-doc/html/plasma-glib/* + +#-------------------------------------------------------------------- %package -n parquet-glib-libs Summary: Runtime libraries for Apache Parquet GLib @@ -635,6 +635,8 @@ This package contains the libraries for Apache Parquet GLib. %{_libdir}/libparquet-glib.so.* %{_libdir}/girepository-1.0/Parquet-1.0.typelib +#-------------------------------------------------------------------- + %package -n parquet-glib-devel Summary: Libraries and header files for Apache Parquet GLib Requires: parquet-devel = %{version}-%{release} @@ -645,11 +647,14 @@ Requires: %{name}-glib-devel = %{version}-%{release} Libraries and header files for Apache Parquet GLib. %files -n parquet-glib-devel -%{_includedir}/parquet-glib/ -%exclude %{_libdir}/libparquet-glib.a +%dir %{_includedir}/parquet-glib + %{_includedir}/parquet-glib/* %{_libdir}/libparquet-glib.so %{_libdir}/pkgconfig/parquet-glib.pc %{_datadir}/gir-1.0/Parquet-1.0.gir +%exclude %{_libdir}/libparquet-glib.a + +#-------------------------------------------------------------------- %package -n parquet-glib-doc Summary: Documentation for Apache Parquet GLib @@ -658,9 +663,84 @@ Summary: Documentation for Apache Parquet GLib Documentation for Apache Parquet GLib. %files -n parquet-glib-doc -%{_datadir}/gtk-doc/html/parquet-glib/ +%dir %{_datadir}/gtk-doc/html/parquet-glib + %{_datadir}/gtk-doc/html/parquet-glib/* + +#-------------------------------------------------------------------- + +%prep +%autosetup -p1 -n apache-arrow-%{version} + +%build +pushd cpp +%cmake . \ +%if %{with use_flight} + -DARROW_FLIGHT=ON \ +%endif +%if %{with use_gandiva} + -DARROW_GANDIVA=ON \ +%endif +%if %{with use_mimalloc} + -DARROW_MIMALLOC=ON \ +%endif + -DARROW_ORC=ON \ + -DARROW_PARQUET=ON \ + -DARROW_PLASMA=ON \ + -DARROW_PYTHON=ON \ + -DARROW_JEMALLOC=OFF \ + -DGRPC_SOURCE="SYSTEM" \ + -Dxsimd_SOURCE="SYSTEM" \ +%if %{with use_s3} + -DARROW_S3=ON \ +%endif + -DARROW_WITH_BROTLI=ON \ + -DARROW_WITH_BZ2=ON \ + -DARROW_WITH_LZ4=ON \ + -DARROW_WITH_SNAPPY=ON \ + -DARROW_WITH_ZLIB=ON \ + -DARROW_WITH_ZSTD=ON \ + -DARROW_WITH_XSIMD=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \ + -DARROW_USE_CCACHE=OFF \ + -DCMAKE_UNITY_BUILD=ON \ + -DPARQUET_REQUIRE_ENCRYPTION=ON \ + -DPythonInterp_FIND_VERSION=ON \ + -DPythonInterp_FIND_VERSION_MAJOR=3 \ +%if %{with use_ninja} + -GNinja +%endif + +export VERBOSE=1 +export GCC_COLORS= +%cmake_build +popd + +pushd c_glib +%meson \ + -Darrow_cpp_build_dir=../cpp/%{_vpath_builddir} \ + -Darrow_cpp_build_type=relwithdebinfo \ + -Dgtk_doc=true +%meson_build + +#-------------------------------------------------------------------- + +%check + +#-------------------------------------------------------------------- + +%install +pushd c_glib +%meson_install +popd + +pushd cpp +%cmake_install +popd + +#-------------------------------------------------------------------- %changelog -* Thu Jan 13 2022 Kaleb S. KEITHLEY - 5.0.0-1 -- Newer upstream release. +* Thu Jan 13 2022 Kaleb S. KEITHLEY - 7.0.0-1 +- New upstream release.