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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
|
# SPEC file for x86_64 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 major 12
%global mainver 12.1
Summary: Instant Client for Oracle Database 11g
Name: oracle-instantclient-x86_64
Version: 12.1.0.2.0
Release: 2%{?dist}
License: Oracle
Group: Applications/File
Url: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
Source0: instantclient-basic-linux.x64-%{version}.zip
Source1: instantclient-jdbc-linux.x64-%{version}.zip
Source2: instantclient-odbc-linux.x64-%{version}.zip
Source3: instantclient-sdk-linux.x64-%{version}.zip
Source4: instantclient-sqlplus-linux.x64-%{version}.zip
Source5: instantclient-tools-linux.x64-%{version}.zip
Source6: instantclient-precomp-linux.x64-%{version}.zip
NoSource: 0
NoSource: 1
NoSource: 2
NoSource: 3
NoSource: 4
NoSource: 5
NoSource: 6
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: x86_64
%global topdir instantclient_12_1
%global oradir %{_libdir}/oracle/%{mainver}/client64
%global 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%{?_isa} = %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%{?_isa} = %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%{?_isa} = %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%{?_isa} = %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%{?_isa} = %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
%package -n oracle-instantclient-precomp
Summary: Oracle Precompilers for Pro*C and Pro*COBOL
Group: Applications/File
Requires: oracle-instantclient-devel%{?_isa} = %version
%description -n oracle-instantclient-precomp
PRECOMP Instant Client (IC) Package contains following
components:
i) "proc" binary to precompile a Pro*C application
ii) "procob" binary to precompile a Pro*COBOL application
iii) sample configuration files, demo programs and demo
make files for building proc and procob demos and
in general any Pro*C/Pro*COBOL application.
%prep
rm -rf %{topdir}
unzip %{SOURCE0}
unzip %{SOURCE1}
unzip %{SOURCE2}
unzip %{SOURCE3}
unzip %{SOURCE4}
unzip %{SOURCE5}
unzip %{SOURCE6}
%install
rm -rf %{buildroot}
cd %{topdir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{oradir}/{bin,lib}
mkdir -p %{buildroot}%{oradir}/lib/precomp/admin
mkdir -p %{buildroot}%{incdir}
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
# Basic
install -p adrci %{buildroot}%{oradir}/bin
install -p genezi %{buildroot}%{oradir}/bin
install -p uidrvci %{buildroot}%{oradir}/bin
install -p libclntshcore.so.%{mainver} %{buildroot}%{oradir}/lib
install -p libclntsh.so.%{mainver} %{buildroot}%{oradir}/lib
install -p libnnz%{major}.so %{buildroot}%{oradir}/lib
install -p libocci.so.%{mainver} %{buildroot}%{oradir}/lib
install -p libipc1.so %{buildroot}%{oradir}/lib
install -p libmql1.so %{buildroot}%{oradir}/lib
install -p libociei.so %{buildroot}%{oradir}/lib
install -p libocijdbc%{major}.so %{buildroot}%{oradir}/lib
install -p libons.so %{buildroot}%{oradir}/lib
install -p liboramysql%{major}.so %{buildroot}%{oradir}/lib
install -p ojdbc6.jar %{buildroot}%{oradir}/lib
install -p ojdbc7.jar %{buildroot}%{oradir}/lib
install -p xstreams.jar %{buildroot}%{oradir}/lib
echo %{oradir}/lib >%{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf
# Devel
install -p -m 644 sdk/include/*.h %{buildroot}%{incdir}
install -p sdk/ottclasses.zip %{buildroot}%{oradir}/lib
install -p -m 755 sdk/ott %{buildroot}%{oradir}/bin
ln -s %{oradir}/bin/ott %{buildroot}%{_bindir}/ott
ln -s libocci.so.%{mainver} %{buildroot}%{oradir}/lib/libocci.so
ln -s libclntsh.so.%{mainver} %{buildroot}%{oradir}/lib/libclntsh.so
ln -s libclntshcore.so.%{mainver} %{buildroot}%{oradir}/lib/libclntshcore.so
# sdk/admin/oraaccess.xsd not provided in upstream RPM.
# SQL*Plus
install -p sqlplus %{buildroot}%{oradir}/bin
install -p glogin.sql %{buildroot}%{oradir}/lib
install -p libsqlplus.so %{buildroot}%{oradir}/lib
install -p libsqlplusic.so %{buildroot}%{oradir}/lib
ln -sf %{oradir}/bin/sqlplus %{buildroot}%{_bindir}/sqlplus
# JDBC
install -p libheteroxa%{major}.so %{buildroot}%{oradir}/lib
install -p orai18n-mapping.jar %{buildroot}%{oradir}/lib
install -p orai18n.jar %{buildroot}%{oradir}/lib
# ODBC
install -p libsqora.so.%{mainver} %{buildroot}%{oradir}/lib
# Tools
install -p wrc %{buildroot}%{oradir}/bin
ln -sf %{oradir}/bin/wrc %{buildroot}%{_bindir}/wrc
# Precomp
install -p -m 755 sdk/{proc,procob} %{buildroot}%{oradir}/bin
install -p -m 755 cobsqlintf.o %{buildroot}%{oradir}/lib
install -p -m 644 precomp/admin/* %{buildroot}%{oradir}/lib/precomp/admin
ln -s %{oradir}/bin/proc %{buildroot}%{_bindir}/proc
ln -s %{oradir}/bin/procob %{buildroot}%{_bindir}/procob
# Precomp-Devel
install -p -m 644 sdk/include/*.h %{buildroot}%{incdir}
%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
%dir %{oradir}
%dir %{oradir}/lib
%dir %{oradir}/bin
%{oradir}/lib/libclntshcore.so.%{mainver}
%{oradir}/lib/libclntsh.so.%{mainver}
%{oradir}/lib/libnnz%{major}.so
%{oradir}/lib/libocci.so.%{mainver}
%{oradir}/lib/libipc1.so
%{oradir}/lib/libmql1.so
%{oradir}/lib/libociei.so
%{oradir}/lib/libocijdbc%{major}.so
%{oradir}/lib/libons.so
%{oradir}/lib/liboramysql%{major}.so
%{oradir}/lib/ojdbc6.jar
%{oradir}/lib/ojdbc7.jar
%{oradir}/lib/xstreams.jar
%{_sysconfdir}/ld.so.conf.d/%{name}.conf
%{oradir}/bin/genezi
%{oradir}/bin/adrci
%{oradir}/bin/uidrvci
%files -n oracle-instantclient-devel
%defattr(-,root,root)
%doc %{topdir}/sdk/demo %{topdir}/sdk/SDK_README %{topdir}/sdk/ott
%{oradir}/lib/libclntshcore.so
%{oradir}/lib/libclntsh.so
%{oradir}/lib/libocci.so
%{oradir}/lib/ottclasses.zip
%{incdir}/ldap.h
%{incdir}/nzerror.h
%{incdir}/nzt.h
%{incdir}/occi.h
%{incdir}/occiAQ.h
%{incdir}/occiCommon.h
%{incdir}/occiControl.h
%{incdir}/occiData.h
%{incdir}/occiObjects.h
%{incdir}/oci.h
%{incdir}/oci1.h
%{incdir}/oci8dp.h
%{incdir}/ociap.h
%{incdir}/ociapr.h
%{incdir}/ocidef.h
%{incdir}/ocidem.h
%{incdir}/ocidfn.h
%{incdir}/ociextp.h
%{incdir}/ocikpr.h
%{incdir}/ocixmldb.h
%{incdir}/ocixstream.h
%{incdir}/odci.h
%{incdir}/oratypes.h
%{incdir}/ori.h
%{incdir}/orid.h
%{incdir}/orl.h
%{incdir}/oro.h
%{incdir}/ort.h
%{incdir}/xa.h
%{_bindir}/ott
%{oradir}/bin/ott
%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/libheteroxa%{major}.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
%doc %{topdir}/odbc_update_ini.sh
%doc %{topdir}/help
%{oradir}/lib/libsqora.so.%{mainver}
%files -n oracle-instantclient-tools
%defattr(-,root,root)
%doc %{topdir}/TOOLS_README
%{_bindir}/wrc
%{oradir}/bin/wrc
%files -n oracle-instantclient-precomp
%defattr(-,root,root)
%doc %{topdir}/sdk/demo %{topdir}/PRECOMP_README
%dir %{oradir}/lib
%dir %{oradir}/lib/precomp
%dir %{oradir}/lib/precomp/admin
%config %{oradir}/lib/precomp/admin/pcbcfg.cfg
%config %{oradir}/lib/precomp/admin/pcscfg.cfg
%{oradir}/lib/cobsqlintf.o
%{oradir}/bin/proc
%{oradir}/bin/procob
%{_bindir}/proc
%{_bindir}/procob
%{incdir}/sqlkpr.h
%{incdir}/sqlca.h
%{incdir}/sqlcpr.h
%{incdir}/sql2oci.h
%{incdir}/sqlda.h
%{incdir}/sqlucs2.h
%{incdir}/oraca.h
%{incdir}/sqlapr.h
%changelog
* Tue Aug 9 2016 Pierre Duperray <pierreduperray@free.fr> - 12.1.0.2.0-2
- separated devel and precomp headers and moved precomp pcbcfg.cfg file to the right folder
* Mon Aug 8 2016 Pierre Duperray <pierreduperray@free.fr> - 12.1.0.2.0-1
- unfortunately due to not yet packaged tuxedo dependancy, remove rtsora from precomp package
* Fri Jul 26 2013 Remi Collet <RPMS@famillecollet.com> 12.1.0.1.0-1
- update to 12.1.0.1.0
* Wed Feb 29 2012 Remi Collet <RPMS@famillecollet.com> 11.2.0.3.0-1
- update to 11.2.0.3.0
- add precomp subpackage
- merge some changes from Ciro Iriarte <ciro.iriarte@gmail.com>
http://track.itsolutions.com.py/pub/oracle/oracle-instantclient.spec
* Thu Nov 11 2010 Remi Collet <RPMS@famillecollet.com> 11.2.0.2.0-1
- update to 11.2.0.2.0
* 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
|