]>
Commit | Line | Data |
---|---|---|
ccc0fceb JB |
1 | # TODO: system libs (snappy, jsoncpp, cbsasl?, cliopts?) |
2 | Summary: Couchbase C Client library | |
3 | Summary(pl.UTF-8): Biblioteka kliencka C dla Couchbase | |
4 | Name: libcouchbase | |
5 | Version: 3.0.1 | |
6 | Release: 1 | |
7 | License: Apache v2.0 | |
8 | Group: Libraries | |
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) | |
21 | ||
22 | %description | |
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. | |
27 | ||
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. | |
33 | ||
34 | %package io-libev | |
35 | Summary: Couchbase I/O operations plugin using libev | |
36 | Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libev | |
37 | Group: Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description io-libev | |
41 | Couchbase I/O operations plugin using libev. | |
42 | ||
43 | %description io-libev -l pl.UTF-8 | |
44 | Wtyczka operacji we/wy Couchbase wykorzystująca libev. | |
45 | ||
46 | %package io-libevent | |
47 | Summary: Couchbase I/O operations plugin using libevent | |
48 | Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libevent | |
49 | Group: Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description io-libevent | |
53 | Couchbase I/O operations plugin using libevent. | |
54 | ||
55 | %description io-libevent -l pl.UTF-8 | |
56 | Wtyczka operacji we/wy Couchbase wykorzystująca libevent. | |
57 | ||
58 | %package io-libuv | |
59 | Summary: Couchbase I/O operations plugin using libuv | |
60 | Summary(pl.UTF-8): Wtyczka operacji we/wy Couchbase wykorzystująca libuv | |
61 | Group: Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description io-libuv | |
65 | Couchbase I/O operations plugin using libuv. | |
66 | ||
67 | %description io-libuv -l pl.UTF-8 | |
68 | Wtyczka operacji we/wy Couchbase wykorzystująca libuv. | |
69 | ||
70 | %package devel | |
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} | |
75 | ||
76 | %description devel | |
77 | Header files for Couchbase library. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe biblioteki Couchbase. | |
81 | ||
82 | %prep | |
83 | %setup -q | |
84 | ||
85 | %{__sed} -i -e 's/ "4" / "5" /' doc/man/cbcrc.4 | |
86 | ||
87 | %build | |
88 | install -d build | |
89 | cd build | |
bdf36a28 JB |
90 | %cmake .. \ |
91 | -DLCB_NO_MOCK=ON | |
ccc0fceb JB |
92 | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} -C build install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | install -d $RPM_BUILD_ROOT%{_mandir}/man5 | |
102 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/{man4/cbcrc.4,man5/cbcrc.5} | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %doc README.markdown RELEASE_NOTES.markdown | |
113 | %attr(755,root,root) %{_bindir}/cbc | |
114 | %attr(755,root,root) %{_bindir}/cbc-* | |
115 | %attr(755,root,root) %{_libdir}/libcouchbase.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libcouchbase.so.6 | |
117 | %dir %{_libdir}/libcouchbase | |
118 | %{_mandir}/man1/cbc.1* | |
119 | %{_mandir}/man1/cbc-*.1* | |
120 | %{_mandir}/man5/cbcrc.5* | |
121 | ||
122 | %files io-libev | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libev.so | |
125 | ||
126 | %files io-libevent | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libevent.so | |
129 | ||
130 | %files io-libuv | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libcouchbase/libcouchbase_libuv.so | |
133 | ||
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_libdir}/libcouchbase.so | |
137 | %{_includedir}/libcouchbase | |
138 | %{_pkgconfigdir}/libcouchbase.pc |