1 # TODO: system libs (snappy, jsoncpp, cbsasl?, cliopts?)
4 %bcond_with hdrhistogram # HdrHistogram for statistics recording
6 Summary: Couchbase C Client library
7 Summary(pl.UTF-8): Biblioteka kliencka C dla Couchbase
13 #Source0Download: https://github.com/couchbase/libcouchbase/releases
14 Source0: https://github.com/couchbase/libcouchbase/releases/download/%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 945da5e3fd12233e53d6a9912875d45d
16 URL: https://github.com/couchbase/libcouchbase
17 %{?with_hdrhistogram:BuildRequires: HdrHistogram_c-devel}
18 BuildRequires: cmake >= 2.8.12
19 BuildRequires: libevent-devel
20 BuildRequires: libev-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libuv-devel
23 BuildRequires: openssl-devel
24 #BuildRequires: systemtap-sdt-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This is the C client library for Couchbase
29 (<http://www.couchbase.com/>). It communicates with the cluster and
30 speaks the relevant protocols necessary to connect to the cluster and
31 execute data operations.
33 %description -l pl.UTF-8
34 Ten pakiet zawiera bibliotekę kliencką C dla Couchbase
35 (<http://www.couchbase.com/>). Komunikuje się z klastrem i rozmawia
36 odpowiednimi protokołami, niezbędnymi do połączenia z klastrem i
37 wykonywania operacji na danych.
40 Summary: Couchbase I/O operations plugin using libev
41 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libev
43 Requires: %{name} = %{version}-%{release}
46 Couchbase I/O operations plugin using libev.
48 %description io-libev -l pl.UTF-8
49 Wtyczka operacji we/wy Couchbase wykorzystująca libev.
52 Summary: Couchbase I/O operations plugin using libevent
53 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libevent
55 Requires: %{name} = %{version}-%{release}
57 %description io-libevent
58 Couchbase I/O operations plugin using libevent.
60 %description io-libevent -l pl.UTF-8
61 Wtyczka operacji we/wy Couchbase wykorzystująca libevent.
64 Summary: Couchbase I/O operations plugin using libuv
65 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libuv
67 Requires: %{name} = %{version}-%{release}
70 Couchbase I/O operations plugin using libuv.
72 %description io-libuv -l pl.UTF-8
73 Wtyczka operacji we/wy Couchbase wykorzystująca libuv.
76 Summary: Header files for Couchbase library
77 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Couchbase
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
82 Header files for Couchbase library.
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe biblioteki Couchbase.
90 %{__sed} -i -e 's/ "4" / "5" /' doc/man/cbcrc.4
96 %{?with_hdrhistogram:LCB_USE_HDR_HISTOGRAM=ON} \
102 rm -rf $RPM_BUILD_ROOT
104 %{__make} -C build install \
105 DESTDIR=$RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_mandir}/man5
108 %{__mv} $RPM_BUILD_ROOT%{_mandir}/{man4/cbcrc.4,man5/cbcrc.5}
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc README.markdown RELEASE_NOTES.markdown
119 %attr(755,root,root) %{_bindir}/cbc
120 %attr(755,root,root) %{_bindir}/cbc-*
121 %attr(755,root,root) %{_libdir}/libcouchbase.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libcouchbase.so.6
123 %dir %{_libdir}/libcouchbase
124 %{_mandir}/man1/cbc.1*
125 %{_mandir}/man1/cbc-*.1*
126 %{_mandir}/man5/cbcrc.5*
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libev.so
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libevent.so
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libuv.so
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libcouchbase.so
143 %{_includedir}/libcouchbase
144 %{_pkgconfigdir}/libcouchbase.pc