Tizen 2.0 Release 2.0_release
authorHyungKyu Song <hk76.song@samsung.com>
Thu, 14 Feb 2013 12:40:11 +0000 (21:40 +0900)
committerHyungKyu Song <hk76.song@samsung.com>
Thu, 14 Feb 2013 12:40:11 +0000 (21:40 +0900)
Makefile
README
leveldb.manifest [new file with mode: 0644]
packaging/leveldb.spec [new file with mode: 0644]

index eb093a635a4c0a11b6800ea47b40a37e057ceee6..889a50a200dff4074d25004b7f4a56bdca218934 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,9 @@ CC = g++
 # Uncomment exactly one of the lines labelled (A), (B), and (C) below
 # to switch between compilation modes.
 
-OPT ?= -O2 -DNDEBUG       # (A) Production use (optimized mode)
+OPT ?= -O2 -DNDEBUG       # (A) Production use (optimized mode)
 # OPT ?= -g2              # (B) Debug mode, w/ full line-level debugging symbols
-OPT ?= -O2 -g2 -DNDEBUG # (C) Profiling mode: opt, but w/debugging symbols
+OPT ?= -O2 -g2 -DNDEBUG # (C) Profiling mode: opt, but w/debugging symbols
 #-----------------------------------------------
 
 # detect what platform we're building on
@@ -50,7 +50,7 @@ srcdir = .
 DESTDIR=$(CURDIR)/debian/tmp
 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
 
-CFLAGS = -c -fPIC -I. -I./include $(PORT_CFLAGS) $(PLATFORM_CFLAGS) $(OPT) $(SNAPPY_CFLAGS)
+CFLAGS = -c -fPIC -I. -I./include $(PORT_CFLAGS) $(PLATFORM_CFLAGS) $(OPT) $(SNAPPY_CFLAGS) -fvisibility=hidden -fvisibility-inlines-hidden
 
 LDFLAGS += $(PLATFORM_LDFLAGS) $(SNAPPY_LDFLAGS) $(GOOGLE_PERFTOOLS_LDFLAGS)
 
diff --git a/README b/README
index 3618adeeedbea04a14e00d5a1ef33dd4f0a7be06..06e625cbfef5eaa290fa82bbfaff014310ea71a1 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-leveldb: A key-value store
+leveldb: A key-value store.
 Authors: Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com)
 
 The code under this directory implements a system for maintaining a
@@ -49,3 +49,4 @@ include/env.h
 include/table.h
 include/table_builder.h
     Lower-level modules that most clients probably won't use directly
+
diff --git a/leveldb.manifest b/leveldb.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
diff --git a/packaging/leveldb.spec b/packaging/leveldb.spec
new file mode 100644 (file)
index 0000000..eb794f5
--- /dev/null
@@ -0,0 +1,45 @@
+Name:          leveldb
+Summary:    leveldb library
+Version:       1.1
+Release:    1
+Group:      libs
+License:    Google
+Source0:    %{name}-%{version}.tar.gz
+
+%description
+Description: leveldb
+
+
+%package -n libleveldb
+Summary:   leveldb library.
+Group:     Development/Libraries
+       
+Provides: libleveldb.so        
+Provides: libmemenv.so
+
+%description -n libleveldb
+Description: leveldb library.
+
+%prep
+%setup -q
+
+%build
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%files -n libleveldb
+%manifest leveldb.manifest
+%defattr(-,root,root,-)
+%{_libdir}/libleveldb.so
+%{_libdir}/libleveldb.so.0
+%{_libdir}/libleveldb.so.1.1.0
+%{_libdir}/libmemenv.so
+%{_libdir}/libmemenv.so.0
+%{_libdir}/libmemenv.so.1.1.0
+%{_libdir}/pkgconfig/leveldb.pc
+%{_libdir}/pkgconfig/memenv.pc
+%{_includedir}/leveldb/*.h
+%{_includedir}/helpers/memenv/*.h