Blame SPECS/libarrow.spec

d1a4fa
# -*- sh-shell: rpm -*-
d1a4fa
#
d1a4fa
# Licensed to the Apache Software Foundation (ASF) under one
d1a4fa
# or more contributor license agreements.  See the NOTICE file
d1a4fa
# distributed with this work for additional information
d1a4fa
# regarding copyright ownership.  The ASF licenses this file
d1a4fa
# to you under the Apache License, Version 2.0 (the
d1a4fa
# "License"); you may not use this file except in compliance
d1a4fa
# with the License.  You may obtain a copy of the License at
d1a4fa
#
d1a4fa
#   http://www.apache.org/licenses/LICENSE-2.0
d1a4fa
#
d1a4fa
# Unless required by applicable law or agreed to in writing,
d1a4fa
# software distributed under the License is distributed on an
d1a4fa
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
d1a4fa
# KIND, either express or implied.  See the License for the
d1a4fa
# specific language governing permissions and limitations
d1a4fa
# under the License.
d1a4fa
73f8e5
%bcond_without use_flight
d7bf7d
%bcond_with use_plasma
73f8e5
%bcond_with use_gandiva
73f8e5
%bcond_with use_mimalloc
73f8e5
%bcond_without use_ninja
d1a4fa
# TODO: Enable this. This works on local but is fragile on GitHub Actions and
d1a4fa
# Travis CI.
73f8e5
%bcond_with use_s3
73f8e5
%bcond_without have_rapidjson
73f8e5
%bcond_without have_re2
73f8e5
%bcond_without have_utf8proc
d1a4fa
d1a4fa
Name:		libarrow
331adb
Version:	8.0.1
824c28
Release:	1%{?dist}
73f8e5
Summary:	A toolbox for accelerated data interchange and in-memory processing
d1a4fa
License:	ASL 2.0
d1a4fa
URL:		https://arrow.apache.org/
d1a4fa
Source0:	https://dist.apache.org/repos/dist/release/arrow/arrow-%{version}/apache-arrow-%{version}.tar.gz
e2be6d
Patch0001:	0001-cpp-CMakeLists.txt.patch
824c28
Patch0002:	0002-cpp_src_arrow_util_utf8.h.patch
d1a4fa
# Apache ORC (liborc) has numerous compile errors and apparently assumes
d1a4fa
# a 64-bit build and runtime environment. This is only consumer of the liborc
d1a4fa
# package, and in turn the only consumer of this and liborc is Ceph, which
d1a4fa
# is also 64-bit only
73f8e5
ExcludeArch:	%{ix86} %{arm}
d1a4fa
BuildRequires:	bison
d1a4fa
BuildRequires:	boost-devel
d1a4fa
BuildRequires:	brotli-devel
d1a4fa
BuildRequires:	bzip2-devel
d1a4fa
BuildRequires:	cmake
73f8e5
%if %{with use_ninja}
d1a4fa
BuildRequires:	ninja-build
d1a4fa
%endif
d1a4fa
BuildRequires:	meson
73f8e5
%if %{with use_s3}
d1a4fa
BuildRequires:	curl-devel
d1a4fa
%endif
d1a4fa
BuildRequires:	flex
d1a4fa
BuildRequires:	gcc-c++
d1a4fa
BuildRequires:	gflags-devel
d1a4fa
BuildRequires:	glog-devel
d1a4fa
BuildRequires:	grpc-devel
d1a4fa
BuildRequires:	grpc-plugins
d1a4fa
BuildRequires:	libzstd-devel
d1a4fa
BuildRequires:	lz4-devel
d1a4fa
BuildRequires:	openssl-devel
d1a4fa
BuildRequires:	pkgconfig
d1a4fa
BuildRequires:	python3-devel
d1a4fa
BuildRequires:	python3-numpy
d1a4fa
BuildRequires:	xsimd-devel
d1a4fa
BuildRequires:	abseil-cpp-devel
d1a4fa
BuildRequires:	c-ares-devel
d1a4fa
BuildRequires:	thrift-devel
73f8e5
%if %{with have_rapidjson}
d1a4fa
BuildRequires:	rapidjson-devel
d1a4fa
%endif
73f8e5
%if %{with have_re2}
d1a4fa
BuildRequires:	re2-devel
d1a4fa
%endif
d1a4fa
BuildRequires:	snappy-devel
73f8e5
%if %{with have_utf8proc}
d1a4fa
BuildRequires:	utf8proc-devel
d1a4fa
%endif
d1a4fa
BuildRequires:	zlib-devel
d1a4fa
BuildRequires:	liborc-devel
73f8e5
%if %{with use_gandiva}
d1a4fa
BuildRequires:	llvm-devel
d1a4fa
BuildRequires:	ncurses-devel
d1a4fa
%endif
d1a4fa
BuildRequires:	gobject-introspection-devel
d1a4fa
BuildRequires:	gtk-doc
d1a4fa
d1a4fa
%description
73f8e5
Apache Arrow defines a language-independent columnar memory
73f8e5
format for flat and hierarchical data, organized for efficient
73f8e5
analytic operations on modern hardware like CPUs and GPUs. The
73f8e5
Arrow memory format also supports zero-copy reads for lightning-
73f8e5
fast data access without serialization overhead
d1a4fa
d1a4fa
%files
d1a4fa
%{_libdir}/libarrow.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
e2be6d
%package doc
e2be6d
Summary:	Documentation files for Apache Arrow C++
e2be6d
BuildArch:	noarch
e2be6d
e2be6d
%description doc
e2be6d
Documentation files for Apache Arrow C++.
e2be6d
e2be6d
%files doc
e2be6d
%license LICENSE.txt
e2be6d
%doc README.md NOTICE.txt
e2be6d
%exclude %{_docdir}/arrow/
e2be6d
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package devel
d1a4fa
Summary:	Libraries and header files for Apache Arrow C++
d1a4fa
Requires:	%{name} = %{version}-%{release}
d1a4fa
Requires:	brotli-devel
d1a4fa
Requires:	bzip2-devel
d1a4fa
Requires:	libzstd-devel
d1a4fa
Requires:	lz4-devel
d1a4fa
Requires:	openssl-devel
73f8e5
%if %{with have_rapidjson}
d1a4fa
Requires:	rapidjson-devel
d1a4fa
%endif
73f8e5
%if %{with have_re2}
d1a4fa
Requires:	re2-devel
d1a4fa
%endif
d1a4fa
Requires:	snappy-devel
73f8e5
%if %{with have_utf8proc}
d1a4fa
Requires:	utf8proc-devel
d1a4fa
%endif
d1a4fa
Requires:	zlib-devel
d1a4fa
d1a4fa
%description devel
d1a4fa
Libraries and header files for Apache Arrow C++.
d1a4fa
d1a4fa
%files devel
73f8e5
%dir %{_includedir}/arrow
73f8e5
     %{_includedir}/arrow/*
d1a4fa
%exclude %{_includedir}/arrow/dataset/
73f8e5
%if %{with use_flight}
d1a4fa
%exclude %{_includedir}/arrow/flight/
e2be6d
%exclude %{_includedir}/arrow-flight-glib
d1a4fa
%endif
d1a4fa
%exclude %{_includedir}/arrow/python/
aa43db
%exclude %{_libdir}/cmake/arrow/FindBrotli.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/FindLz4.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/FindORC.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/FindSnappy.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/FindgRPCAlt.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/Findre2Alt.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/Findutf8proc.cmake
aa43db
%exclude %{_libdir}/cmake/arrow/Findzstd.cmake
73f8e5
%dir %{_libdir}/cmake/arrow
73f8e5
     %{_libdir}/cmake/arrow/ArrowConfig*.cmake
73f8e5
     %{_libdir}/cmake/arrow/ArrowOptions.cmake
73f8e5
     %{_libdir}/cmake/arrow/ArrowTargets*.cmake
73f8e5
     %{_libdir}/cmake/arrow/FindArrow.cmake
73f8e5
     %{_libdir}/cmake/arrow/arrow-config.cmake
d1a4fa
%{_libdir}/libarrow.so
d1a4fa
%{_libdir}/pkgconfig/arrow-compute.pc
d1a4fa
%{_libdir}/pkgconfig/arrow-csv.pc
d1a4fa
%{_libdir}/pkgconfig/arrow-filesystem.pc
d1a4fa
%{_libdir}/pkgconfig/arrow-json.pc
d1a4fa
%{_libdir}/pkgconfig/arrow-orc.pc
d1a4fa
%{_libdir}/pkgconfig/arrow.pc
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package dataset-libs
e2be6d
Summary:	C++ library to read and write semantic datasets
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description dataset-libs
d1a4fa
This package contains the libraries for Apache Arrow dataset.
d1a4fa
d1a4fa
%files dataset-libs
d1a4fa
%{_libdir}/libarrow_dataset.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package dataset-devel
e2be6d
Summary:	Libraries and header files for Apache Arrow dataset
d1a4fa
Requires:	%{name}-dataset-libs = %{version}-%{release}
d1a4fa
d1a4fa
%description dataset-devel
d1a4fa
Libraries and header files for Apache Arrow dataset.
d1a4fa
d1a4fa
%files dataset-devel
73f8e5
%dir %{_includedir}/arrow/dataset
73f8e5
     %{_includedir}/arrow/dataset/*
d1a4fa
%{_libdir}/cmake/arrow/ArrowDatasetConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/ArrowDatasetTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindArrowDataset.cmake
d1a4fa
%{_libdir}/libarrow_dataset.so
d1a4fa
%{_libdir}/pkgconfig/arrow-dataset.pc
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%if %{with use_flight}
d1a4fa
%package flight-libs
e2be6d
Summary:	C++ library for fast data transport
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
Requires:	openssl
d1a4fa
d1a4fa
%description flight-libs
d1a4fa
This package contains the libraries for Apache Arrow Flight.
d1a4fa
d1a4fa
%files flight-libs
d1a4fa
%{_libdir}/libarrow_flight.so.*
e2be6d
%{_libdir}/libarrow-flight-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/ArrowFlight-1.0.typelib
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package flight-devel
e2be6d
Summary:	Libraries and header files for Apache Arrow Flight
d1a4fa
Requires:	%{name}-flight-libs = %{version}-%{release}
d1a4fa
d1a4fa
%description flight-devel
d1a4fa
Libraries and header files for Apache Arrow Flight.
d1a4fa
d1a4fa
%files flight-devel
73f8e5
%dir %{_includedir}/arrow/flight
e2be6d
     %{_includedir}/arrow/flight/*
e2be6d
%dir %{_includedir}/arrow-flight-glib
e2be6d
     %{_includedir}/arrow-flight-glib/*
d1a4fa
%{_libdir}/cmake/arrow/ArrowFlightConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/ArrowFlightTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindArrowFlight.cmake
d1a4fa
%{_libdir}/libarrow_flight.so
e2be6d
%{_libdir}/libarrow-flight-glib.so
d1a4fa
%{_libdir}/pkgconfig/arrow-flight.pc
e2be6d
%{_libdir}/pkgconfig/arrow-flight-glib.pc
d1a4fa
%endif
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%if %{with use_gandiva}
d1a4fa
%package -n gandiva-libs
e2be6d
Summary:	C++ library for compiling and evaluating expressions
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
Requires:	ncurses-libs
d1a4fa
d1a4fa
%description -n gandiva-libs
d1a4fa
This package contains the libraries for Gandiva.
d1a4fa
d1a4fa
%files -n gandiva-libs
d1a4fa
%{_libdir}/libgandiva.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n gandiva-devel
e2be6d
Summary:	Libraries and header files for Gandiva
d1a4fa
Requires:	gandiva-libs = %{version}-%{release}
d1a4fa
Requires:	llvm-devel
d1a4fa
d1a4fa
%description -n gandiva-devel
d1a4fa
Libraries and header files for Gandiva.
d1a4fa
d1a4fa
%files -n gandiva-devel
73f8e5
%dir %{_includedir}/gandiva
73f8e5
     %{_includedir}/gandiva/*
d1a4fa
%{_libdir}/cmake/arrow/GandivaConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/GandivaTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindGandiva.cmake
d1a4fa
%{_libdir}/libgandiva.so
d1a4fa
%{_libdir}/pkgconfig/gandiva.pc
d1a4fa
%endif
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package python-libs
d1a4fa
Summary:	Python integration library for Apache Arrow
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
Requires:	python3-numpy
d1a4fa
d1a4fa
%description python-libs
d1a4fa
This package contains the Python integration library for Apache Arrow.
d1a4fa
d1a4fa
%files python-libs
d1a4fa
%{_libdir}/libarrow_python.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package python-devel
e2be6d
Summary:	Libraries and header files for Python integration library
d1a4fa
Requires:	%{name}-devel = %{version}-%{release}
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-python-libs = %{version}-%{release}
d1a4fa
Requires:	python3-devel
d1a4fa
d1a4fa
%description python-devel
d1a4fa
Libraries and header files for Python integration library for Apache Arrow.
d1a4fa
d1a4fa
%files python-devel
73f8e5
%dir %{_includedir}/arrow/python
73f8e5
     %{_includedir}/arrow/python/*
d1a4fa
%exclude %{_includedir}/arrow/python/flight.h
d1a4fa
%{_libdir}/cmake/arrow/ArrowPythonConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/ArrowPythonTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindArrowPython.cmake
d1a4fa
%{_libdir}/libarrow_python.so
d1a4fa
%{_libdir}/pkgconfig/arrow-python.pc
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%if %{with use_flight}
d1a4fa
%package python-flight-libs
d1a4fa
Summary:	Python integration library for Apache Arrow Flight
d1a4fa
Requires:	%{name}-flight-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-python-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description python-flight-libs
d1a4fa
This package contains the Python integration library for Apache Arrow Flight.
d1a4fa
d1a4fa
%files python-flight-libs
d1a4fa
%{_libdir}/libarrow_python_flight.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package python-flight-devel
e2be6d
Summary:	Libraries and header files for Python integration
d1a4fa
Requires:	%{name}-flight-devel = %{version}-%{release}
d1a4fa
Requires:	%{name}-python-devel = %{version}-%{release}
d1a4fa
Requires:	%{name}-python-flight-libs = %{version}-%{release}
d1a4fa
d1a4fa
%description python-flight-devel
d1a4fa
Libraries and header files for Python integration library for
d1a4fa
Apache Arrow Flight.
d1a4fa
d1a4fa
%files python-flight-devel
d1a4fa
%{_includedir}/arrow/python/flight.h
d1a4fa
%{_libdir}/cmake/arrow/ArrowPythonFlightConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/ArrowPythonFlightTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindArrowPythonFlight.cmake
d1a4fa
%{_libdir}/libarrow_python_flight.so
d1a4fa
%{_libdir}/pkgconfig/arrow-python-flight.pc
d1a4fa
%endif
d1a4fa
d7bf7d
%if %{with use_plasma}
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n plasma-libs
d1a4fa
Summary:	Runtime libraries for Plasma in-memory object store
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description -n plasma-libs
d1a4fa
This package contains the libraries for Plasma in-memory object store.
d1a4fa
d1a4fa
%files -n plasma-libs
d1a4fa
%{_libdir}/libplasma.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n plasma-store-server
d1a4fa
Summary:	Server for Plasma in-memory object store
d1a4fa
Requires:	plasma-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description -n plasma-store-server
d1a4fa
This package contains the server for Plasma in-memory object store.
d1a4fa
d1a4fa
%files -n plasma-store-server
d1a4fa
%{_bindir}/plasma-store-server
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%package -n plasma-libs-devel
d1a4fa
Summary:	Libraries and header files for Plasma in-memory object store
d1a4fa
Requires:	plasma-libs = %{version}-%{release}
73f8e5
# plasma-devel a.k.a. kdelibs-devel provides
73f8e5
# conflicts with all versions of plasma-devel %%{_libdir}/libplasma.so
73f8e5
BuildConflicts: plasma-devel 
d1a4fa
73f8e5
%description -n plasma-libs-devel
d1a4fa
Libraries and header files for Plasma in-memory object store.
d1a4fa
73f8e5
%files -n plasma-libs-devel
73f8e5
%dir %{_includedir}/plasma
73f8e5
     %{_includedir}/plasma/*
d1a4fa
%{_libdir}/cmake/arrow/PlasmaConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/PlasmaTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindPlasma.cmake
d1a4fa
%{_libdir}/libplasma.so
d1a4fa
%{_libdir}/pkgconfig/plasma*.pc
73f8e5
d7bf7d
%endif
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package -n parquet-libs
d1a4fa
Summary:	Runtime libraries for Apache Parquet C++
d1a4fa
Requires:	boost-program-options
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
Requires:	openssl
d1a4fa
d1a4fa
%description -n parquet-libs
d1a4fa
This package contains the libraries for Apache Parquet C++.
d1a4fa
d1a4fa
%files -n parquet-libs
d1a4fa
%{_libdir}/libparquet.so.*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%package -n parquet-libs-devel
d1a4fa
Summary:	Libraries and header files for Apache Parquet C++
d1a4fa
Requires:	parquet-libs = %{version}-%{release}
d1a4fa
Requires:	zlib-devel
d1a4fa
73f8e5
%description -n parquet-libs-devel
d1a4fa
Libraries and header files for Apache Parquet C++.
d1a4fa
73f8e5
%files -n parquet-libs-devel
73f8e5
%dir %{_includedir}/parquet
73f8e5
     %{_includedir}/parquet/*
d1a4fa
%{_libdir}/cmake/arrow/ParquetConfig*.cmake
d1a4fa
%{_libdir}/cmake/arrow/ParquetTargets*.cmake
d1a4fa
%{_libdir}/cmake/arrow/FindParquet.cmake
d1a4fa
%{_libdir}/libparquet.so
d1a4fa
%{_libdir}/pkgconfig/parquet*.pc
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package glib-libs
d1a4fa
Summary:	Runtime libraries for Apache Arrow GLib
d1a4fa
Requires:	%{name} = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description glib-libs
d1a4fa
This package contains the libraries for Apache Arrow GLib.
d1a4fa
d1a4fa
%files glib-libs
d1a4fa
%{_libdir}/libarrow-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/Arrow-1.0.typelib
e2be6d
%exclude %{_datadir}/doc/arrow-glib/*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package glib-devel
d1a4fa
Summary:	Libraries and header files for Apache Arrow GLib
d1a4fa
Requires:	%{name}-devel = %{version}-%{release}
e2be6d
Requires:	%{name}-glib-libs = %{version}-%{release}
d1a4fa
Requires:	glib2-devel
d1a4fa
Requires:	gobject-introspection-devel
d1a4fa
d1a4fa
%description glib-devel
d1a4fa
Libraries and header files for Apache Arrow GLib.
d1a4fa
d1a4fa
%files glib-devel
73f8e5
%dir %{_includedir}/arrow-glib
73f8e5
     %{_includedir}/arrow-glib/*
d1a4fa
%{_libdir}/libarrow-glib.so
d1a4fa
%{_libdir}/pkgconfig/arrow-glib.pc
d1a4fa
%{_libdir}/pkgconfig/arrow-orc-glib.pc
d1a4fa
%{_datadir}/arrow-glib/example/
e2be6d
%{_datadir}/gir-1.0/Arrow-1.0.gir
e2be6d
%{_datadir}/gir-1.0/ArrowFlight-1.0.gir
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package glib-doc
d1a4fa
Summary:	Documentation for Apache Arrow GLib
d1a4fa
d1a4fa
%description glib-doc
d1a4fa
Documentation for Apache Arrow GLib.
d1a4fa
d1a4fa
%files glib-doc
73f8e5
%dir %{_datadir}/gtk-doc/html/arrow-glib
73f8e5
     %{_datadir}/gtk-doc/html/arrow-glib/*
73f8e5
%dir %{_datadir}/gtk-doc/html/arrow-flight-glib
73f8e5
     %{_datadir}/gtk-doc/html/arrow-flight-glib/*
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package dataset-glib-libs
d1a4fa
Summary:	Runtime libraries for Apache Arrow dataset GLib
d1a4fa
Requires:	%{name}-dataset-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description dataset-glib-libs
d1a4fa
This package contains the libraries for Apache Arrow dataset GLib.
d1a4fa
d1a4fa
%files dataset-glib-libs
d1a4fa
%{_libdir}/libarrow-dataset-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/ArrowDataset-1.0.typelib
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package dataset-glib-devel
d1a4fa
Summary:	Libraries and header files for Apache Arrow dataset GLib
d1a4fa
Requires:	%{name}-dataset-devel = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-devel = %{version}-%{release}
e2be6d
Requires:	%{name}-dataset-glib-libs = %{version}-%{release}
d1a4fa
d1a4fa
%description dataset-glib-devel
d1a4fa
Libraries and header files for Apache Arrow dataset GLib.
d1a4fa
d1a4fa
%files dataset-glib-devel
73f8e5
%dir %{_includedir}/arrow-dataset-glib
73f8e5
     %{_includedir}/arrow-dataset-glib/
d1a4fa
%{_libdir}/libarrow-dataset-glib.so
d1a4fa
%{_libdir}/pkgconfig/arrow-dataset-glib.pc
e2be6d
%{_datadir}/gir-1.0/ArrowDataset-1.0.gir
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package dataset-glib-doc
d1a4fa
Summary:	Documentation for Apache Arrow dataset GLib
d1a4fa
d1a4fa
%description dataset-glib-doc
d1a4fa
Documentation for Apache Arrow dataset GLib.
d1a4fa
d1a4fa
%files dataset-glib-doc
73f8e5
%dir %{_datadir}/gtk-doc/html/arrow-dataset-glib
73f8e5
     %{_datadir}/gtk-doc/html/arrow-dataset-glib/*
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%if %{with use_gandiva}
d1a4fa
%package -n gandiva-glib-libs
d1a4fa
Summary:	Runtime libraries for Gandiva GLib
d1a4fa
Requires:	gandiva-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description -n gandiva-glib-libs
d1a4fa
This package contains the libraries for Gandiva GLib.
d1a4fa
d1a4fa
%files -n gandiva-glib-libs
d1a4fa
%{_libdir}/libgandiva-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/Gandiva-1.0.typelib
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n gandiva-glib-devel
d1a4fa
Summary:	Libraries and header files for Gandiva GLib
d1a4fa
Requires:	gandiva-devel = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-devel = %{version}-%{release}
d1a4fa
d1a4fa
%description -n gandiva-glib-devel
d1a4fa
Libraries and header files for Gandiva GLib.
d1a4fa
d1a4fa
%files -n gandiva-glib-devel
73f8e5
%dir %{_includedir}/gandiva-glib
73f8e5
     %{_includedir}/gandiva-glib/*
d1a4fa
%{_libdir}/libgandiva-glib.so
d1a4fa
%{_libdir}/pkgconfig/gandiva-glib.pc
e2be6d
%{_datadir}/gir-1.0/Gandiva-1.0.gir
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package -n gandiva-glib-doc
d1a4fa
Summary:	Documentation for Gandiva GLib
d1a4fa
d1a4fa
%description -n gandiva-glib-doc
d1a4fa
Documentation for Gandiva GLib.
d1a4fa
d1a4fa
%files -n gandiva-glib-doc
73f8e5
%dir %{_datadir}/gtk-doc/html/gandiva-glib
73f8e5
     %{_datadir}/gtk-doc/html/gandiva-glib/*
d1a4fa
%endif
d1a4fa
d7bf7d
%if %{with use_plasma}
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n plasma-glib-libs
d1a4fa
Summary:	Runtime libraries for Plasma GLib
d1a4fa
Requires:	plasma-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description -n plasma-glib-libs
d1a4fa
This package contains the libraries for Plasma GLib.
d1a4fa
d1a4fa
%files -n plasma-glib-libs
d1a4fa
%{_libdir}/libplasma-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/Plasma-1.0.typelib
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n plasma-glib-devel
d1a4fa
Summary:	Libraries and header files for Plasma GLib
d1a4fa
Requires:	plasma-devel = %{version}-%{release}
e2be6d
Requires:	plasma-glib-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-devel = %{version}-%{release}
d1a4fa
d1a4fa
%description -n plasma-glib-devel
d1a4fa
Libraries and header files for Plasma GLib.
d1a4fa
d1a4fa
%files -n plasma-glib-devel
73f8e5
%dir %{_includedir}/plasma-glib
73f8e5
     %{_includedir}/plasma-glib/
d1a4fa
%{_libdir}/libplasma-glib.so
d1a4fa
%{_libdir}/pkgconfig/plasma-glib.pc
e2be6d
%{_datadir}/gir-1.0/Plasma-1.0.gir
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package -n plasma-glib-doc
d1a4fa
Summary:	Documentation for Plasma GLib
d1a4fa
d1a4fa
%description -n plasma-glib-doc
d1a4fa
Documentation for Plasma GLib.
d1a4fa
d1a4fa
%files -n plasma-glib-doc
73f8e5
%dir %{_datadir}/gtk-doc/html/plasma-glib
73f8e5
     %{_datadir}/gtk-doc/html/plasma-glib/*
d7bf7d
%endif
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package -n parquet-glib-libs
d1a4fa
Summary:	Runtime libraries for Apache Parquet GLib
d1a4fa
Requires:	parquet-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-libs = %{version}-%{release}
e2be6d
Requires:	%{name}-doc = %{version}-%{release}
d1a4fa
d1a4fa
%description -n parquet-glib-libs
d1a4fa
This package contains the libraries for Apache Parquet GLib.
d1a4fa
d1a4fa
%files -n parquet-glib-libs
d1a4fa
%{_libdir}/libparquet-glib.so.*
e2be6d
%{_libdir}/girepository-1.0/Parquet-1.0.typelib
d1a4fa
73f8e5
#--------------------------------------------------------------------
73f8e5
d1a4fa
%package -n parquet-glib-devel
d1a4fa
Summary:	Libraries and header files for Apache Parquet GLib
d1a4fa
Requires:	parquet-devel = %{version}-%{release}
e2be6d
Requires:	parquet-glib-libs = %{version}-%{release}
d1a4fa
Requires:	%{name}-glib-devel = %{version}-%{release}
d1a4fa
d1a4fa
%description -n parquet-glib-devel
d1a4fa
Libraries and header files for Apache Parquet GLib.
d1a4fa
d1a4fa
%files -n parquet-glib-devel
73f8e5
%dir %{_includedir}/parquet-glib
73f8e5
     %{_includedir}/parquet-glib/*
d1a4fa
%{_libdir}/libparquet-glib.so
d1a4fa
%{_libdir}/pkgconfig/parquet-glib.pc
e2be6d
%{_datadir}/gir-1.0/Parquet-1.0.gir
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%package -n parquet-glib-doc
d1a4fa
Summary:	Documentation for Apache Parquet GLib
d1a4fa
d1a4fa
%description -n parquet-glib-doc
d1a4fa
Documentation for Apache Parquet GLib.
d1a4fa
d1a4fa
%files -n parquet-glib-doc
73f8e5
%dir %{_datadir}/gtk-doc/html/parquet-glib
73f8e5
     %{_datadir}/gtk-doc/html/parquet-glib/*
73f8e5
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%prep
73f8e5
%autosetup -p1 -n apache-arrow-%{version}
73f8e5
73f8e5
%build
73f8e5
pushd cpp
73f8e5
%cmake . \
73f8e5
%if %{with use_flight}
d7bf7d
  -DARROW_FLIGHT:BOOL=ON \
73f8e5
%endif
73f8e5
%if %{with use_gandiva}
d7bf7d
  -DARROW_GANDIVA:BOOL=ON \
73f8e5
%endif
73f8e5
%if %{with use_mimalloc}
d7bf7d
  -DARROW_MIMALLOC:BOOL=ON \
73f8e5
%endif
d7bf7d
  -DARROW_ORC:BOOL=ON \
d7bf7d
  -DARROW_PARQUET:BOOL=ON \
d7bf7d
%if %{with use_plasma}
d7bf7d
  -DARROW_PLASMA:BOOL=ON \
d7bf7d
%endif
d7bf7d
  -DARROW_PYTHON:BOOL=ON \
d7bf7d
  -DARROW_JEMALLOC:BOOL=OFF \
73f8e5
  -DGRPC_SOURCE="SYSTEM" \
73f8e5
  -Dxsimd_SOURCE="SYSTEM" \
73f8e5
%if %{with use_s3}
d7bf7d
  -DARROW_S3:BOOL=ON \
73f8e5
%endif
d7bf7d
  -DARROW_WITH_BROTLI:BOOL=ON \
d7bf7d
  -DARROW_WITH_BZ2:BOOL=ON \
d7bf7d
  -DARROW_WITH_LZ4:BOOL=ON \
d7bf7d
  -DARROW_WITH_SNAPPY:BOOL=ON \
d7bf7d
  -DARROW_WITH_ZLIB:BOOL=ON \
d7bf7d
  -DARROW_WITH_ZSTD:BOOL=ON \
d7bf7d
  -DARROW_WITH_XSIMD:BOOL=ON \
d7bf7d
  -DARROW_BUILD_STATIC:BOOL=OFF \
73f8e5
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
73f8e5
  -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
d7bf7d
  -DARROW_USE_CCACHE:BOOL=OFF \
d7bf7d
  -DCMAKE_UNITY_BUILD:BOOL=ON \
d7bf7d
  -DPARQUET_REQUIRE_ENCRYPTION:BOOL=ON \
d7bf7d
  -DPythonInterp_FIND_VERSION:BOOL=ON \
73f8e5
  -DPythonInterp_FIND_VERSION_MAJOR=3 \
73f8e5
%if %{with use_ninja}
73f8e5
  -GNinja
73f8e5
%endif
73f8e5
73f8e5
export VERBOSE=1
73f8e5
export GCC_COLORS=
73f8e5
%cmake_build
73f8e5
popd
73f8e5
73f8e5
pushd c_glib
73f8e5
%meson \
73f8e5
  -Darrow_cpp_build_dir=../cpp/%{_vpath_builddir} \
73f8e5
  -Darrow_cpp_build_type=relwithdebinfo \
73f8e5
  -Dgtk_doc=true
73f8e5
%meson_build
73f8e5
73f8e5
#--------------------------------------------------------------------
73f8e5
73f8e5
%install
73f8e5
pushd c_glib
73f8e5
%meson_install
73f8e5
popd
73f8e5
73f8e5
pushd cpp
73f8e5
%cmake_install
73f8e5
popd
73f8e5
73f8e5
#--------------------------------------------------------------------
d1a4fa
d1a4fa
%changelog
331adb
* Thu Jul 21 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 8.0.1-1
331adb
- Apache Arrow 8.0.1 GA
331adb
824c28
* Sun May 8 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 8.0.0-1
824c28
- Apache Arrow 8.0.0 GA
824c28
d7bf7d
* Wed Apr 27 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 7.0.0-3
d7bf7d
- remove static libs everywhere, inc. from build
d7bf7d
aa43db
* Wed Apr 27 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 7.0.0-2
aa43db
- %_libdir/cmake/arrow/* in -devel
aa43db
73f8e5
* Thu Jan 13 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 7.0.0-1
73f8e5
- latest upstream release.
d1a4fa