Bump to leveldb 1.22 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified sandbox/backup/leveldb_1.22_20231221 sandbox/dh0128.kwak/leveldb_1.22 tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.105419 accepted/tizen/6.0/unified/hotfix/20201102.234310 accepted/tizen/6.0/unified/hotfix/20201103.045510 accepted/tizen/6.5/unified/20211029.013308 accepted/tizen/7.0/unified/20221110.060844 accepted/tizen/7.0/unified/hotfix/20221116.110930 accepted/tizen/8.0/unified/20231005.095017 accepted/tizen/unified/20200227.121059 submit/tizen/20200226.015052 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5/20211028.163501 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 26 Feb 2020 01:48:50 +0000 (10:48 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 26 Feb 2020 01:48:50 +0000 (10:48 +0900)
Change-Id: Ia7b614094172628c6a3385e9218cb33a071d9daf

.gitignore [deleted file]
packaging/leveldb.changes [new file with mode: 0644]
packaging/leveldb.manifest [new file with mode: 0644]
packaging/leveldb.pc [new file with mode: 0755]
packaging/leveldb.spec [new file with mode: 0644]
packaging/memenv.pc [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index c4b2425..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# Editors.
-*.sw*
-.vscode
-.DS_Store
-
-# Build directory.
-build/
-out/
diff --git a/packaging/leveldb.changes b/packaging/leveldb.changes
new file mode 100644 (file)
index 0000000..3ad8b0f
--- /dev/null
@@ -0,0 +1,6 @@
+* Sun Aug 25 2013 Chengwei Yang <chengwei.yang@intel.com>
+- Remove debian packaging stuff
+
+* Sat May 18 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130517.051247@2a95e52
+- Fixed build on 64 bit systems
+
diff --git a/packaging/leveldb.manifest b/packaging/leveldb.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/leveldb.pc b/packaging/leveldb.pc
new file mode 100755 (executable)
index 0000000..521f58a
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libleveldb
+Description: LevelDB Library
+Version: 1.1
+Libs: -L${libdir} -lleveldb
+Cflags: -I${includedir}
diff --git a/packaging/leveldb.spec b/packaging/leveldb.spec
new file mode 100644 (file)
index 0000000..57214da
--- /dev/null
@@ -0,0 +1,81 @@
+Name:          leveldb
+Summary:    A fast key-value storage library
+Version:       1.22
+Release:    1
+Group:      System/Libraries
+License:    BSD-2.0
+Source0:    %{name}-%{version}.tar.gz
+Source1:    leveldb.pc 
+Source1001:    leveldb.manifest
+
+BuildRequires: cmake
+
+%description
+LevelDB is a fast key-value storage library written at Google
+that provides an ordered mapping from string keys to string values.
+
+
+%package -n libleveldb
+Summary:   A fast key-value storage library
+Group:     System/Libraries
+
+%description -n libleveldb
+LevelDB is a fast key-value storage library written at Google
+that provides an ordered mapping from string keys to string values.
+
+
+%package devel
+Summary:   A fast key-value storage library - Development
+Group:     Development/Libraries
+Requires:   libleveldb
+
+%description devel
+LevelDB is a fast key-value storage library written at Google
+that provides an ordered mapping from string keys to string values.
+
+Development Files.
+
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+# LTO doesn't work with --as-needed
+export CFLAGS=$(echo $CFLAGS | sed -e '/-flto/s/as-needed/no-as-needed/')
+export CXXFLAGS=$(echo $CXXFLAGS | sed -e '/-flto/s/as-needed/no-as-needed/')
+
+mkdir build
+pushd build
+cmake -DCMAKE_BUILD_TYPE=Release \
+      -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_rootprefix} \
+      -DBUILD_SHARED_LIBS=True .. 
+cmake --build .
+popd
+
+%install
+pushd build
+%{__make} install
+popd
+rm -rf %{buildroot}%{_libdir}/cmake
+install -D -m 644 %{SOURCE1} %{buildroot}/%{_libdir}/pkgconfig/leveldb.pc
+
+%post -p /sbin/ldconfig -n libleveldb
+
+%postun -p /sbin/ldconfig -n libleveldb
+
+
+%files -n libleveldb
+%manifest %{name}.manifest
+%license LICENSE
+%defattr(-,root,root,-)
+%{_libdir}/libleveldb.so.*
+
+
+%files devel
+%manifest %{name}.manifest
+%license LICENSE
+
+%{_libdir}/libleveldb.so
+%{_includedir}/leveldb/*.h
+%{_libdir}/pkgconfig/leveldb.pc
diff --git a/packaging/memenv.pc b/packaging/memenv.pc
new file mode 100755 (executable)
index 0000000..a456ce8
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libmemenv
+Description: LevelDB-MemEnv Library
+Version: 1.1
+Libs: -L${libdir} -lmemenv
+Cflags: -I${includedir}