blob: b67c209d5474d57b65f3f3a9fa06b8059d0343a8 (
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
|
# 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
#
%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
%global with_tests 0%{!?_without_tests:1}
%else
# check-select-sock-tests hangs (btw, libevent backend is mandatory)
%global with_tests 0%{?_with_tests:1}
%endif
%global with_dtrace 1
%if 0%{?fedora} >= 22 || 0%{?rhel} >= 7
%global with_uv 1
%else
%global with_uv 0
%endif
Name: libcouchbase
Version: 2.8.7
Release: 2%{?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
Patch0: 0001-enforce-system-crypto-policies.patch
Patch1: 0002-do-not-install-plugins-into-libdir.patch
Patch2: 0003-fix-pkgconfig-paths.patch
# http://review.couchbase.org/c/93641
Patch3: 0004-CCBC-924-initialize-flag-for-JSON-server-feature.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: cmake >= 2.8.9
BuildRequires: pkgconfig(libevent) >= 2.0.20
BuildRequires: libev-devel >= 3
%if %{with_uv}
BuildRequires: pkgconfig(libuv) >= 1
%endif
%if %{with_dtrace}
BuildRequires: systemtap-sdt-devel >= 1.8
BuildRequires: systemtap-devel
%endif
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
Recommends: %{name}-libevent%{_isa} = %{version}-%{release}
Suggests: %{name}-libev%{_isa} = %{version}-%{release}
Suggests: %{name}-tools%{_isa} = %{version}-%{release}
%else
Requires: %{name}-libevent%{_isa} = %{version}-%{release}
%endif
# Filter shared private badly named
%{?filter_provides_in: %filter_provides_in %{name}/%{name}.*\.so$}
%{?filter_setup}
%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 libevent
Summary: Couchbase client library - libevent IO back-end
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libevent
This package provides libevent back-end for libcouchbase.
%package libev
Summary: Couchbase client library - libev IO back-end
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libev
This package provides libev back-end for libcouchbase.
%if %{with_uv}
%package libuv
Summary: Couchbase client library - libuv IO back-end
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libuv
This package provides libuv back-end for libcouchbase.
%endif
%package tools
Summary: Couchbase tools
Group: Applications/System
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-libevent%{?_isa} = %{version}-%{release}
%description tools
The %{name}-tools package contains some command line tools to manage
a Couchbase Server.
%prep
%setup -q
%patch0 -p1 -b .crypto
%patch1 -p1 -b .plug
%patch2 -p1 -b .pkgc
%patch3 -p1 -b .json
%build
%cmake \
-DLCB_BUILD_LIBEVENT=ON \
-DLCB_BUILD_LIBEV=ON \
%if %{with_uv}
-DLCB_BUILD_LIBUV=ON \
%else
-DLCB_BUILD_LIBUV=OFF \
%endif
%if %{with_dtrace}
-DLCB_BUILD_DTRACE=ON \
%else
-DLCB_BUILD_DTRACE=OFF \
%endif
-DLCB_NO_MOCK=1
make %{?_smp_mflags} V=1
%install
make install DESTDIR=%{buildroot}
%check
%if %{with_tests}
# ARGS needed to pass arguments to ctest
make %{_smp_mflags} alltests test ARGS=%{_smp_mflags}
%else
: check disabled
%endif
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%{!?_licensedir:%global license %%doc}
%doc README.markdown RELEASE_NOTES.markdown
%license LICENSE
%{_libdir}/%{name}.so.2*
%if %{with_dtrace}
%{_datadir}/systemtap/tapset/libcouchbase.so*
%endif
%files libevent
%{_libdir}/%{name}/%{name}_libevent.so
%files libev
%{_libdir}/%{name}/%{name}_libev.so
%if %{with_uv}
%files libuv
%{_libdir}/%{name}/%{name}_libuv.so
%endif
%files devel
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files tools
%{_bindir}/cbc*
%{_mandir}/man1/cbc*
%{_mandir}/man4/cbc*
%changelog
* Wed May 02 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.7-2
- Port patch for JSON datatype
* Wed May 02 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.7-1
- Update to 2.8.7
* Fri Apr 06 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.6-1
- Update to 2.8.6
* Fri Feb 23 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.5-1
- Update to 2.8.5
* Wed Dec 20 2017 Remi Collet <remi@remirepo.net> - 2.8.4-1
- Update to 2.8.4
- filter private plugins (not shared libraries)
* Wed Dec 20 2017 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.4-1
- Update to 2.8.4
* Wed Nov 22 2017 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.3-2
- Parallel tests
* Wed Nov 22 2017 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.3-1
- Update to 2.8.3
* Mon Nov 13 2017 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.8.2-2
- Fix loading IO plugins
* Thu Nov 2 2017 Remi Collet <remi@remirepo.net> - 2.8.2-1
- update to 2.8.2
- pull patches and other changes from Fedora
- add libuv backend
- move backends in optional sub-packages
- enable upstream test suite on F25+
- disable dtrace
* Wed Sep 20 2017 Remi Collet <remi@remirepo.net> - 2.8.1-1
- update to 2.8.1
* Thu Aug 31 2017 Remi Collet <remi@remirepo.net> - 2.8.0-1
- update to 2.8.0
* Thu Aug 17 2017 Remi Collet <remi@remirepo.net> - 2.7.7-1
- update to 2.7.7
- drop patch merged upstream
* Wed Jul 12 2017 Remi Collet <remi@remirepo.net> - 2.7.6-2
- fix new symbols visibility, using patch from
https://github.com/couchbase/libcouchbase/pull/27
for https://issues.couchbase.com/browse/CCBC-803
* Wed Jul 12 2017 Remi Collet <remi@remirepo.net> - 2.7.6-1
- update to 2.7.6
* 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
|