summaryrefslogtreecommitdiff
path: root/packaging/ejdb.spec
blob: 4a089970ae0b8870cf45e23fc78d66c22ff868a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name:          ejdb
Version:       1.2.12
Release:       0
License:       LGPL-2.1+
Source0:       %{name}-%{version}.tar.gz
Source1001:    %{name}.manifest
Summary:       Embeddable document database
Group:         System/Database
BuildRequires: cmake
BuildRequires: pkgconfig(zlib)

%description
EJDB is the embeddable (in-process) database engine designed for
querying collections of JSON documents and persisting data. EJDB is
implemented as a C library based on Tokyo Cabinet key-value storage
engine. EJDB design is inspired by Mongodb and follows the same
philosophy, especially for the query language.

%prep
%setup -q
cp %{SOURCE1001} .

%build
mkdir build
cd build
%cmake \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    ../
make %{?_smp_mflags}

%install
(cd build; %make_install)
cat <<EOF >>documentation.list
%{_prefix}/share/doc/ejdb/Changelog
%exclude %{_prefix}/share/doc/ejdb/INSTALL
%exclude %{_prefix}/share/doc/ejdb/LICENSE
%{_prefix}/share/doc/ejdb/README
EOF

%files
%license LICENSE
%manifest %{name}.manifest
%{_bindir}/jbbmgr
%{_bindir}/jbfmgr
%{_bindir}/jbhmgr
%{_bindir}/jbtmgr
%{_libdir}/libejdb.so.1*

%docs_package

%devel_package
%files devel
%{_datadir}/ejdb/*.cmake
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc