From 154c3b498e8d208cce8a259e3579c72281a8430aad037af09b832cac1260a357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Mon, 3 Feb 2014 17:58:37 +0000 Subject: [PATCH] - Initial version 0.9.11 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/lmdb?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + liblmdb.patch | 24 +++++++++ lmdb-0.9.11.tar.bz2 | 3 ++ lmdb.changes | 5 ++ lmdb.spec | 120 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 liblmdb.patch create mode 100644 lmdb-0.9.11.tar.bz2 create mode 100644 lmdb.changes create mode 100644 lmdb.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/liblmdb.patch b/liblmdb.patch new file mode 100644 index 0000000..51f4208 --- /dev/null +++ b/liblmdb.patch @@ -0,0 +1,24 @@ +diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-liblmdb/Makefile ./Makefile +--- ../orig-liblmdb/Makefile 2014-01-31 09:23:13.341427766 +0100 ++++ ./Makefile 2014-02-03 14:50:45.989580826 +0100 +@@ -23,7 +23,7 @@ + CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS) + LDLIBS = + SOLIBS = +-prefix = /usr/local ++prefix = /usr + + ######################################################################## + +@@ -36,9 +36,9 @@ + + install: $(ILIBS) $(IPROGS) $(IHDRS) + for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done +- for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done ++ for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/$(LIB); done + for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done +- for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done ++ for f in $(IDOCS); do cp $$f $(DESTDIR)/$(MANDIR)/man1; done + + clean: + rm -rf $(PROGS) *.[ao] *.so *~ testdb diff --git a/lmdb-0.9.11.tar.bz2 b/lmdb-0.9.11.tar.bz2 new file mode 100644 index 0000000..bf262a9 --- /dev/null +++ b/lmdb-0.9.11.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72d1a53bdd407ad7fdcb6e557737f6a4e49ba2002af801a4f46b016435107d2f +size 93971 diff --git a/lmdb.changes b/lmdb.changes new file mode 100644 index 0000000..a158a63 --- /dev/null +++ b/lmdb.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 3 17:58:23 UTC 2014 - kkaempf@suse.com + +- Initial version 0.9.11 + diff --git a/lmdb.spec b/lmdb.spec new file mode 100644 index 0000000..6bbd224 --- /dev/null +++ b/lmdb.spec @@ -0,0 +1,120 @@ +# +# spec file for package lmdb +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: lmdb +%define libname liblmdb +%define libsoname %{libname}3 + +License: OLDAP-2.8 +Group: Productivity/Databases/Tools +Summary: lmdb is a tiny database with some great capabilities +Version: 0.9.11 +Release: 0 +Url: http://symas.com/mdb +Source: %{name}-%{version}.tar.bz2 +# fix prefix and libdir +Patch: liblmdb.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%description +lmdb is a tiny database with some great capabilities: + +LMDB is a tiny database with some great capabilities: +Ordered-map interface (keys are always sorted, supports range lookups) +Fully transactional, full ACID semantics with MVCC. +Reader/writer transactions: readers don't block writers and writers +don't block readers. Writers are fully serialized, so writes are +always deadlock-free. +Read transactions are extremely cheap, and can be performed using no +mallocs or any other blocking calls. +Supports multi-thread and multi-process concurrency, environments may +be opened by multiple processes on the same host. +Multiple sub-databases may be created with transactions covering all +sub-databases. +Memory-mapped, allowing for zero-copy lookup and iteration. +Maintenance-free, no external process or background cleanup/compaction +required. +No application-level caching. LMDB fully exploits the operating +system's buffer cache. +32KB of object code and 6KLOC of C. +Licensed under the OpenLDAP Public License +It is a read-optimized design and performs reads several times faster +than other DB engines, several orders of magnitude faster in many +cases. It is not a write-optimized design; for heavy random write +workloads other DB designs may be more suitable. + + +%package -n %{libsoname} +Summary: Shared library of cfengine +Group: System/Libraries +Provides: %{libname}1 +Obsoletes: %{libname}1 +%if 0%{?suse_version} == 1010 +Requires: glibc +%endif + +%description -n %{libsoname} +This package contains the shared libpromises (cfengine) library. + +%package devel +Summary: Development package for libpromises +Group: Development/Libraries/C and C++ +Provides: %{name}-devel < %{version} +Obsoletes: %{name}-devel < %{version} +Requires: %{libsoname} = %{version} +Requires: glibc-devel + +%description devel +A high-speed character set detection library + +This package contains the files needed to compile programs that use the +libpromises library. + + +%prep +%setup -q -n %{libname} +%patch -p1 + +%build +MANDIR=%{_mandir} LIB=%{_lib} %{__make} + +%install +install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{_libdir} +install -d %{buildroot}%{_mandir}/man1 +install -d %{buildroot}%{_prefix}/include +MANDIR=%{_mandir} LIB=%{_lib} %{__make} install DESTDIR=%{buildroot} +install lmdb.h %{buildroot}%{_prefix}/include +rm -f %{buildroot}%{_libdir}/*.a + +%files +%defattr(-,root,root) +%doc CHANGES +%doc COPYRIGHT +%doc LICENSE +%{_bindir}/* +%doc %{_mandir}/man1/* + +%files -n %{libsoname} +%defattr(-,root,root) +%{_libdir}/*.so + +%files devel +%defattr(-,root,root) +%{_prefix}/include/* + +%changelog