From a44ea76e53c0b1fe6f4ca840e267246c9c209062 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 15 Apr 2013 09:07:33 +0200 Subject: libcouchbase: new package (WIP) --- Makefile | 4 ++ libcouchbase.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 Makefile create mode 100644 libcouchbase.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + 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 +URL: http://www.couchbase.com/develop/c/current +Source0: https://github.com/%{gh_owner}/%{name}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: autoconf +BuildRequires: cyrus-sasl-devel + + +%description +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. + + +%prep +%setup -qn %{name}-%{gh_commit} + +cat < - 2.0.5-1 +- Initial package -- cgit