Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cms_oracleocci_abi_hack-fake for aarch64
- Loading branch information
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
### RPM cms cms_oracleocci_abi_hack-fake-toolfile 1.1 | ||
Requires: cms_oracleocci_abi_hack-fake | ||
|
||
%define cms_oracleocci_libname cms_oracleocci_abi_hack | ||
%define isdarwin %(case %{cmsos} in (osx*) echo 1 ;; (*) echo 0 ;; esac) | ||
%define soext so | ||
%if %isdarwin | ||
%define soext dylib | ||
%endif | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
if [ -e ${CMS_ORACLEOCCI_ABI_HACK_FAKE_ROOT}/lib/lib%{cms_oracleocci_libname}.%{soext} ] ; then | ||
export CMS_ORACLEOCCI_LIB='<lib name="%{cms_oracleocci_libname}"/>' | ||
export CMS_ORACLEOCCI_LIBDIR='<environment name="LIBDIR" value="$ORACLEOCCI_BASE/lib"/>' | ||
export CMS_ORACLEOCCI_LD_PRELOAD='<runtime name="CMS_ORACLEOCCI_LIB" value="$LIBDIR/lib%{cms_oracleocci_libname}.%{soext}"/>' | ||
fi | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci.xml | ||
<tool name="oracleocci" version="@TOOL_VERSION@"> | ||
@CMS_ORACLEOCCI_LIB@ | ||
<use name="oracleocci-official"/> | ||
<client> | ||
<environment name="ORACLEOCCI_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="INCLUDE" value="$ORACLEOCCI_BASE/include"/> | ||
@CMS_ORACLEOCCI_LIBDIR@ | ||
</client> | ||
@CMS_ORACLEOCCI_LD_PRELOAD@ | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### RPM cms cms_oracleocci_abi_hack-fake 20180210 | ||
%define tag 88b2a965305226df1822a14af8fe7174ee5f1614 | ||
Source: git+https://github.com/cms-sw/cms_oracleocci_abi_hack.git?obj=master/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz | ||
Requires: oracle-fake | ||
BuildRequires: gmake | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
export INCLUDE_DIR=${ORACLE_FAKE_ROOT}/include | ||
export LIB_DIR=${ORACLE_FAKE_ROOT}/lib | ||
make %{makeprocesses} | ||
|
||
%install | ||
[ -d build/lib ] && cp -r build/lib %{i}/lib | ||
cp -r build/include %{i}/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters