# 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
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)
-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
include/table.h
include/table_builder.h
Lower-level modules that most clients probably won't use directly
+
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
--- /dev/null
+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