]>
Commit | Line | Data |
---|---|---|
d829f5df ER |
1 | Summary: Small, easy to use Database Connection Pool Library |
2 | Name: libzdb | |
3 | Version: 3.0 | |
c7a36074 | 4 | Release: 3 |
d829f5df ER |
5 | License: GPL v3+ and MIT |
6 | Group: Libraries | |
7 | Source0: http://www.tildeslash.com/libzdb/dist/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 3bb9efff10a1f3ebc5b76c1055c48635 | |
9 | URL: http://www.tildeslash.com/libzdb/ | |
10 | BuildRequires: flex | |
11 | BuildRequires: mysql-devel | |
12 | BuildRequires: pkgconfig | |
13 | BuildRequires: postgresql-devel >= 8 | |
14 | BuildRequires: sqlite3-devel >= 3.6.12 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
da5e86ef ER |
17 | %undefine __cxx |
18 | ||
d829f5df ER |
19 | %description |
20 | The Zild C Database Library implements a small, fast, and easy to use | |
21 | database API with thread-safe connection pooling. The library can | |
22 | connect transparently to multiple database systems, has zero | |
23 | configuration and connections are specified via a standard URL scheme. | |
24 | ||
25 | %package devel | |
26 | Summary: Development files for %{name} | |
27 | Group: Development/Libraries | |
28 | Requires: %{name} = %{version}-%{release} | |
29 | ||
30 | %description devel | |
31 | This package contains libraries and header files for developing | |
32 | applications that use %{name}. | |
33 | ||
34 | %prep | |
35 | %setup -q | |
36 | ||
37 | %build | |
38 | %configure \ | |
39 | --enable-protected \ | |
40 | --enable-sqliteunlock \ | |
41 | --disable-static | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzdb.la | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc AUTHORS CHANGES COPYING README | |
61 | %attr(755,root,root) %{_libdir}/libzdb.so.*.*.* | |
62 | %ghost %{_libdir}/libzdb.so.11 | |
63 | ||
64 | %files devel | |
65 | %defattr(644,root,root,755) | |
66 | %doc doc/api-docs | |
67 | %{_includedir}/zdb | |
68 | %{_libdir}/libzdb.so | |
69 | %{_pkgconfigdir}/zdb.pc |