blob: 6182ee9872df3c487661aeb7870e1e02f38aaa2f (
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
57
58
|
Name: wiredtiger
Version: 2.3.0
Release: 1%{?dist}
Summary: WiredTiger data storage engine
Group: Development/Libraries
License: GPLV2 or GPLV3
URL: www.wiredtiger.com
Source0: http://source.wiredtiger.com/releases/%{name}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python-devel java-devel
Requires: jemalloc
%description
WiredTiger is a data storage engine that provides APIs for efficiently
storing data in highly concurrent applications. It includes functionality
for automatically maintaining indexes. It implements both row and column
store formats - so that all types of data can be stored space efficiently.
WiredTiger is a library that can be accessed via C, Python and Java APIs.
%prep
%autosetup
%build
%configure --enable-java --enable-bzip2 --enable-snappy --enable-zlib
# Stop the build setting up an rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# Need to resolve make install with --enable-python before we can
# install the python API.
# python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE NEWS
%{_bindir}/*
%{_datadir}/*
%{_includedir}/*
%{_libdir}/*
%changelog
|