]> git.pld-linux.org Git - SPECS.git/blob - oracle-instantclient-sdk.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / oracle-instantclient-sdk.spec
1 # TODO:
2 # - mv .jar files to subpackage and add java dependencies
3 #
4 # NOTE:
5 # - see "URL:" for download links
6 # - if you want to build 32-bit version, you don't have to download Source1.
7 #   Just comment it out.
8 # - if you want to build 64-bit version, comment out Source0
9
10 %define         i386rel         0.1
11 %define         x8664rel        0.1.0-1
12 Summary:        SDK for Oracle Database Instant Client
13 Name:           oracle-instantclient-sdk
14 Version:        11.2
15 Release:        0.1
16 License:        OTN (proprietary, non-distributable)
17 Group:          Applications
18 Source0:        instantclient-sdk-linux32-%{version}.%{i386rel}.zip
19 # NoSource0-md5:        374e1986621cb83ec90d4714c5430473
20 Source1:        oracle-instantclient%{version}-sdk-%{version}.%{x8664rel}.x86_64.zip
21 # NoSource1-md5:        ee46ae0ec92397cb9b0cef4f48e0eda7
22 NoSource:       0
23 NoSource:       1
24 URL:            http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
25 BuildRequires:  unzip
26 ExclusiveArch:  %{ix86} %{x8664}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         srcdir  instantclient_%(echo %{version} | tr . _)
30
31 %description
32 Oracle Database Instant Client Package - SDK.
33 Additional header files and an example makefile for developing
34 Oracle applications with Instant Client.
35
36 %prep
37 %ifarch %{ix86}
38 %setup -q -c -T -b 0
39 %endif
40
41 %ifarch %{x8664}
42 %setup -q -c -T -b 1
43 %endif
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name},%{_javadir}} \
48         $RPM_BUILD_ROOT%{_includedir}/oracle/client
49
50 install %{srcdir}/sdk/ottclasses.zip $RPM_BUILD_ROOT%{_javadir}
51 install %{srcdir}/sdk/ott $RPM_BUILD_ROOT%{_bindir}
52 install %{srcdir}/sdk/include/* $RPM_BUILD_ROOT%{_includedir}/oracle/client
53 install %{srcdir}/sdk/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc %{srcdir}/sdk/SDK_README
61 #%attr(755,root,root) %{_libdir}/*.so
62 %attr(755,root,root) %{_bindir}/ott
63 %{_includedir}/oracle/client
64 %{_examplesdir}/%{name}
65 %{_javadir}/*.zip
This page took 0.100507 seconds and 3 git commands to generate.