Search
j0ke.net Open Build Service
>
Projects
>
ORACLE
:
XE
>
oracle-instantclient
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
oracle-instantclient.spec
@@ -38,10 +38,14 @@ Buildroot: %{_tmppath}/%{name}-root BuildArch: i386 x86_64 -BuildRequires: unzip +BuildRequires: unzip chrpath %define topdir instantclient_10_2 +%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 @@ -154,6 +158,19 @@ # ODBC %__install libsqora.so.10.1 %{buildroot}%{oradir}/lib +## change rpath +chrpath -d %{buildroot}%{oradir}/bin/genezi +chrpath -d %{buildroot}%{oradir}/bin/sqlplus +chrpath -d %{buildroot}%{oradir}/lib/libclntsh.so.10.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 + + %clean rm -rf %{buildroot} @@ -165,6 +182,11 @@ %files basic %defattr(-,root,root) +%dir %{_oradir} +%dir %{_oraverdir} +%dir %{oradir} +%dir %{oradir}/bin +%dir %{oradir}/lib %{oradir}/lib/libclntsh.so.10.1 %{oradir}/lib/libnnz10.so %{oradir}/lib/libocci.so.10.1 @@ -178,6 +200,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}/* @@ -196,11 +221,24 @@ %{oradir}/lib/libsqlplus.so %{oradir}/lib/libsqlplusic.so +%post jdbc +/sbin/ldconfig + +%postun +/sbin/ldconfig + %files jdbc %defattr(-,root,root) %{oradir}/lib/libheteroxa10.so %{oradir}/lib/orai18n.jar +%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