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
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
73f8e5
Version:	7.0.0
e2be6d
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
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/
e2be6d
%exclude %{_libdir}/cmake/arrow/*
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
%exclude %{_libdir}/libarrow.a
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
73f8e5
%exclude %{_libdir}/libarrow_dataset.a
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
73f8e5
%exclude %{_libdir}/libarrow_flight.a
73f8e5
%exclude %{_libdir}/libarrow-flight-glib.a
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
73f8e5
%exclude %{_libdir}/libgandiva.a
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
73f8e5
%exclude %{_libdir}/libarrow_python.a
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
73f8e5
%exclude %{_libdir}/libarrow_python_flight.a
d1a4fa
%endif
d1a4fa
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
%exclude %{_libdir}/libplasma.a
73f8e5
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
%exclude %{_libdir}/libparquet.a
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
%exclude %{_libdir}/libarrow-glib.a
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
%exclude %{_libdir}/libarrow-dataset-glib.a
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
%exclude %{_libdir}/libgandiva-glib.a
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
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
%exclude %{_libdir}/libplasma-glib.a
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/*
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
%exclude %{_libdir}/libparquet-glib.a
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}
73f8e5
  -DARROW_FLIGHT=ON \
73f8e5
%endif
73f8e5
%if %{with use_gandiva}
73f8e5
  -DARROW_GANDIVA=ON \
73f8e5
%endif
73f8e5
%if %{with use_mimalloc}
73f8e5
  -DARROW_MIMALLOC=ON \
73f8e5
%endif
73f8e5
  -DARROW_ORC=ON \
73f8e5
  -DARROW_PARQUET=ON \
73f8e5
  -DARROW_PLASMA=ON \
73f8e5
  -DARROW_PYTHON=ON \
73f8e5
  -DARROW_JEMALLOC=OFF \
73f8e5
  -DGRPC_SOURCE="SYSTEM" \
73f8e5
  -Dxsimd_SOURCE="SYSTEM" \
73f8e5
%if %{with use_s3}
73f8e5
  -DARROW_S3=ON \
73f8e5
%endif
73f8e5
  -DARROW_WITH_BROTLI=ON \
73f8e5
  -DARROW_WITH_BZ2=ON \
73f8e5
  -DARROW_WITH_LZ4=ON \
73f8e5
  -DARROW_WITH_SNAPPY=ON \
73f8e5
  -DARROW_WITH_ZLIB=ON \
73f8e5
  -DARROW_WITH_ZSTD=ON \
73f8e5
  -DARROW_WITH_XSIMD=ON \
73f8e5
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
73f8e5
  -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
73f8e5
  -DARROW_USE_CCACHE=OFF \
73f8e5
  -DCMAKE_UNITY_BUILD=ON \
73f8e5
  -DPARQUET_REQUIRE_ENCRYPTION=ON \
73f8e5
  -DPythonInterp_FIND_VERSION=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
73f8e5
* Thu Jan 13 2022  Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 7.0.0-1
73f8e5
- latest upstream release.
d1a4fa