| 1 | Summary: The Berkeley Database |
|---|
| 2 | Name: db |
|---|
| 3 | Version: 4.7.25 |
|---|
| 4 | Release: 2 |
|---|
| 5 | Group: System Environment/Base |
|---|
| 6 | License: GPLv2 |
|---|
| 7 | Distribution: LightCube OS |
|---|
| 8 | Vendor: LightCube Solutions |
|---|
| 9 | URL: http://www.oracle.com/technology/products/berkeley-db/db |
|---|
| 10 | Source: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.gz |
|---|
| 11 | Patch: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}-upstream_fixes-1.patch |
|---|
| 12 | |
|---|
| 13 | Requires: base-layout, glibc |
|---|
| 14 | |
|---|
| 15 | %package devel |
|---|
| 16 | Summary: Libraries and headers for developing with %{name} |
|---|
| 17 | Group: Development/Libraries |
|---|
| 18 | Requires: glibc-devel linux-headers gcc binutils %{name} |
|---|
| 19 | |
|---|
| 20 | %description |
|---|
| 21 | Berkeley DB is a lightweight embeddable database engine. |
|---|
| 22 | |
|---|
| 23 | %description devel |
|---|
| 24 | Libraries and headers for developing with %{name} |
|---|
| 25 | |
|---|
| 26 | %prep |
|---|
| 27 | %setup -q |
|---|
| 28 | %patch -p1 |
|---|
| 29 | |
|---|
| 30 | %build |
|---|
| 31 | cd build_unix |
|---|
| 32 | ../dist/configure --prefix=/usr --enable-compat185 \ |
|---|
| 33 | --enable-cxx --libdir=/usr/%{_lib} |
|---|
| 34 | make |
|---|
| 35 | |
|---|
| 36 | %install |
|---|
| 37 | cd build_unix |
|---|
| 38 | make docdir=/usr/share/doc/%{name}-%{version} DESTDIR=%{buildroot} install |
|---|
| 39 | find %{buildroot} -name "*.la" -exec rm -vf '{}' \; |
|---|
| 40 | |
|---|
| 41 | %clean |
|---|
| 42 | rm -rf %{buildroot} |
|---|
| 43 | |
|---|
| 44 | %files |
|---|
| 45 | %defattr(-,root,root) |
|---|
| 46 | /usr/bin/db_archive |
|---|
| 47 | /usr/bin/db_checkpoint |
|---|
| 48 | /usr/bin/db_codegen |
|---|
| 49 | /usr/bin/db_deadlock |
|---|
| 50 | /usr/bin/db_dump |
|---|
| 51 | /usr/bin/db_hotbackup |
|---|
| 52 | /usr/bin/db_load |
|---|
| 53 | /usr/bin/db_printlog |
|---|
| 54 | /usr/bin/db_recover |
|---|
| 55 | /usr/bin/db_stat |
|---|
| 56 | /usr/bin/db_upgrade |
|---|
| 57 | /usr/bin/db_verify |
|---|
| 58 | /usr/%{_lib}/libdb-4.7.a |
|---|
| 59 | /usr/%{_lib}/libdb-4.7.so |
|---|
| 60 | /usr/%{_lib}/libdb-4.so |
|---|
| 61 | /usr/%{_lib}/libdb_cxx-4.7.a |
|---|
| 62 | /usr/%{_lib}/libdb_cxx-4.7.so |
|---|
| 63 | /usr/%{_lib}/libdb_cxx-4.so |
|---|
| 64 | |
|---|
| 65 | %files devel |
|---|
| 66 | %defattr(-,root,root) |
|---|
| 67 | /usr/%{_lib}/libdb.a |
|---|
| 68 | /usr/%{_lib}/libdb.so |
|---|
| 69 | /usr/%{_lib}/libdb_cxx.a |
|---|
| 70 | /usr/%{_lib}/libdb_cxx.so |
|---|
| 71 | /usr/include/db.h |
|---|
| 72 | /usr/include/db_185.h |
|---|
| 73 | /usr/include/db_cxx.h |
|---|
| 74 | /usr/share/doc/%{name}-%{version} |
|---|
| 75 | |
|---|
| 76 | %changelog |
|---|
| 77 | * Fri Oct 30 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.7.25-2 |
|---|
| 78 | - Use FHS compatible info directories. Move documentation to devel package. |
|---|
| 79 | |
|---|
| 80 | * Fri Aug 14 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.7.25-1 |
|---|
| 81 | - Initial version |
|---|