]> git.pld-linux.org Git - packages/libcouchbase.git/commitdiff
- hdrhistogram bcond auto/th/libcouchbase-3.0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 2 May 2020 20:29:47 +0000 (22:29 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 2 May 2020 20:29:47 +0000 (22:29 +0200)
libcouchbase.spec

index 2236ac4d3e23240170ffbd1e4315512fb7204cf4..f6f340ada0dc57888668eea1d76f62384810602a 100644 (file)
@@ -1,4 +1,8 @@
 # TODO: system libs (snappy, jsoncpp, cbsasl?, cliopts?)
+#
+# Conditional build:
+%bcond_with    hdrhistogram    # HdrHistogram for statistics recording
+
 Summary:       Couchbase C Client library
 Summary(pl.UTF-8):     Biblioteka kliencka C dla Couchbase
 Name:          libcouchbase
@@ -10,6 +14,7 @@ Group:                Libraries
 Source0:       https://github.com/couchbase/libcouchbase/releases/download/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 945da5e3fd12233e53d6a9912875d45d
 URL:           https://github.com/couchbase/libcouchbase
+%{?with_hdrhistogram:BuildRequires:    HdrHistogram_c-devel}
 BuildRequires: cmake >= 2.8.12
 BuildRequires: libevent-devel
 BuildRequires: libev-devel
@@ -88,6 +93,7 @@ Pliki nagłówkowe biblioteki Couchbase.
 install -d build
 cd build
 %cmake .. \
+       %{?with_hdrhistogram:LCB_USE_HDR_HISTOGRAM=ON} \
        -DLCB_NO_MOCK=ON
 
 %{__make}
This page took 0.180937 seconds and 4 git commands to generate.