]> git.pld-linux.org Git - packages/rocksdb.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Oct 2014 06:24:43 +0000 (08:24 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Oct 2014 06:24:43 +0000 (08:24 +0200)
rocksdb-libdir.patch [new file with mode: 0644]
rocksdb.spec [new file with mode: 0644]

diff --git a/rocksdb-libdir.patch b/rocksdb-libdir.patch
new file mode 100644 (file)
index 0000000..ce3a213
--- /dev/null
@@ -0,0 +1,31 @@
+--- rocksdb-rocksdb-3.5.1/Makefile.orig        2014-10-08 19:21:10.000000000 +0200
++++ rocksdb-rocksdb-3.5.1/Makefile     2014-10-18 22:15:15.521010930 +0200
+@@ -51,22 +51,23 @@
+ #-------------------------------------------------
+ # make install related stuff
+ INSTALL_PATH ?= /usr/local
++INSTALL_LIBDIR ?= $(INSTALL_PATH)/lib
+ uninstall:
+       @rm -rf $(INSTALL_PATH)/include/rocksdb
+-      @rm -rf $(INSTALL_PATH)/lib/$(LIBRARY)
+-      @rm -rf $(INSTALL_PATH)/lib/$(SHARED)
++      @rm -rf $(INSTALL_LIBDIR)/$(LIBRARY)
++      @rm -rf $(INSTALL_LIBDIR)/$(SHARED)
+ install:
+-      @install -d $(INSTALL_PATH)/lib
++      @install -d $(INSTALL_LIBDIR)
+       @for header_dir in `find "include/rocksdb" -type d`; do \
+               install -d $(INSTALL_PATH)/$$header_dir; \
+       done
+       @for header in `find "include/rocksdb" -type f -name *.h`; do \
+               install -C -m 644 $$header $(INSTALL_PATH)/$$header; \
+       done
+-      @[ ! -e $(LIBRARY) ] || install -C -m 644 $(LIBRARY) $(INSTALL_PATH)/lib
+-      @[ ! -e $(SHARED) ] || install -C -m 644 $(SHARED) $(INSTALL_PATH)/lib
++      @[ ! -e $(LIBRARY) ] || install -C -m 644 $(LIBRARY) $(INSTALL_LIBDIR)
++      @[ ! -e $(SHARED) ] || install -C -m 755 $(SHARED) $(INSTALL_LIBDIR)
+ #-------------------------------------------------
+ WARNING_FLAGS = -Wall -Werror -Wsign-compare
diff --git a/rocksdb.spec b/rocksdb.spec
new file mode 100644 (file)
index 0000000..1c529ee
--- /dev/null
@@ -0,0 +1,88 @@
+Summary:       RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
+Summary(pl.UTF-8):     RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
+Name:          rocksdb
+Version:       3.5.1
+Release:       1
+License:       BSD
+Group:         Libraries
+Source0:       https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
+# Source0-md5: 1a742e47b427296644afce1d216995f8
+Patch0:                %{name}-libdir.patch
+URL:           http://rocksdb.org/
+BuildRequires: bzip2-devel
+BuildRequires: gflags-devel
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: libtcmalloc-devel
+BuildRequires: lz4-devel
+BuildRequires: snappy-devel
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
+
+%description -l pl.UTF-8
+RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
+
+%package devel
+Summary:       Header files for RocksDB library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki RocksDB
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libstdc++-devel >= 6:4.7
+
+%description devel
+Header files for RocksDB library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki RocksDB.
+
+%package static
+Summary:       Static RocksDB library
+Summary(pl.UTF-8):     Statyczna biblioteka RocksDB
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static RocksDB library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka RocksDB.
+
+%prep
+%setup -q -n %{name}-%{name}-%{version}
+%patch0 -p1
+
+%build
+%{__make} all shared_lib \
+       CC="%{__cc}" \
+       CXX="%{__cxx}" \
+       OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
+       WARNING_FLAGS="%{rpmcppflags} -Wall"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
+       INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
+%attr(755,root,root) %{_libdir}/librocksdb.so
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/*
+%{_includedir}/rocksdb
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/librocksdb.a
This page took 0.07401 seconds and 4 git commands to generate.