[packages/leveldb] - added tcmalloc bcond
baggins
baggins at pld-linux.org
Tue Dec 30 21:06:31 CET 2014
commit 426abf94f3a72878232b697b54708c949e9cb9c7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Dec 30 20:06:21 2014 +0000
- added tcmalloc bcond
leveldb.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/leveldb.spec b/leveldb.spec
index 7ba8c98..6086ff4 100644
--- a/leveldb.spec
+++ b/leveldb.spec
@@ -1,3 +1,11 @@
+#
+# Conditional build:
+%bcond_without tcmalloc # don't use tcmalloc
+
+%ifarch x32
+%undefine with_tcmalloc
+%endif
+
Summary: LevelDB - key-value store library
Summary(pl.UTF-8): LevelDB - biblioteka bazy danych klucz-wartość
Name: leveldb
@@ -10,7 +18,7 @@ Source0: http://leveldb.googlecode.com/files/%{name}-%{version}.tar.gz
# Source0-md5: e91fd7cbced8b84e21f357a866ad226a
URL: http://code.google.com/p/leveldb/
BuildRequires: libstdc++-devel
-BuildRequires: libtcmalloc-devel
+%{?with_tcmalloc:BuildRequires: libtcmalloc-devel}
BuildRequires: snappy-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/leveldb.git/commitdiff/426abf94f3a72878232b697b54708c949e9cb9c7
More information about the pld-cvs-commit
mailing list