7777# Travis CI.
7878# %%define use_s3 (%%{rhel} >= 8)
7979%define use_s3 0
80+ %define use_vala (%{rhel} >= 8 || %{is_amazon_linux})
8081
8182%define have_lz4_libs (%{rhel} >= 8)
8283%define have_rapidjson (%{rhel} != 8)
@@ -146,7 +147,9 @@ BuildRequires: ncurses-devel
146147
147148BuildRequires: gobject-introspection-devel
148149BuildRequires: gtk-doc
150+ %if %{use_vala}
149151BuildRequires: vala
152+ %endif
150153
151154%description
152155Apache Arrow is a data processing library for analysis.
@@ -212,7 +215,9 @@ meson setup build \
212215 -Darrow_cpp_build_dir=../cpp/%{arrow_cmake_builddir} \
213216 -Darrow_cpp_build_type=$cpp_build_type \
214217 -Dgtk_doc=true \
218+ %if %{use_vala}
215219 -Dvapi=true
220+ %endif
216221
217222LD_LIBRARY_PATH=$PWD/../cpp/%{arrow_cmake_builddir}/$cpp_build_type \
218223 meson compile -C build %{?_smp_mflags}
@@ -320,6 +325,7 @@ Libraries and header files for Apache Arrow C++.
320325%{_datadir}/arrow/gdb/
321326%{_datadir}/gdb/auto-load/
322327%{_includedir}/arrow/
328+ %exclude %{_includedir}/arrow/acero/
323329%exclude %{_includedir}/arrow/dataset/
324330%if %{use_flight}
325331%exclude %{_includedir}/arrow/flight/
@@ -336,10 +342,44 @@ Libraries and header files for Apache Arrow C++.
336342%{_libdir}/pkgconfig/arrow-orc.pc
337343%{_libdir}/pkgconfig/arrow.pc
338344
345+ %package -n %{name}%{major_version}-acero-libs
346+ Summary: C++ library to execute a query in streaming
347+ License: Apache-2.0
348+ Requires: %{name}%{major_version}-libs = %{version}-%{release}
349+
350+ %description -n %{name}%{major_version}-acero-libs
351+ This package contains the libraries for Apache Arrow Acero.
352+
353+ %files -n %{name}%{major_version}-acero-libs
354+ %defattr(-,root,root,-)
355+ %doc README.md
356+ %license LICENSE.txt NOTICE.txt
357+ %{_libdir}/libarrow_acero.so.*
358+
359+ %package acero-devel
360+ Summary: Libraries and header files for Apache Arrow Acero
361+ License: Apache-2.0
362+ Requires: %{name}%{major_version}-acero-libs = %{version}-%{release}
363+ Requires: %{name}-devel = %{version}-%{release}
364+
365+ %description acero-devel
366+ Libraries and header files for Apache Arrow Acero
367+
368+ %files acero-devel
369+ %defattr(-,root,root,-)
370+ %doc README.md
371+ %license LICENSE.txt NOTICE.txt
372+ %{_includedir}/arrow/acero/
373+ %{_libdir}/cmake/ArrowAcero/
374+ %{_libdir}/libarrow_acero.a
375+ %{_libdir}/libarrow_acero.so
376+ %{_libdir}/pkgconfig/arrow-acero.pc
377+
339378%package -n %{name}%{major_version}-dataset-libs
340379Summary: C++ library to read and write semantic datasets stored in different locations and formats
341380License: Apache-2.0
342- Requires: %{name}%{major_version}-libs = %{version}-%{release}
381+ Requires: %{name}%{major_version}-acero-libs = %{version}-%{release}
382+ Requires: parquet%{major_version}-libs = %{version}-%{release}
343383
344384%description -n %{name}%{major_version}-dataset-libs
345385This package contains the libraries for Apache Arrow dataset.
@@ -354,7 +394,8 @@ This package contains the libraries for Apache Arrow dataset.
354394Summary: Libraries and header files for Apache Arrow dataset.
355395License: Apache-2.0
356396Requires: %{name}%{major_version}-dataset-libs = %{version}-%{release}
357- Requires: %{name}-devel = %{version}-%{release}
397+ Requires: %{name}-acero-devel = %{version}-%{release}
398+ Requires: parquet-devel = %{version}-%{release}
358399
359400%description dataset-devel
360401Libraries and header files for Apache Arrow dataset.
@@ -559,7 +600,9 @@ Libraries and header files for Apache Arrow GLib.
559600%license LICENSE.txt NOTICE.txt
560601%{_datadir}/arrow-glib/example/
561602%{_datadir}/gir-1.0/Arrow-*.gir
603+ %if %{use_vala}
562604%{_datadir}/vala/vapi/arrow-glib.*
605+ %endif
563606%{_includedir}/arrow-glib/
564607%{_libdir}/libarrow-glib.a
565608%{_libdir}/libarrow-glib.so
@@ -611,7 +654,9 @@ Libraries and header files for Apache Arrow Dataset GLib.
611654%doc README.md
612655%license LICENSE.txt NOTICE.txt
613656%{_datadir}/gir-1.0/ArrowDataset-*.gir
657+ %if %{use_vala}
614658%{_datadir}/vala/vapi/arrow-dataset-glib.*
659+ %endif
615660%{_includedir}/arrow-dataset-glib/
616661%{_libdir}/libarrow-dataset-glib.a
617662%{_libdir}/libarrow-dataset-glib.so
@@ -662,7 +707,9 @@ Libraries and header files for Apache Arrow Flight GLib.
662707%doc README.md
663708%license LICENSE.txt NOTICE.txt
664709%{_datadir}/gir-1.0/ArrowFlight-*.gir
710+ %if %{use_vala}
665711%{_datadir}/vala/vapi/arrow-flight-glib.*
712+ %endif
666713%{_includedir}/arrow-flight-glib/
667714%{_libdir}/libarrow-flight-glib.a
668715%{_libdir}/libarrow-flight-glib.so
@@ -712,7 +759,9 @@ Libraries and header files for Apache Arrow Flight SQL GLib.
712759%doc README.md
713760%license LICENSE.txt NOTICE.txt
714761%{_datadir}/gir-1.0/ArrowFlightSQL-*.gir
762+ %if %{use_vala}
715763%{_datadir}/vala/vapi/arrow-flight-sql-glib.*
764+ %endif
716765%{_includedir}/arrow-flight-sql-glib/
717766%{_libdir}/libarrow-flight-sql-glib.a
718767%{_libdir}/libarrow-flight-sql-glib.so
@@ -764,7 +813,9 @@ Libraries and header files for Gandiva GLib.
764813%doc README.md
765814%license LICENSE.txt NOTICE.txt
766815%{_datadir}/gir-1.0/Gandiva-*.gir
816+ %if %{use_vala}
767817%{_datadir}/vala/vapi/gandiva-glib.*
818+ %endif
768819%{_includedir}/gandiva-glib/
769820%{_libdir}/libgandiva-glib.a
770821%{_libdir}/libgandiva-glib.so
@@ -815,7 +866,9 @@ Libraries and header files for Apache Parquet GLib.
815866%doc README.md
816867%license LICENSE.txt NOTICE.txt
817868%{_datadir}/gir-1.0/Parquet-*.gir
869+ %if %{use_vala}
818870%{_datadir}/vala/vapi/parquet-glib.*
871+ %endif
819872%{_includedir}/parquet-glib/
820873%{_libdir}/libparquet-glib.a
821874%{_libdir}/libparquet-glib.so
0 commit comments