@@ -114,6 +114,7 @@ BuildRequires: snappy-devel
114114%if %{have_thrift}
115115BuildRequires: thrift-devel
116116%endif
117+ BuildRequires: unixODBC-devel
117118%if %{have_utf8proc}
118119BuildRequires: utf8proc-devel
119120%endif
@@ -144,6 +145,7 @@ cd cpp
144145 -DARROW_DATASET=ON \
145146 -DARROW_FLIGHT=ON \
146147 -DARROW_FLIGHT_SQL=ON \
148+ -DARROW_FLIGHT_SQL_ODBC=ON \
147149 -DARROW_GANDIVA=ON \
148150%if %{use_gcs}
149151 -DARROW_GCS=ON \
@@ -472,7 +474,7 @@ This package contains the libraries for Apache Arrow Flight SQL.
472474Summary: Libraries and header files for Apache Arrow Flight SQL.
473475License: Apache-2.0
474476Requires: %{name}%{so_version}-flight-sql-libs = %{version}-%{release}
475- Requires: %{name}-devel = %{version}-%{release}
477+ Requires: %{name}-flight- devel = %{version}-%{release}
476478
477479%description flight-sql-devel
478480Libraries and header files for Apache Arrow Flight SQL.
@@ -482,11 +484,45 @@ Libraries and header files for Apache Arrow Flight SQL.
482484%doc README.md
483485%license LICENSE.txt NOTICE.txt
484486%{_includedir}/arrow/flight/sql/
487+ %exclude %{_includedir}/arrow/flight/sql/odbc/
485488%{_libdir}/cmake/ArrowFlightSql/
486489%{_libdir}/libarrow_flight_sql.a
487490%{_libdir}/libarrow_flight_sql.so
488491%{_libdir}/pkgconfig/arrow-flight-sql.pc
489492
493+ %package -n %{name}%{so_version}-flight-sql-odbc-libs
494+ Summary: C++ library for interacting with SQL databases via ODBC.
495+ License: Apache-2.0
496+ Requires: %{name}%{so_version}-flight-sql-libs = %{version}-%{release}
497+
498+ %description -n %{name}%{so_version}-flight-sql-odbc-libs
499+ This package contains the libraries for Apache Arrow Flight SQL ODBC driver.
500+
501+ %files -n %{name}%{so_version}-flight-sql-odbc-libs
502+ %defattr(-,root,root,-)
503+ %doc README.md
504+ %license LICENSE.txt NOTICE.txt
505+ %{_libdir}/libarrow_flight_sql_odbc.so.*
506+
507+ %package flight-sql-odbc-devel
508+ Summary: Libraries and header files for Apache Arrow Flight SQL ODBC driver.
509+ License: Apache-2.0
510+ Requires: %{name}%{so_version}-flight-sql-odbc-libs = %{version}-%{release}
511+ Requires: %{name}-flight-sql-devel = %{version}-%{release}
512+
513+ %description flight-sql-odbc-devel
514+ Libraries and header files for Apache Arrow Flight SQL ODBC driver.
515+
516+ %files flight-sql-odbc-devel
517+ %defattr(-,root,root,-)
518+ %doc README.md
519+ %license LICENSE.txt NOTICE.txt
520+ %{_includedir}/arrow/flight/sql/odbc/
521+ %{_libdir}/cmake/ArrowFlightSqlOdbc/
522+ %{_libdir}/libarrow_flight_sql_odbc.a
523+ %{_libdir}/libarrow_flight_sql_odbc.so
524+ %{_libdir}/pkgconfig/arrow-flight-sql-odbc.pc
525+
490526%package -n gandiva%{so_version}-libs
491527Summary: C++ library for compiling and evaluating expressions on Apache Arrow data.
492528License: Apache-2.0
0 commit comments