path: root/libcouchbase.spec
diff options
authorRemi Collet <>2013-04-15 09:07:33 +0200
committerRemi Collet <>2013-04-15 09:07:33 +0200
commita44ea76e53c0b1fe6f4ca840e267246c9c209062 (patch)
tree81daa2431a6ae878a677722b287ed92dfdd83598 /libcouchbase.spec
libcouchbase: new package (WIP)
Diffstat (limited to 'libcouchbase.spec')
1 files changed, 111 insertions, 0 deletions
diff --git a/libcouchbase.spec b/libcouchbase.spec
new file mode 100644
index 0000000..2305a49
--- /dev/null
+++ b/libcouchbase.spec
@@ -0,0 +1,111 @@
+%global gh_owner couchbase
+%global gh_commit b2ad9312dfe25c792b03231166c80cf5761cafdd
+%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
+# Tests require some need which are downloaded during make
+%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+Name: libcouchbase
+Version: 2.0.5
+Release: 1%{?dist}
+Summary: Couchbase client library
+Group: System Environment/Libraries
+License: ASL 2.0
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: autoconf
+BuildRequires: cyrus-sasl-devel
+The C library provides fast access to documents in Couchbase Server 2.0.
+With JSON documents and Couchbase server 2.0 you have new ways to index
+and query data stored in the cluster through views. This client library,
+libcouchbase, also simplifies requests to Views through its handling of
+HTTP transport.
+This Couchbase Client Library for C and C++ provides a complete interface
+to the functionality of Couchbase Server.
+%package devel
+Summary: Development files for Couchbase client library
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+%package tools
+Summary: Couchbase tools
+Group: Applications/System
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%description tools
+The %{name}-tools package contains some command line tools to manage
+a Couchbase Server.
+%setup -qn %{name}-%{gh_commit}
+cat <<EOF | tee m4/version.m4
+m4_define([VERSION_NUMBER], [%{version}])
+autoreconf -i --force
+%{configure} \
+%if ! %{with_tests}
+ --disable-tests \
+ --disable-couchbasemock \
+ --enable-system-libsasl
+make %{?_smp_mflags} V=1
+make install DESTDIR=%{buildroot}
+# Remove uneeded files
+rm -f %{buildroot}%{_libdir}/*.la
+# Plugins
+%files devel
+%files tools
+%if %{with_tests}
+: check disabled, missing '--with tests' option
+* Sun Apr 14 2013 Remi Collet <> - 2.0.5-1
+- Initial package