1cdf0e10cSrcweir#!/bin/bash 2*fce70c9bSAndrew Rist#************************************************************** 3*fce70c9bSAndrew Rist# 4*fce70c9bSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 5*fce70c9bSAndrew Rist# or more contributor license agreements. See the NOTICE file 6*fce70c9bSAndrew Rist# distributed with this work for additional information 7*fce70c9bSAndrew Rist# regarding copyright ownership. The ASF licenses this file 8*fce70c9bSAndrew Rist# to you under the Apache License, Version 2.0 (the 9*fce70c9bSAndrew Rist# "License"); you may not use this file except in compliance 10*fce70c9bSAndrew Rist# with the License. You may obtain a copy of the License at 11*fce70c9bSAndrew Rist# 12*fce70c9bSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 13*fce70c9bSAndrew Rist# 14*fce70c9bSAndrew Rist# Unless required by applicable law or agreed to in writing, 15*fce70c9bSAndrew Rist# software distributed under the License is distributed on an 16*fce70c9bSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17*fce70c9bSAndrew Rist# KIND, either express or implied. See the License for the 18*fce70c9bSAndrew Rist# specific language governing permissions and limitations 19*fce70c9bSAndrew Rist# under the License. 20*fce70c9bSAndrew Rist# 21*fce70c9bSAndrew Rist#************************************************************** 22cdf0e10cSrcweir 23cdf0e10cSrcweirLIBRPMBUILD=$(find ${COMPATH} -name 'librpmbuild-4.1*' -print) 24cdf0e10cSrcweir# echo $(dirname $LIBRPMBUILD) 25cdf0e10cSrcweirLD_LIBRARY_PATH=$(dirname ${LIBRPMBUILD}) ${BUILD_TOOLS?}/rpm "$@" 26cdf0e10cSrcweir# LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${COMPATH?}/lib \ 27cdf0e10cSrcweir# ${BUILD_TOOLS?}/rpm "$@" 28