Files
impala/bin/impala-udf-devel.spec
Abhishek Rawat f4c0c396ff IMPALA-14175: Generate impala-udf-devel package using the build script
Added '-udf_devel_package' option to buildall.sh. This generates
impala-udf-devel rpm which includes udf headers and static libraries -
ImpalaUdf-retail.a and ImpalaUdf-debug.a.

Testing:
- Tested that rpm is generated using build script:
 ./buildall.sh -release_and_debug -notests -udf_devel_package
- Tested that the rpm is also generated using standalone script:
 ./bin/make-impala-udf-devel-rpm.sh
- Generated impala-udf-devel package and tested compiling
impala_udf_samples:
https://github.com/cloudera/impala-udf-samples

Change-Id: I5b85df9c3f680a7e5551f067a97a5650daba9b50
Reviewed-on: http://gerrit.cloudera.org:8080/23060
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2025-09-09 22:42:05 +00:00

55 lines
1.7 KiB
RPMSpec

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
Name: impala-udf-devel
Version: %{version}
Release: 1%{?dist}
Summary: Apache Impala UDF development package
License: Apache-2.0
Group: Development/Libraries
Source0: %{name}-%{version}.tar.gz
# some rhel distros error out if there are no symbols or source files so
# skip creating -debuginfo subpackage
%global debug_package %{nil}
%description
This RPM provides Apache Impala UDF headers, and shared library.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/include/impala_udf
cp -a usr/include/impala_udf/* %{buildroot}/usr/include/impala_udf/
mkdir -p %{buildroot}/usr/lib64
cp -a usr/lib64/* %{buildroot}/usr/lib64/
%files
/usr/include/impala_udf/uda-test-harness-impl.h
/usr/include/impala_udf/uda-test-harness.h
/usr/include/impala_udf/udf-debug.h
/usr/include/impala_udf/udf-test-harness.h
/usr/include/impala_udf/udf.h
/usr/lib64/libImpalaUdf-debug.a
/usr/lib64/libImpalaUdf-retail.a