diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-05-09 11:08:59 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-05-09 11:08:59 +0200 |
commit | 35ff116efe9aa5bc936d383f8270a9d7da8f50d7 (patch) | |
tree | 7da4a774ba74a407411e893325d3733c54674cbf |
Import Oracle stuff
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | oracle-instantclient-10-i386.spec | 210 | ||||
-rw-r--r-- | oracle-instantclient-10-ppc.spec | 198 | ||||
-rw-r--r-- | oracle-instantclient-10-ppc64.spec | 199 | ||||
-rw-r--r-- | oracle-instantclient-10-x86_64.spec | 210 | ||||
-rw-r--r-- | oracle-instantclient-11.1-i386.spec | 254 | ||||
-rw-r--r-- | oracle-instantclient-11.1-x86_64.spec | 258 | ||||
-rw-r--r-- | oracle-instantclient-11.2-i386.spec | 263 | ||||
-rw-r--r-- | oracle-instantclient-11.2-x86_64.spec | 270 | ||||
-rw-r--r-- | oracle-instantclient.spec | 230 |
10 files changed, 2102 insertions, 0 deletions
@@ -0,0 +1,10 @@ +oracle +------ + +Spec file to build Oracle Instant Client + +RPM can't be published but are used to build php-oci8, tora, ... + +Download .zip files from: +http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + diff --git a/oracle-instantclient-10-i386.spec b/oracle-instantclient-10-i386.spec new file mode 100644 index 0000000..59bd9d5 --- /dev/null +++ b/oracle-instantclient-10-i386.spec @@ -0,0 +1,210 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 10g +Name: oracle-instantclient +Version: 10.2.0.3 +Release: 3%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linux32-%{version}-20061115.zip +Source1: instantclient-jdbc-linux32-%{version}-20061115.zip +Source2: instantclient-odbc-linux32-%{version}-20061115.zip +Source3: instantclient-sdk-linux32-%{version}-20061115.zip +Source4: instantclient-sqlplus-linux32-%{version}-20061115.zip + +Buildroot: %{_tmppath}/%{name}-root +#BuildArch: i386 + +%define topdir instantclient_10_2 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package basic +Summary: Instant Client for Oracle Database 10g +Group: Applications/File + +%description basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: %{name}-basic = %version + +%description odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle 10.2.0.1.0 ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.10.1 %{buildroot}%{oradir}/lib +%__install libnnz10.so %{buildroot}%{oradir}/lib +%__install libocci.so.10.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc10.so %{buildroot}%{oradir}/lib +%__install classes12.jar %{buildroot}%{oradir}/lib +%__install ojdbc14.jar %{buildroot}%{oradir}/lib +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} + +ln -s libocci.so.10.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.10.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa10.so %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.10.1 %{buildroot}%{oradir}/lib + +%clean +rm -rf %{buildroot} + +%post basic +/sbin/ldconfig + +%postun basic +/sbin/ldconfig + +%files basic +%defattr(-,root,root) +%{oradir}/lib/libclntsh.so.10.1 +%{oradir}/lib/libnnz10.so +%{oradir}/lib/libocci.so.10.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc10.so +%{oradir}/lib/classes12.jar +%{oradir}/lib/ojdbc14.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi + +%files devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{incdir}/* + +%post sqlplus +/sbin/ldconfig + +%postun sqlplus +/sbin/ldconfig + +%files sqlplus +%defattr(-,root,root) +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files jdbc +%defattr(-,root,root) +%{oradir}/lib/libheteroxa10.so +%{oradir}/lib/orai18n.jar + +%files odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.10.1 + +%changelog +* Fri Nov 09 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc8.remi +- split spec for i386, x86_64 and ppc +- F8 rebuid + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-10-ppc.spec b/oracle-instantclient-10-ppc.spec new file mode 100644 index 0000000..66c3ac1 --- /dev/null +++ b/oracle-instantclient-10-ppc.spec @@ -0,0 +1,198 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 10g +Name: oracle-instantclient-ppc +Version: 10.2.0.2 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linuxppc32-%{version}-20060327.zip +Source1: instantclient-jdbc-linuxppc32-%{version}-20060327.zip +Source2: instantclient-sdk-linuxppc32-%{version}-20060327.zip +Source3: instantclient-sqlplus-linuxppc32-%{version}-20060327.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 + +Buildroot: %{_tmppath}/%{name}-root +#BuildArch: ppc + +%define topdir instantclient_10_2 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 10g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.10.1 %{buildroot}%{oradir}/lib +%__install libnnz10.so %{buildroot}%{oradir}/lib +%__install libocci.so.10.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc10.so %{buildroot}%{oradir}/lib +%__install classes12.jar %{buildroot}%{oradir}/lib +%__install ojdbc14.jar %{buildroot}%{oradir}/lib +#%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} + +ln -s libocci.so.10.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.10.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa10.so %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%{oradir}/lib/libclntsh.so.10.1 +%{oradir}/lib/libnnz10.so +%{oradir}/lib/libocci.so.10.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc10.so +%{oradir}/lib/classes12.jar +%{oradir}/lib/ojdbc14.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +#%{oradir}/bin/genezi + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%{oradir}/lib/libheteroxa10.so +%{oradir}/lib/orai18n.jar + + +%changelog +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.###.remi +- improved split spec + +* Tue Oct 30 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.###.remi +- split spec for i386, x86_64 and ppc +- ppc build + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-10-ppc64.spec b/oracle-instantclient-10-ppc64.spec new file mode 100644 index 0000000..d964859 --- /dev/null +++ b/oracle-instantclient-10-ppc64.spec @@ -0,0 +1,199 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 10g +Name: oracle-instantclient-ppc64 +Version: 10.2.0.2 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linuxppc-%{version}-20060327.zip +Source1: instantclient-jdbc-linuxppc-%{version}-20060327.zip +Source2: instantclient-sdk-linuxppc-%{version}-20060327.zip +Source3: instantclient-sqlplus-linuxppc-%{version}-20060327.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 + +Buildroot: %{_tmppath}/%{name}-root +#BuildArch: ppc + +%define topdir instantclient_10_2 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 10g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.10.1 %{buildroot}%{oradir}/lib +%__install libnnz10.so %{buildroot}%{oradir}/lib +%__install libocci.so.10.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc10.so %{buildroot}%{oradir}/lib +%__install classes12.jar %{buildroot}%{oradir}/lib +%__install ojdbc14.jar %{buildroot}%{oradir}/lib +#%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} + +ln -s libocci.so.10.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.10.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa10.so %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%{oradir}/lib/libclntsh.so.10.1 +%{oradir}/lib/libnnz10.so +%{oradir}/lib/libocci.so.10.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc10.so +%{oradir}/lib/classes12.jar +%{oradir}/lib/ojdbc14.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +#%{oradir}/bin/genezi + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%{oradir}/lib/libheteroxa10.so +%{oradir}/lib/orai18n.jar + + +%changelog +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.###.remi +- improved split spec +- add pcc64 + +* Tue Oct 30 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.###.remi +- split spec for i386, x86_64, ppc +- ppc build + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-10-x86_64.spec b/oracle-instantclient-10-x86_64.spec new file mode 100644 index 0000000..cd74eee --- /dev/null +++ b/oracle-instantclient-10-x86_64.spec @@ -0,0 +1,210 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 10g +Name: oracle-instantclient +Version: 10.2.0.3 +Release: 3%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linux-x86-64-%{version}-20070103.zip +Source1: instantclient-jdbc-linux-x86-64-%{version}-20070103.zip +Source2: instantclient-odbc-linux-x86-64-%{version}-20070103.zip +Source3: instantclient-sdk-linux-x86-64-%{version}-20070103.zip +Source4: instantclient-sqlplus-linux-x86-64-%{version}-20070103.zip + +Buildroot: %{_tmppath}/%{name}-root +BuildArch: x86_64 + +%define topdir instantclient_10_2 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package basic +Summary: Instant Client for Oracle Database 10g +Group: Applications/File + +%description basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: %{name}-basic = %version + +%description odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle 10.2.0.1.0 ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.10.1 %{buildroot}%{oradir}/lib +%__install libnnz10.so %{buildroot}%{oradir}/lib +%__install libocci.so.10.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc10.so %{buildroot}%{oradir}/lib +%__install classes12.jar %{buildroot}%{oradir}/lib +%__install ojdbc14.jar %{buildroot}%{oradir}/lib +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} + +ln -s libocci.so.10.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.10.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa10.so %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.10.1 %{buildroot}%{oradir}/lib + +%clean +rm -rf %{buildroot} + +%post basic +/sbin/ldconfig + +%postun basic +/sbin/ldconfig + +%files basic +%defattr(-,root,root) +%{oradir}/lib/libclntsh.so.10.1 +%{oradir}/lib/libnnz10.so +%{oradir}/lib/libocci.so.10.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc10.so +%{oradir}/lib/classes12.jar +%{oradir}/lib/ojdbc14.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi + +%files devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{incdir}/* + +%post sqlplus +/sbin/ldconfig + +%postun sqlplus +/sbin/ldconfig + +%files sqlplus +%defattr(-,root,root) +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files jdbc +%defattr(-,root,root) +%{oradir}/lib/libheteroxa10.so +%{oradir}/lib/orai18n.jar + +%files odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.10.1 + +%changelog +* Fri Nov 09 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc8.remi +- split spec for i386, x86_64 and ppc +- F8 rebuid + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-11.1-i386.spec b/oracle-instantclient-11.1-i386.spec new file mode 100644 index 0000000..f13a8e5 --- /dev/null +++ b/oracle-instantclient-11.1-i386.spec @@ -0,0 +1,254 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 11g +Name: oracle-instantclient-i386 +Version: 11.1.0.7 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linux32-%{version}.zip +Source1: instantclient-jdbc-linux32-%{version}.zip +Source2: instantclient-odbc-linux32-%{version}.zip +Source3: instantclient-sdk-linux32-%{version}.zip +Source4: instantclient-sqlplus-linux32-%{version}.zip +Source5: instantclient-tools-linux32-%{version}.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 +NoSource: 4 +NoSource: 5 + +Buildroot: %{_tmppath}/%{name}-root +#BuildArch: i386 + +%define topdir instantclient_11_1 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 11g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package -n oracle-instantclient-odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle %{version} ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%package -n oracle-instantclient-tools +Summary: Tools for Oracle Database 11g +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-tools +This package provides tools to be used with the Oracle Database. +It currently includes +- wrc : a client to be used with the Database Replay feature + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} +unzip %{SOURCE5} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.11.1 %{buildroot}%{oradir}/lib +%__install libnnz11.so %{buildroot}%{oradir}/lib +%__install libocci.so.11.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc11.so %{buildroot}%{oradir}/lib +%__install ojdbc5.jar %{buildroot}%{oradir}/lib +%__install ojdbc6.jar %{buildroot}%{oradir}/lib +%__install adrci %{buildroot}%{oradir}/bin +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} +%__install sdk/ottclasses.zip %{buildroot}%{oradir}/lib + +ln -s libocci.so.11.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.11.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa11.so %{buildroot}%{oradir}/lib +%__install orai18n-mapping.jar %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.11.1 %{buildroot}%{oradir}/lib + +# Tools +%__install wrc %{buildroot}%{oradir}/bin +ln -sf %{oradir}/bin/wrc %{buildroot}%{_bindir}/wrc + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%doc %{topdir}/BASIC_README +%{oradir}/lib/libclntsh.so.11.1 +%{oradir}/lib/libnnz11.so +%{oradir}/lib/libocci.so.11.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc11.so +%{oradir}/lib/ojdbc5.jar +%{oradir}/lib/ojdbc6.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi +%{oradir}/bin/adrci + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo %{topdir}/sdk/SDK_README %{topdir}/sdk/ott +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{oradir}/lib/ottclasses.zip +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%doc %{topdir}/SQLPLUS_README +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%doc %{topdir}/JDBC_README +%{oradir}/lib/libheteroxa11.so +%{oradir}/lib/orai18n-mapping.jar +%{oradir}/lib/orai18n.jar + +%files -n oracle-instantclient-odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.11.1 + +%files -n oracle-instantclient-tools +%defattr(-,root,root) +%doc %{topdir}/TOOLS_README +%{_bindir}/wrc +%{oradir}/bin/wrc + +%changelog +* Sun Nov 30 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.7-1.###.remi +- update to 11.1.0.7 +- add tools sub-package + +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- improved split spec + +* Tue Oct 30 2007 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- split spec for i386, x86_64 and ppc +- update to 11.1.0.6.0 + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-11.1-x86_64.spec b/oracle-instantclient-11.1-x86_64.spec new file mode 100644 index 0000000..f0f00e0 --- /dev/null +++ b/oracle-instantclient-11.1-x86_64.spec @@ -0,0 +1,258 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc +# oracle-instantclient-tools + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 11g +Name: oracle-instantclient-x86_64 +Version: 11.1.0.7 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: basic-%{version}0-linux-x86_64.zip +Source1: jdbc-%{version}.0-linux-x86_64.zip +#Source2: odbc-%{version}.0-linux-x86_64.zip +Source3: sdk-%{version}.0-linux-x86_64.zip +Source4: sqlplus-%{version}.0-linux-x86_64.zip +Source5: tools-%{version}.0-linux-x86_64.zip +NoSource: 0 +NoSource: 1 +#NoSource: 2 +NoSource: 3 +NoSource: 4 +NoSource: 5 + +Buildroot: %{_tmppath}/%{name}-root +BuildArch: x86_64 + +%define topdir instantclient_11_1 +%define oradir %{_libdir}/oracle/%{version}/client64 +%define incdir %{_includedir}/oracle/%{version}/client64 + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 11g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +#%package -n oracle-instantclient-odbc +#Summary: Oracle ODBC Instant Client for Linux +#Group: Applications/File +#Requires: oracle-instantclient-basic = %version + +#%description -n oracle-instantclient-odbc +#Oracle ODBC Instant Client for Linux complies with +#ODBC 3.52 specifications. It is based on features of +#Oracle %{version} ODBC driver for Windows, without +#the need for a traditional ORACLE_HOME installation. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%package -n oracle-instantclient-tools +Summary: Tools for Oracle Database 11g +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-tools +This package provides tools to be used with the Oracle Database. +It currently includes +- wrc : a client to be used with the Database Replay feature + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +#unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} +unzip %{SOURCE5} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.11.1 %{buildroot}%{oradir}/lib +%__install libnnz11.so %{buildroot}%{oradir}/lib +%__install libocci.so.11.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc11.so %{buildroot}%{oradir}/lib +%__install ojdbc5.jar %{buildroot}%{oradir}/lib +%__install ojdbc6.jar %{buildroot}%{oradir}/lib +%__install adrci %{buildroot}%{oradir}/bin +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} +%__install sdk/ottclasses.zip %{buildroot}%{oradir}/lib + +ln -s libocci.so.11.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.11.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus64 + +# JDBC +%__install libheteroxa11.so %{buildroot}%{oradir}/lib +%__install orai18n-mapping.jar %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +#%__install libsqora.so.11.1 %{buildroot}%{oradir}/lib + +# Tools +%__install wrc %{buildroot}%{oradir}/bin +ln -sf %{oradir}/bin/wrc %{buildroot}%{_bindir}/wrc + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%doc %{topdir}/BASIC_README +%{oradir}/lib/libclntsh.so.11.1 +%{oradir}/lib/libnnz11.so +%{oradir}/lib/libocci.so.11.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc11.so +%{oradir}/lib/ojdbc5.jar +%{oradir}/lib/ojdbc6.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi +%{oradir}/bin/adrci + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo %{topdir}/sdk/SDK_README %{topdir}/sdk/ott +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{oradir}/lib/ottclasses.zip +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%doc %{topdir}/SQLPLUS_README +%{_bindir}/sqlplus64 +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%doc %{topdir}/JDBC_README +%{oradir}/lib/libheteroxa11.so +%{oradir}/lib/orai18n-mapping.jar +%{oradir}/lib/orai18n.jar + +#%files -n oracle-instantclient-odbc +#%defattr(-,root,root) +#%doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +#%doc %{topdir}/odbc_update_ini.sh +#%{oradir}/lib/libsqora.so.11.1 + +%files -n oracle-instantclient-tools +%defattr(-,root,root) +%doc %{topdir}/TOOLS_README +%{_bindir}/wrc +%{oradir}/bin/wrc + +%changelog +* Thu Dec 04 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.7-1.###.remi +- update to 11.1.0.7 +- add tools sub-package + +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- improved split spec + +* Tue Dec 11 2007 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- version 11.1.0.6 + +* Fri Nov 09 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc8.remi +- split spec for i386, x86_64 and ppc +- F8 rebuid + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-11.2-i386.spec b/oracle-instantclient-11.2-i386.spec new file mode 100644 index 0000000..25004d9 --- /dev/null +++ b/oracle-instantclient-11.2-i386.spec @@ -0,0 +1,263 @@ +# SPEC file for i386 version of +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc +# oracle-instantclient-odbc +# oracle-instantclient-tools + +%define __arch_install_post /bin/true + +%global mainver 11.2 + +Summary: Instant Client for Oracle Database 11g +Name: oracle-instantclient-i386 +Version: 11.2.0.1 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linux32-%{version}.zip +Source1: instantclient-jdbc-linux32-%{version}.zip +Source2: instantclient-odbc-linux32-%{version}.zip +Source3: instantclient-sdk-linux32-%{version}.zip +Source4: instantclient-sqlplus-linux32-%{version}.zip +Source5: instantclient-tools-linux32-%{version}.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 +NoSource: 4 +NoSource: 5 + +Buildroot: %{_tmppath}/%{name}-root +#BuildArch: i386 + +%define topdir instantclient_11_2 +%define oradir %{_libdir}/oracle/%{mainver}/client +%define incdir %{_includedir}/oracle/%{mainver}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 11g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package -n oracle-instantclient-odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle %{version} ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%package -n oracle-instantclient-tools +Summary: Tools for Oracle Database 11g +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-tools +This package provides tools to be used with the Oracle Database. +It currently includes +- wrc : a client to be used with the Database Replay feature + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} +unzip %{SOURCE5} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.11.1 %{buildroot}%{oradir}/lib +%__install libnnz11.so %{buildroot}%{oradir}/lib +%__install libocci.so.11.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc11.so %{buildroot}%{oradir}/lib +%__install ojdbc5.jar %{buildroot}%{oradir}/lib +%__install ojdbc6.jar %{buildroot}%{oradir}/lib +%__install xstreams.jar %{buildroot}%{oradir}/lib +%__install adrci %{buildroot}%{oradir}/bin +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} +%__install sdk/ottclasses.zip %{buildroot}%{oradir}/lib + +ln -s libocci.so.11.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.11.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa11.so %{buildroot}%{oradir}/lib +%__install orai18n-mapping.jar %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.11.1 %{buildroot}%{oradir}/lib + +# Tools +%__install wrc %{buildroot}%{oradir}/bin +ln -sf %{oradir}/bin/wrc %{buildroot}%{_bindir}/wrc + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%doc %{topdir}/BASIC_README +%{oradir}/lib/libclntsh.so.11.1 +%{oradir}/lib/libnnz11.so +%{oradir}/lib/libocci.so.11.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc11.so +%{oradir}/lib/ojdbc5.jar +%{oradir}/lib/ojdbc6.jar +%{oradir}/lib/xstreams.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi +%{oradir}/bin/adrci + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo %{topdir}/sdk/SDK_README %{topdir}/sdk/ott +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{oradir}/lib/ottclasses.zip +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%doc %{topdir}/SQLPLUS_README +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%doc %{topdir}/JDBC_README +%{oradir}/lib/libheteroxa11.so +%{oradir}/lib/orai18n-mapping.jar +%{oradir}/lib/orai18n.jar + +%files -n oracle-instantclient-odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Unix.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.11.1 + +%files -n oracle-instantclient-tools +%defattr(-,root,root) +%doc %{topdir}/TOOLS_README +%{_bindir}/wrc +%{oradir}/bin/wrc + +%changelog +* Sat Dec 26 2009 Remi Collet <RPMS@famillecollet.com> 11.2.0.1-1.###.remi +- update to 11.2.0.1 + +* Sun Nov 30 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.7-1.###.remi +- update to 11.1.0.7 +- add tools sub-package + +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- improved split spec + +* Tue Oct 30 2007 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- split spec for i386, x86_64 and ppc +- update to 11.1.0.6.0 + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient-11.2-x86_64.spec b/oracle-instantclient-11.2-x86_64.spec new file mode 100644 index 0000000..edbee7f --- /dev/null +++ b/oracle-instantclient-11.2-x86_64.spec @@ -0,0 +1,270 @@ +# SPEC file for x86_64 version of +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc +# oracle-instantclient-tools +# oracle-instantclient-odbc +# oracle-instantclient-tools + +%define __arch_install_post /bin/true + +%global mainver 11.2 + +Summary: Instant Client for Oracle Database 11g +Name: oracle-instantclient-x86_64 +Version: 11.2.0.1.0 +Release: 1%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: oracle-instantclient11.2-basic-%{version}-1.x86_64.zip +Source1: oracle-instantclient11.2-jdbc-%{version}-1.x86_64.zip +Source2: oracle-instantclient11.2-odbc-%{version}-1.x86_64.zip +Source3: oracle-instantclient11.2-sdk-%{version}-1.x86_64.zip +Source4: oracle-instantclient11.2-sqlplus-%{version}-1.x86_64.zip +Source5: oracle-instantclient11.2-tools-%{version}-1.x86_64.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 +NoSource: 4 +NoSource: 5 + +Buildroot: %{_tmppath}/%{name}-root +BuildArch: x86_64 + +%define topdir instantclient_11_2 +%define oradir %{_libdir}/oracle/%{mainver}/client64 +%define incdir %{_includedir}/oracle/%{mainver}/client64 + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-basic +Summary: Instant Client for Oracle Database 11g +Group: Applications/File + +%description -n oracle-instantclient-basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package -n oracle-instantclient-devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package -n oracle-instantclient-jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package -n oracle-instantclient-odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle %{version} ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package -n oracle-instantclient-sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%package -n oracle-instantclient-tools +Summary: Tools for Oracle Database 11g +Group: Applications/File +Requires: oracle-instantclient-basic = %version + +%description -n oracle-instantclient-tools +This package provides tools to be used with the Oracle Database. +It currently includes +- wrc : a client to be used with the Database Replay feature + +%prep +rm -rf %{topdir} + +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} +unzip %{SOURCE5} + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.11.1 %{buildroot}%{oradir}/lib +%__install libnnz11.so %{buildroot}%{oradir}/lib +%__install libocci.so.11.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc11.so %{buildroot}%{oradir}/lib +%__install ojdbc5.jar %{buildroot}%{oradir}/lib +%__install ojdbc6.jar %{buildroot}%{oradir}/lib +%__install xstreams.jar %{buildroot}%{oradir}/lib +%__install adrci %{buildroot}%{oradir}/bin +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} +%__install sdk/ottclasses.zip %{buildroot}%{oradir}/lib + +ln -s libocci.so.11.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.11.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa11.so %{buildroot}%{oradir}/lib +%__install orai18n-mapping.jar %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.11.1 %{buildroot}%{oradir}/lib + +# Tools +%__install wrc %{buildroot}%{oradir}/bin +ln -sf %{oradir}/bin/wrc %{buildroot}%{_bindir}/wrc + +%clean +rm -rf %{buildroot} + +%post -n oracle-instantclient-basic +/sbin/ldconfig + +%postun -n oracle-instantclient-basic +/sbin/ldconfig + +%files -n oracle-instantclient-basic +%defattr(-,root,root) +%doc %{topdir}/BASIC_README +%{oradir}/lib/libclntsh.so.11.1 +%{oradir}/lib/libnnz11.so +%{oradir}/lib/libocci.so.11.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc11.so +%{oradir}/lib/ojdbc5.jar +%{oradir}/lib/ojdbc6.jar +%{oradir}/lib/xstreams.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi +%{oradir}/bin/adrci + +%files -n oracle-instantclient-devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo %{topdir}/sdk/SDK_README %{topdir}/sdk/ott +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{oradir}/lib/ottclasses.zip +%{incdir}/* + +%post -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%postun -n oracle-instantclient-sqlplus +/sbin/ldconfig + +%files -n oracle-instantclient-sqlplus +%defattr(-,root,root) +%doc %{topdir}/SQLPLUS_README +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files -n oracle-instantclient-jdbc +%defattr(-,root,root) +%doc %{topdir}/JDBC_README +%{oradir}/lib/libheteroxa11.so +%{oradir}/lib/orai18n-mapping.jar +%{oradir}/lib/orai18n.jar + +%files -n oracle-instantclient-odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Unix.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.11.1 + +%files -n oracle-instantclient-tools +%defattr(-,root,root) +%doc %{topdir}/TOOLS_README +%{_bindir}/wrc +%{oradir}/bin/wrc + +%changelog +* Fri Feb 12 2010 Remi Collet <RPMS@famillecollet.com> 11.2.0.1.0-1.###.remi +- update to 11.2.0.1.0 + +* Sat Dec 26 2009 Remi Collet <RPMS@famillecollet.com> 11.2.0.0.2-1.###.remi +- update to 11.2.0.0.2 + +* Thu Dec 04 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.7-1.###.remi +- update to 11.1.0.7 +- add tools sub-package + +* Sat Sep 13 2008 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- improved split spec + +* Tue Dec 11 2007 Remi Collet <RPMS@famillecollet.com> 11.1.0.6-1.###.remi +- version 11.1.0.6 + +* Fri Nov 09 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc8.remi +- split spec for i386, x86_64 and ppc +- F8 rebuid + +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM diff --git a/oracle-instantclient.spec b/oracle-instantclient.spec new file mode 100644 index 0000000..dc45445 --- /dev/null +++ b/oracle-instantclient.spec @@ -0,0 +1,230 @@ +# SPEC file for +# oracle-instantclient-basic +# oracle-instantclient-devel +# oracle-instantclient-sqlplus +# oracle-instantclient-jdbc + +%define __arch_install_post /bin/true + +Summary: Instant Client for Oracle Database 10g +Name: oracle-instantclient +Version: 10.2.0.3 +Release: 3%{?dist} +License: Oracle +Group: Applications/File +Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html + +Source0: instantclient-basic-linux32-%{version}-20061115.zip +Source1: instantclient-jdbc-linux32-%{version}-20061115.zip +Source2: instantclient-odbc-linux32-%{version}-20061115.zip +Source3: instantclient-sdk-linux32-%{version}-20061115.zip +Source4: instantclient-sqlplus-linux32-%{version}-20061115.zip + +Source10: instantclient-basic-linux-x86-64-%{version}-20070103.zip +Source11: instantclient-jdbc-linux-x86-64-%{version}-20070103.zip +Source12: instantclient-odbc-linux-x86-64-%{version}-20070103.zip +Source13: instantclient-sdk-linux-x86-64-%{version}-20070103.zip +Source14: instantclient-sqlplus-linux-x86-64-%{version}-20070103.zip +NoSource: 0 +NoSource: 1 +NoSource: 2 +NoSource: 3 +NoSource: 4 +NoSource: 10 +NoSource: 11 +NoSource: 12 +NoSource: 13 +NoSource: 14 + +Buildroot: %{_tmppath}/%{name}-root +BuildArch: i386 x86_64 + +%define topdir instantclient_10_2 +%define oradir %{_libdir}/oracle/%{version}/client +%define incdir %{_includedir}/oracle/%{version}/client + +%description +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package basic +Summary: Instant Client for Oracle Database 10g +Group: Applications/File + +%description basic +Base files for Instant Client. Support for OCI, OCCI, +and JDBC-OCI applications. + +%package devel +Summary: Development headers for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description devel +Additional header files and an example Makefile for developing Oracle +applications with Instant Client. + +%package jdbc +Summary: Supplemental JDBC features under Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description jdbc +Additional support for XA, Internationalization, +and RowSet operations under JDBC. + +%package odbc +Summary: Oracle ODBC Instant Client for Linux +Group: Applications/File +Requires: %{name}-basic = %version + +%description odbc +Oracle ODBC Instant Client for Linux complies with +ODBC 3.52 specifications. It is based on features of +Oracle 10.2.0.1.0 ODBC driver for Windows, without +the need for a traditional ORACLE_HOME installation. + +%package sqlplus +Summary: SQL*Plus for Instant Client +Group: Applications/File +Requires: %{name}-basic = %version + +%description sqlplus +Additional libraries and executable for running +SQL*Plus with Instant Client. + +%prep +rm -rf %{topdir} + +%ifarch i386 +unzip %{SOURCE0} +unzip %{SOURCE1} +unzip %{SOURCE2} +unzip %{SOURCE3} +unzip %{SOURCE4} +%else +unzip %{SOURCE10} +unzip %{SOURCE11} +unzip %{SOURCE12} +unzip %{SOURCE13} +unzip %{SOURCE14} +%endif + +%install +rm -rf %{buildroot} +cd %{topdir} + +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}%{oradir}/bin +%{__mkdir_p} %{buildroot}%{oradir}/lib +%{__mkdir_p} %{buildroot}%{incdir} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/ld.so.conf.d + +# Basic +%__install libclntsh.so.10.1 %{buildroot}%{oradir}/lib +%__install libnnz10.so %{buildroot}%{oradir}/lib +%__install libocci.so.10.1 %{buildroot}%{oradir}/lib +%__install libociei.so %{buildroot}%{oradir}/lib +%__install libocijdbc10.so %{buildroot}%{oradir}/lib +%__install classes12.jar %{buildroot}%{oradir}/lib +%__install ojdbc14.jar %{buildroot}%{oradir}/lib +%__install genezi %{buildroot}%{oradir}/bin + +echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf + +# Devel +%__install -m 644 sdk/include/*.h %{buildroot}%{incdir} + +ln -s libocci.so.10.1 %{buildroot}%{oradir}/lib/libocci.so +ln -s libclntsh.so.10.1 %{buildroot}%{oradir}/lib/libclntsh.so + +# SQL*Plus +%__install sqlplus %{buildroot}%{oradir}/bin +%__install glogin.sql %{buildroot}%{oradir}/lib +%__install libsqlplus.so %{buildroot}%{oradir}/lib +%__install libsqlplusic.so %{buildroot}%{oradir}/lib + +ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus + +# JDBC +%__install libheteroxa10.so %{buildroot}%{oradir}/lib +%__install orai18n.jar %{buildroot}%{oradir}/lib + +# ODBC +%__install libsqora.so.10.1 %{buildroot}%{oradir}/lib + +%clean +rm -rf %{buildroot} + +%post basic +/sbin/ldconfig + +%postun basic +/sbin/ldconfig + +%files basic +%defattr(-,root,root) +%{oradir}/lib/libclntsh.so.10.1 +%{oradir}/lib/libnnz10.so +%{oradir}/lib/libocci.so.10.1 +%{oradir}/lib/libociei.so +%{oradir}/lib/libocijdbc10.so +%{oradir}/lib/classes12.jar +%{oradir}/lib/ojdbc14.jar +%{_sysconfdir}/ld.so.conf.d/%{name}.conf +%{oradir}/bin/genezi + +%files devel +%defattr(-,root,root) +%doc %{topdir}/sdk/demo +%{oradir}/lib/libclntsh.so +%{oradir}/lib/libocci.so +%{incdir}/* + +%post sqlplus +/sbin/ldconfig + +%postun sqlplus +/sbin/ldconfig + +%files sqlplus +%defattr(-,root,root) +%{_bindir}/sqlplus +%{oradir}/bin/sqlplus +%{oradir}/lib/glogin.sql +%{oradir}/lib/libsqlplus.so +%{oradir}/lib/libsqlplusic.so + +%files jdbc +%defattr(-,root,root) +%{oradir}/lib/libheteroxa10.so +%{oradir}/lib/orai18n.jar + +%files odbc +%defattr(-,root,root) +%doc %{topdir}/ODBC_IC_Readme_Linux.html %{topdir}/ODBCRelnotesJA.htm %{topdir}/ODBCRelnotesUS.htm +%doc %{topdir}/odbc_update_ini.sh +%{oradir}/lib/libsqora.so.10.1 + +%changelog +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 10.2.0.3-3.###.remi +- added genezi to basic package + +* Tue May 22 2007 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-3.fc6.remi +- merge 32/64 spec file for mock + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.3-1.fc6.remi +- update to 10.2.0.3 + +* Tue Nov 14 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-3.fc6.remi +- FC6.x86_64 build (conditional targetname & datever) + +* Thu Oct 26 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc6.remi +- FC6.i386 build + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-2.fc5.remi +- Switch back to defaut oracle strategie. +- add /etc/ld.so.conf.d/oracle-instantclient.conf + +* Fri Jun 23 2006 Remi Collet <RPMS@famillecollet.com> 10.2.0.2-1.fc5.remi +- initial RPM |