1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
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
|