1 # TODO: system libs (snappy, jsoncpp, cbsasl?, cliopts?)
2 Summary: Couchbase C Client library
3 Summary(pl.UTF-8): Biblioteka kliencka C dla Couchbase
9 #Source0Download: https://github.com/couchbase/libcouchbase/releases
10 Source0: https://github.com/couchbase/libcouchbase/releases/download/%{version}/%{name}-%{version}.tar.gz
11 # Source0-md5: 945da5e3fd12233e53d6a9912875d45d
12 URL: https://github.com/couchbase/libcouchbase
13 BuildRequires: cmake >= 2.8.12
14 BuildRequires: libevent-devel
15 BuildRequires: libev-devel
16 BuildRequires: libstdc++-devel
17 BuildRequires: libuv-devel
18 BuildRequires: openssl-devel
19 #BuildRequires: systemtap-sdt-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This is the C client library for Couchbase
24 (<http://www.couchbase.com/>). It communicates with the cluster and
25 speaks the relevant protocols necessary to connect to the cluster and
26 execute data operations.
28 %description -l pl.UTF-8
29 Ten pakiet zawiera bibliotekę kliencką C dla Couchbase
30 (<http://www.couchbase.com/>). Komunikuje się z klastrem i rozmawia
31 odpowiednimi protokołami, niezbędnymi do połączenia z klastrem i
32 wykonywania operacji na danych.
35 Summary: Couchbase I/O operations plugin using libev
36 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libev
38 Requires: %{name} = %{version}-%{release}
41 Couchbase I/O operations plugin using libev.
43 %description io-libev -l pl.UTF-8
44 Wtyczka operacji we/wy Couchbase wykorzystująca libev.
47 Summary: Couchbase I/O operations plugin using libevent
48 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libevent
50 Requires: %{name} = %{version}-%{release}
52 %description io-libevent
53 Couchbase I/O operations plugin using libevent.
55 %description io-libevent -l pl.UTF-8
56 Wtyczka operacji we/wy Couchbase wykorzystująca libevent.
59 Summary: Couchbase I/O operations plugin using libuv
60 Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libuv
62 Requires: %{name} = %{version}-%{release}
65 Couchbase I/O operations plugin using libuv.
67 %description io-libuv -l pl.UTF-8
68 Wtyczka operacji we/wy Couchbase wykorzystująca libuv.
71 Summary: Header files for Couchbase library
72 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Couchbase
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
77 Header files for Couchbase library.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe biblioteki Couchbase.
85 %{__sed} -i -e 's/ "4" / "5" /' doc/man/cbcrc.4
95 rm -rf $RPM_BUILD_ROOT
97 %{__make} -C build install \
98 DESTDIR=$RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_mandir}/man5
101 %{__mv} $RPM_BUILD_ROOT%{_mandir}/{man4/cbcrc.4,man5/cbcrc.5}
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc README.markdown RELEASE_NOTES.markdown
112 %attr(755,root,root) %{_bindir}/cbc
113 %attr(755,root,root) %{_bindir}/cbc-*
114 %attr(755,root,root) %{_libdir}/libcouchbase.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libcouchbase.so.6
116 %dir %{_libdir}/libcouchbase
117 %{_mandir}/man1/cbc.1*
118 %{_mandir}/man1/cbc-*.1*
119 %{_mandir}/man5/cbcrc.5*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libev.so
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libevent.so
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libuv.so
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libcouchbase.so
136 %{_includedir}/libcouchbase
137 %{_pkgconfigdir}/libcouchbase.pc