blob: 61ef2e271e0f377ce28131dffb947219c42410c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
# remirepo spec file for libcouchbase
#
# Copyright (c) 2013-2017 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
# Tests require some need which are downloaded during make
%global with_tests 0%{?_with_tests:1}
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6
%global with_dtrace 1
%else
%global with_dtrace 0
%endif
Name: libcouchbase
Version: 2.7.5
Release: 1%{?dist}
Summary: Couchbase client library
Group: System Environment/Libraries
License: ASL 2.0
URL: http://www.couchbase.com/communities/c/getting-started
Source0: http://packages.couchbase.com/clients/c/%{name}-%{version}.tar.gz
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: cmake >= 2.8.9
BuildRequires: pkgconfig(libevent) >= 2.0.20
BuildRequires: libev-devel >= 3
%if %{with_dtrace}
BuildRequires: systemtap-sdt-devel >= 1.8
%endif
%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 -q
%build
%cmake \
-DLCB_NO_TESTS=1 \
-DLCB_BUILD_LIBUV=OFF
make %{?_smp_mflags} V=1
%install
make install DESTDIR=%{buildroot}
# Remove uneeded files
rm -f %{buildroot}%{_libdir}/*.la
%check
%if %{with_tests}
make check
%else
: check disabled, missing '--with tests' option
%endif
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/%{name}.so.2*
# Backends
%{_libdir}/%{name}_libevent.so
%{_libdir}/%{name}_libev.so
%files devel
%doc RELEASE_NOTES.markdown
%{_includedir}/%{name}
#{_mandir}/man3/libcouch*
#{_mandir}/man3/lcb*
#{_mandir}/man5/lcb*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files tools
%{_bindir}/cbc*
%{_mandir}/man1/cbc*
%{_mandir}/man4/cbc*
%changelog
* Mon May 22 2017 Remi Collet <remi@remirepo.net> - 2.7.5-1
- update to 2.7.5
* Fri Apr 21 2017 Remi Collet <remi@remirepo.net> - 2.7.4-1
- update to 2.7.4
* Wed Mar 22 2017 Remi Collet <remi@remirepo.net> - 2.7.3-1
- update to 2.7.3
* Wed Feb 22 2017 Remi Collet <remi@remirepo.net> - 2.7.2-1
- update to 2.7.2
* Fri Jan 20 2017 Remi Collet <remi@feoraproject.org> - 2.7.1-1
- update to 2.7.1
* Sat Dec 24 2016 Remi Collet <remi@feoraproject.org> - 2.7.0-1
- update to 2.7.0
* Tue Nov 29 2016 Remi Collet <remi@feoraproject.org> - 2.6.4-1
- update to 2.6.4
* Wed Sep 28 2016 Remi Collet <remi@feoraproject.org> - 2.6.3-1
- update to 2.6.3
* Thu Jul 28 2016 Remi Collet <remi@feoraproject.org> - 2.6.2-1
- update to 2.6.2
* Fri Jun 24 2016 Remi Collet <remi@feoraproject.org> - 2.6.1-1
- update to 2.6.1
* Thu May 26 2016 Remi Collet <remi@feoraproject.org> - 2.6.0-1
- update to 2.6.0
* Wed Apr 20 2016 Remi Collet <remi@feoraproject.org> - 2.5.8-1
- update to 2.5.8
* Thu Nov 5 2015 Remi Collet <remi@feoraproject.org> - 2.5.3-1
- update to 2.5.3
* Wed Apr 22 2015 Remi Collet <remi@feoraproject.org> - 2.4.9-1
- update to 2.4.9
- switch to cmake
* Wed Nov 5 2014 Remi Collet <remi@feoraproject.org> - 2.4.3-1
- update to 2.4.3
* Sat Sep 20 2014 Remi Collet <remi@feoraproject.org> - 2.4.1-1
- update to 2.4.1
* Mon May 12 2014 Remi Collet <remi@feoraproject.org> - 2.3.1-1
- update to 2.3.1
- always use libevent 2
* Sat Oct 5 2013 Remi Collet <remi@feoraproject.org> - 2.1.3-1
- update to 2.1.3
* Sun Apr 14 2013 Remi Collet <remi@feoraproject.org> - 2.0.5-1
- Initial package
|