]> git.pld-linux.org Git - SPECS.git/blob - libsqlora8.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / libsqlora8.spec
1 #
2 # Conditional build:
3 %bcond_without  instantclient   # build against Oracle instantclient
4
5 Summary:        Library to access Oracle databases
6 Summary(pl.UTF-8):      Biblioteka dostępu do baz danych Oracle
7 Name:           libsqlora8
8 Version:        2.3.3
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        http://www.poitschke.de/libsqlora8/%{name}-%{version}.tar.gz
13 # Source0-md5:  1fcb146f795bddad6baf2916b322c168
14 Patch0:         %{name}-format.patch
15 URL:            http://www.poitschke.de/libsqlora8/
16 %{?with_instantclient:BuildRequires:    oracle-instantclient-devel >= 8}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 libsqlora8 is simple C-library to access Oracle databases via the OCI
21 interface.
22
23 %description -l pl.UTF-8
24 libsqlora8 jest prostą biblioteką C umożliwiającą dostęp do baz danych
25 Oracle przez interfejs OCI.
26
27 %package devel
28 Summary:        Header files for libsqlora8 library
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libsqlora8
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description devel
34 Header files for libsqlora8 library.
35
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe biblioteki libsqlora8.
38
39 %package static
40 Summary:        Static libsqlora8 library
41 Summary(pl.UTF-8):      Statyczna biblioteka libsqlora8
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static libsqlora8 library.
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka libsqlora8.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54
55 %build
56 %configure \
57         --enable-sqlora1 \
58 %if %{with instantclient}
59         ORACLE_CPPFLAGS="-I/usr/include/oracle/client" \
60         --with-oraclehome=/usr \
61         --with-oraversion=10.0 \
62 %else
63         --with-oraclehome=$ORACLE_HOME \
64 %endif
65         --with-threads=posix
66
67 %{__make} -j1
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 # nothing arch-dependent (assuming same OS)
76 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/include/%{name}-config.h $RPM_BUILD_ROOT%{_includedir}
77
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsqlora8.la
80 # packaged as %doc
81 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/packages/libsqlora8
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc COPYING ChangeLog NEWS NEWS-2.2
92 %attr(755,root,root) %{_libdir}/libsqlora8-2.3.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libsqlora8-2.3.so.0
94
95 %files devel
96 %defattr(644,root,root,755)
97 %doc doc/html/*.{css,html,png}
98 %attr(755,root,root) %{_bindir}/libsqlora8-config
99 %attr(755,root,root) %{_libdir}/libsqlora8.so
100 %{_includedir}/libsqlora8-config.h
101 %{_includedir}/sqlora.h
102 %{_pkgconfigdir}/libsqlora8.pc
103 %{_aclocaldir}/aclibsqlora8.m4
104 %{_aclocaldir}/acoracle.m4
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libsqlora8.a
This page took 0.225921 seconds and 3 git commands to generate.