Search
j0ke.net Open Build Service
>
Projects
>
ORACLE
:
XE
>
oracle-instantclient11
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
oracle-instantclient.spec
@@ -40,10 +40,14 @@ Buildroot: %{_tmppath}/%{name}-root BuildArch: i386 x86_64 -BuildRequires: unzip +BuildRequires: unzip chrpath %define topdir instantclient_11_1 +%define _oradir %{_libdir}/oracle +%define _oraverdir %{_libdir}/oracle/%{version} %define oradir %{_libdir}/oracle/%{version}/client +%define _incdir %{_includedir}/oracle +%define _incverdir %{_includedir}/oracle/%{version} %define incdir %{_includedir}/oracle/%{version}/client %description @@ -171,7 +175,23 @@ # WRC / TOOLS %__install wrc %{buildroot}%{oradir}/bin - + +## change rpath +chrpath -d %{buildroot}%{oradir}/bin/genezi +chrpath -d %{buildroot}%{oradir}/bin/sqlplus +chrpath -d %{buildroot}%{oradir}/bin/wrc +chrpath -d %{buildroot}%{oradir}/lib/libclntsh.so.11.1 +chrpath -d %{buildroot}%{oradir}/lib/libociei.so +chrpath -d %{buildroot}%{oradir}/lib/libsqlplus.so +chrpath -d %{buildroot}%{oradir}/lib/libsqlplusic.so + +#fix doc perms +chmod -x ODBC_IC_Readme_Linux.html ODBCRelnotesJA.htm ODBCRelnotesUS.htm +chmod -x odbc_update_ini.sh + +# disable byte code check +export NO_BRP_CHECK_BYTECODE_VERSION=true + %clean rm -rf %{buildroot} @@ -183,6 +203,11 @@ %files basic %defattr(-,root,root) +%dir %{_oradir} +%dir %{_oraverdir} +%dir %{oradir} +%dir %{oradir}/bin +%dir %{oradir}/lib %{oradir}/lib/libclntsh.so.11.1 %{oradir}/lib/libnnz11.so %{oradir}/lib/libocci.so.11.1 @@ -196,6 +221,9 @@ %files devel %defattr(-,root,root) %doc %{topdir}/sdk/demo +%dir %{_incdir} +%dir %{_incverdir} +%dir %{incdir} %{oradir}/lib/libclntsh.so %{oradir}/lib/libocci.so %{incdir}/* @@ -214,12 +242,24 @@ %{oradir}/lib/libsqlplus.so %{oradir}/lib/libsqlplusic.so +%post jdbc +/sbin/ldconfig + +%postun +/sbin/ldconfig + %files jdbc %defattr(-,root,root) %{oradir}/lib/libheteroxa11.so %{oradir}/lib/orai18n.jar %ifarch i386 +%post odbc +/sbin/ldconfig + +%postun odbc +/sbin/ldconfig + %files odbc %defattr(-,root,root) %doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm