File ocilib.spec of Package ocilib (Revision 3)
Currently displaying revision 3, show latest
x
1
%define pname ocilib
2
%define soname 3
3
Name: lib%{pname}%{soname}
4
Version: 3.8.0
5
Release: 1
6
Group: System/Libraries
7
Summary: Oracle Driver
8
Source: %{pname}-%{version}-gnu.tar.bz2
9
License: GPL
10
BuildRoot: %{_tmppath}/%{pname}-%{version}-root
11
BuildRequires: oracle-instantclient-sqlplus oracle-instantclient-devel oracle-instantclient-config
12
13
%description
14
OCILIB is an open source and cross platform Oracle Driver that delivers really fast and reliable access to Oracle databases.
15
16
%package -n lib%{pname}-devel
17
Group: Development/Libraries
18
Summary: Oracle Driver devel files
19
20
%description -n lib%{pname}-devel
21
Development headers and librarys of ocilib.
22
23
%prep
24
%setup -n %{pname}-%{version}
25
26
%build
27
export CFLAGS=`oracle-instantclient-config --cflags`
28
export LDFLAGS=`oracle-instantclient-config --libs`
29
export ORACLE_HOME=%{_libdir}/oracle/`oracle-instantclient-config --version`
30
#--with-oracle-home=Location of Oracle Installation.
31
#--with-oracle-headers-path=Location of OCI public headers.
32
#--with-oracle-lib-path=Location of OCI shared library.
33
#--with-custom-loader=Custom loader flag.
34
./configure --prefix=%{_prefix} \
35
--libdir=%{_libdir} \
36
--mandir=%{_mandir} \
37
--localstatedir=/var \
38
--sysconfdir=%{_sysconfdir} \
39
--with-oracle-headers-path=$ORACLE_HOME/client \
40
--with-oracle-lib-path=$ORACLE_HOME/client/lib
41
42
%__make
43
44
%install
45
%__make DESTDIR=%{buildroot} install
46
rm -Rf %{buildroot}%{_datadir}/doc
47
chmod -x doc/html/*
48
rm doc/html/Makefile*
49
50
%clean
51
rm -rf %{buildroot}
52
53
%post -p /sbin/ldconfig
54
55
%postun -p /sbin/ldconfig
56
57
58
%files
59
%defattr(-,root,root)
60
%doc demo doc/html
61
%{_libdir}/libocilib.so.%{version}
62
63
%files -n lib%{pname}-devel
64
%defattr(-,root,root)
65
%{_includedir}/ocilib.h
66
%{_libdir}/libocilib.a
67
%{_libdir}/libocilib.la
68
%{_libdir}/libocilib.so
69
%{_libdir}/libocilib.so.3
70
71
72
%changelog
73
* Mon Oct 25 2010 Carsten Schoene <cs@linux-administrator.com> - 3.8.0-1
74
- update to release 3.8.0
75
76
* Tue Oct 20 2009 Carsten Schoene <cs@linux-administrator.com> - 3.4.0-1
77
- initial build
78
79