summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/dist/package/wiredtiger.spec
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/dist/package/wiredtiger.spec')
-rw-r--r--src/third_party/wiredtiger/dist/package/wiredtiger.spec58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/dist/package/wiredtiger.spec b/src/third_party/wiredtiger/dist/package/wiredtiger.spec
new file mode 100644
index 00000000000..4925672a3ba
--- /dev/null
+++ b/src/third_party/wiredtiger/dist/package/wiredtiger.spec
@@ -0,0 +1,58 @@
+Name: wiredtiger
+Version: 2.4.1
+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
+