[packages/leveldb] - new

qboosh qboosh at pld-linux.org
Thu Oct 4 20:07:55 CEST 2012


commit c6873abb8ca7286e936d16f396d7f7101e508d0a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 4 20:09:12 2012 +0200

    - new

 leveldb.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)
---
diff --git a/leveldb.spec b/leveldb.spec
new file mode 100644
index 0000000..4bfbd15
--- /dev/null
+++ b/leveldb.spec
@@ -0,0 +1,89 @@
+# $Revision: 1.21 $, $Date: 2011/07/16 18:25:43 $
+Summary:	LevelDB - key-value store library
+Summary(pl.UTF-8):	LevelDB - biblioteka bazy danych klucz-wartość
+Name:		leveldb
+Version:	1.5.0
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: http://code.google.com/p/leveldb/downloads/list
+Source0:	http://leveldb.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	6797e19a0a9f9bb1c1ba356bf89227f0
+URL:		http://code.google.com/p/leveldb/
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtcmalloc-devel
+BuildRequires:	snappy-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LevelDB is a fast key-value storage library written at Google that
+provides an ordered mapping from string keys to string values.
+
+%description -l pl.UTF-8
+LevelDB to napisana w Google szybka biblioteka do przechowywania par
+klucz-wartość, udostępniająca uporządkowane odwzorowanie z kluczy
+będących łańcuchami znaków do wartości tego samego typu.
+
+%package devel
+Summary:	Header files for LevelDB library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki LevelDB
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel
+Requires:	libtcmalloc-devel
+Requires:	snappy-devel
+
+%description devel
+Header files for LevelDB library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki LevelDB.
+
+%package static
+Summary:	Static LevelDB library
+Summary(pl.UTF-8):	Statyczna biblioteka LevelDB
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static LevelDB library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka LevelDB.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CXX="%{__cxx}" \
+	OPT="%{rpmcflags} %{!?debug:-DNDEBUG}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+
+cp -dp libleveldb.so* libleveldb.a $RPM_BUILD_ROOT%{_libdir}
+cp -a include/leveldb $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE NEWS README TODO
+%attr(755,root,root) %{_libdir}/libleveldb.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libleveldb.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/*
+%attr(755,root,root) %{_libdir}/libleveldb.so
+%{_includedir}/leveldb
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libleveldb.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/leveldb.git/commitdiff/c6873abb8ca7286e936d16f396d7f7101e508d0a



More information about the pld-cvs-commit mailing list