]>
Commit | Line | Data |
---|---|---|
714b93ed JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with hadoop # Hadoop client (requires JNI) | |
4 | # | |
2a1a6301 | 5 | Summary: User space components of the Ceph file system |
e5fc70df | 6 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 7 | Name: ceph |
7e46b55b | 8 | Version: 0.53 |
714b93ed | 9 | Release: 1 |
9e1f65de | 10 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 JR |
11 | Group: Base |
12 | Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2 | |
7e46b55b | 13 | # Source0-md5: 504f4f9ba6f84178478b08da7bc9eb39 |
2a1a6301 JR |
14 | Patch0: %{name}-init-fix.patch |
15 | Patch1: %{name}.logrotate.patch | |
041b9abb | 16 | Patch2: %{name}-link.patch |
2a1a6301 | 17 | URL: http://ceph.newdream.net/ |
714b93ed JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake | |
20 | BuildRequires: boost-devel >= 1.34 | |
2a1a6301 JR |
21 | BuildRequires: cryptopp-devel |
22 | BuildRequires: curl-devel | |
714b93ed | 23 | BuildRequires: expat-devel >= 1.95 |
2a1a6301 JR |
24 | BuildRequires: fcgi-devel |
25 | BuildRequires: gdbm-devel | |
714b93ed | 26 | %{?with_hadoop:BuildRequires: jdk} |
2a1a6301 | 27 | BuildRequires: keyutils-devel |
f965be58 | 28 | BuildRequires: leveldb-devel |
714b93ed | 29 | BuildRequires: libaio-devel |
2a1a6301 | 30 | BuildRequires: libatomic_ops |
714b93ed | 31 | BuildRequires: libedit-devel >= 2.11 |
2a1a6301 JR |
32 | BuildRequires: libfuse-devel |
33 | BuildRequires: libltdl-devel | |
f965be58 | 34 | BuildRequires: libs3-devel |
2a1a6301 JR |
35 | BuildRequires: libstdc++-devel |
36 | BuildRequires: libtcmalloc-devel | |
714b93ed | 37 | BuildRequires: libtool >= 2:1.5 |
2a1a6301 | 38 | BuildRequires: libuuid-devel |
e5fc70df | 39 | BuildRequires: perl-base |
2a1a6301 | 40 | BuildRequires: pkgconfig |
714b93ed | 41 | BuildRequires: python >= 1:2.4 |
2a1a6301 | 42 | BuildRequires: rpmbuild(macros) >= 1.228 |
f965be58 | 43 | BuildRequires: snappy-devel |
2a1a6301 JR |
44 | Requires(post,preun): /sbin/chkconfig |
45 | Requires(preun): rc-scripts | |
46 | Requires: %{name}-libs = %{version}-%{release} | |
60d5543f | 47 | Obsoletes: gcephtool |
2a1a6301 JR |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %define skip_post_check_so libcls_.*.so.* | |
51 | ||
52 | %description | |
53 | Ceph is a distributed network file system designed to provide | |
54 | excellent performance, reliability, and scalability. | |
55 | ||
e5fc70df JB |
56 | %description -l pl.UTF-8 |
57 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
58 | dobrej wydajności, wiarygodności i skalowalności. | |
59 | ||
2a1a6301 JR |
60 | %package libs |
61 | Summary: Ceph shared libraries | |
e5fc70df | 62 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 JR |
63 | Group: Libraries |
64 | ||
65 | %description libs | |
66 | Ceph shared libraries. | |
67 | ||
e5fc70df JB |
68 | %description libs -l pl.UTF-8 |
69 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
70 | |
71 | %package devel | |
e5fc70df JB |
72 | Summary: Ceph header files |
73 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
2a1a6301 JR |
74 | Group: Development/Libraries |
75 | Requires: %{name}-libs = %{version}-%{release} | |
76 | ||
77 | %description devel | |
78 | This package contains the headers needed to develop programs that use | |
79 | Ceph. | |
80 | ||
e5fc70df JB |
81 | %description devel -l pl.UTF-8 |
82 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
83 | wykorzystujących Cepha. | |
84 | ||
2a1a6301 JR |
85 | %package static |
86 | Summary: Ceph static libraries | |
e5fc70df | 87 | Summary(pl.UTF-8): Biblioteki statyczne Cepha |
2a1a6301 JR |
88 | License: LGPLv2 |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | This package contains static Ceph libraries. | |
94 | ||
e5fc70df JB |
95 | %description static -l pl.UTF-8 |
96 | Ten pakiet zawiera biblioteki statyczne Cepha. | |
97 | ||
98 | %package -n python-ceph | |
99 | Summary: Ceph Python bindings | |
100 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha | |
101 | Group: Development/Languages/Python | |
102 | Requires: %{name}-libs = %{version}-%{release} | |
103 | ||
104 | %description -n python-ceph | |
105 | Ceph Python bindings. | |
106 | ||
107 | %description -n python-ceph -l pl.UTF-8 | |
108 | Wiązania Pythona do bibliotek Cepha. | |
109 | ||
110 | %package fuse | |
111 | Summary: Ceph FUSE-based client | |
112 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
113 | Group: Base | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | ||
116 | %description fuse | |
117 | FUSE based client for Ceph distributed network file system. | |
118 | ||
119 | %description fuse -l pl.UTF-8 | |
120 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
121 | ||
2a1a6301 JR |
122 | %package radosgw |
123 | Summary: rados REST gateway | |
e5fc70df JB |
124 | Summary(pl.UTF-8): Bramka REST-owa rados |
125 | Group: Applications/System | |
2a1a6301 JR |
126 | #Requires: apache-mod_fcgid |
127 | ||
128 | %description radosgw | |
129 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
130 | implemented as a FastCGI module using libfcgi, and can be used in | |
131 | conjunction with any FastCGI capable web server. | |
132 | ||
e5fc70df JB |
133 | %description radosgw -l pl.UTF-8 |
134 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
135 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
136 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
137 | ||
245cb856 | 138 | %package resource-agents |
8029515d JB |
139 | Summary: OCF Resource Agents for Ceph processes |
140 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
141 | Group: Applications/System | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | Requires: resource-agents | |
144 | ||
245cb856 | 145 | %description resource-agents |
8029515d JB |
146 | OCF Resource Agents for Ceph processes. |
147 | ||
245cb856 | 148 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
149 | Agenci OCF do monitorowania procesów Cepha. |
150 | ||
245cb856 JB |
151 | %package -n hadoop-cephfs |
152 | Summary: Hadoop client for Ceph filesystem | |
153 | Summary(pl.UTF-8): Klient Hadoopa dla systemu plików Ceph | |
154 | Group: Libraries | |
155 | Requires: %{name} = %{version}-%{release} | |
156 | Requires: hadoop | |
157 | ||
158 | %description -n hadoop-cephfs | |
159 | Hadoop client for Ceph filesystem. | |
160 | ||
161 | %description -n hadoop-cephfs -l pl.UTF-8 | |
162 | Klient Hadoopa dla systemu plików Ceph. | |
163 | ||
2a1a6301 JR |
164 | %prep |
165 | %setup -q | |
166 | %patch0 -p1 | |
167 | %patch1 -p0 | |
168 | %patch2 -p1 | |
2a1a6301 JR |
169 | |
170 | %build | |
171 | %{__libtoolize} | |
172 | %{__aclocal} | |
173 | %{__autoconf} | |
174 | %{__autoheader} | |
175 | %{__automake} | |
245cb856 | 176 | %{?with_hadoop:CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"} |
2a1a6301 JR |
177 | %configure \ |
178 | --sbindir=/sbin \ | |
714b93ed JB |
179 | --with-cryptopp \ |
180 | --with-hadoop%{!?with_hadoop:=no} \ | |
8029515d | 181 | --with-ocf \ |
2a1a6301 | 182 | --with-radosgw \ |
f965be58 JB |
183 | --with-system-leveldb \ |
184 | --with-system-libs3 \ | |
714b93ed | 185 | --disable-silent-rules |
2a1a6301 | 186 | |
714b93ed | 187 | %{__make} |
2a1a6301 JR |
188 | |
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \ | |
192 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d} | |
193 | %{__make} install \ | |
194 | DESTDIR=$RPM_BUILD_ROOT | |
195 | ||
196 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
197 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
198 | ||
7e46b55b JB |
199 | # loadable modules |
200 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la} | |
245cb856 JB |
201 | %if %{with hadoop} |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a} | |
203 | %endif | |
7e46b55b JB |
204 | # packaged as %doc |
205 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config} | |
245cb856 | 206 | |
714b93ed | 207 | %py_postclean |
2a1a6301 JR |
208 | |
209 | %clean | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
212 | %post | |
213 | /sbin/chkconfig --add ceph | |
214 | %service ceph restart | |
215 | ||
216 | %preun | |
217 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
218 | %service ceph stop |
219 | /sbin/chkconfig --del ceph | |
2a1a6301 JR |
220 | fi |
221 | ||
e5fc70df JB |
222 | %post libs -p /sbin/ldconfig |
223 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 224 | |
245cb856 JB |
225 | %post -n hadoop-cephfs -p /sbin/ldconfig |
226 | %postun -n hadoop-cephfs -p /sbin/ldconfig | |
227 | ||
2a1a6301 JR |
228 | %files |
229 | %defattr(644,root,root,755) | |
9e1f65de JB |
230 | # COPYING specifies licenses of individual parts |
231 | %doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config | |
2a1a6301 JR |
232 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
233 | %dir %{_sysconfdir}/ceph | |
234 | %attr(755,root,root) %{_bindir}/ceph | |
235 | %attr(755,root,root) %{_bindir}/cephfs | |
236 | %attr(755,root,root) %{_bindir}/ceph-conf | |
237 | %attr(755,root,root) %{_bindir}/ceph-clsinfo | |
60d5543f | 238 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
2a1a6301 JR |
239 | %attr(755,root,root) %{_bindir}/crushtool |
240 | %attr(755,root,root) %{_bindir}/monmaptool | |
241 | %attr(755,root,root) %{_bindir}/osdmaptool | |
242 | %attr(755,root,root) %{_bindir}/ceph-authtool | |
243 | %attr(755,root,root) %{_bindir}/ceph-syn | |
244 | %attr(755,root,root) %{_bindir}/ceph-run | |
245 | %attr(755,root,root) %{_bindir}/ceph-mon | |
246 | %attr(755,root,root) %{_bindir}/ceph-mds | |
247 | %attr(755,root,root) %{_bindir}/ceph-osd | |
248 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer | |
249 | %attr(755,root,root) %{_bindir}/librados-config | |
250 | %attr(755,root,root) %{_bindir}/rados | |
251 | %attr(755,root,root) %{_bindir}/rbd | |
252 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
253 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
254 | %dir %{_libdir}/rados-classes | |
7e46b55b | 255 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so* |
60d5543f | 256 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* |
2a1a6301 | 257 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
7e46b55b | 258 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so* |
2a1a6301 | 259 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* |
7e46b55b | 260 | %attr(755,root,root) /sbin/ceph-create-keys |
60d5543f PS |
261 | %attr(755,root,root) /sbin/ceph-disk-activate |
262 | %attr(755,root,root) /sbin/ceph-disk-prepare | |
2a1a6301 JR |
263 | %attr(755,root,root) /sbin/mkcephfs |
264 | %attr(755,root,root) /sbin/mount.ceph | |
265 | %dir %{_libdir}/ceph | |
266 | %attr(755,root,root) %{_libdir}/ceph/ceph_common.sh | |
267 | %config(noreplace) /etc/logrotate.d/ceph | |
268 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
269 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
270 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
271 | %{_mandir}/man8/ceph.8* | |
272 | %{_mandir}/man8/ceph-authtool.8* | |
273 | %{_mandir}/man8/ceph-clsinfo.8* | |
274 | %{_mandir}/man8/ceph-conf.8* | |
275 | %{_mandir}/man8/ceph-debugpack.8* | |
60d5543f | 276 | %{_mandir}/man8/ceph-dencoder.8* |
2a1a6301 JR |
277 | %{_mandir}/man8/ceph-mds.8* |
278 | %{_mandir}/man8/ceph-mon.8* | |
279 | %{_mandir}/man8/ceph-osd.8* | |
60d5543f | 280 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
281 | %{_mandir}/man8/ceph-run.8* |
282 | %{_mandir}/man8/ceph-syn.8* | |
283 | %{_mandir}/man8/cephfs.8* | |
284 | %{_mandir}/man8/crushtool.8* | |
285 | %{_mandir}/man8/librados-config.8* | |
286 | %{_mandir}/man8/mkcephfs.8* | |
287 | %{_mandir}/man8/monmaptool.8* | |
288 | %{_mandir}/man8/mount.ceph.8* | |
289 | %{_mandir}/man8/osdmaptool.8* | |
290 | %{_mandir}/man8/rados.8* | |
291 | %{_mandir}/man8/radosgw.8* | |
292 | %{_mandir}/man8/radosgw-admin.8* | |
293 | %{_mandir}/man8/rbd.8* | |
60d5543f | 294 | |
2a1a6301 JR |
295 | %dir %{_localstatedir}/lib/ceph |
296 | %dir %{_localstatedir}/lib/ceph/tmp | |
297 | %dir %{_localstatedir}/log/ceph | |
298 | ||
299 | %files libs | |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
302 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
303 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* | |
304 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
305 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* | |
306 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
2a1a6301 | 307 | |
2a1a6301 JR |
308 | %files devel |
309 | %defattr(644,root,root,755) | |
2a1a6301 JR |
310 | %attr(755,root,root) %{_libdir}/libcephfs.so |
311 | %attr(755,root,root) %{_libdir}/librados.so | |
2a1a6301 JR |
312 | %attr(755,root,root) %{_libdir}/librbd.so |
313 | %{_libdir}/libcephfs.la | |
314 | %{_libdir}/librados.la | |
2a1a6301 | 315 | %{_libdir}/librbd.la |
e5fc70df JB |
316 | %{_includedir}/cephfs |
317 | %{_includedir}/rados | |
318 | %{_includedir}/rbd | |
2a1a6301 JR |
319 | |
320 | %files static | |
321 | %defattr(644,root,root,755) | |
322 | %{_libdir}/libcephfs.a | |
323 | %{_libdir}/librados.a | |
2a1a6301 JR |
324 | %{_libdir}/librbd.a |
325 | ||
e5fc70df JB |
326 | %files -n python-ceph |
327 | %defattr(644,root,root,755) | |
714b93ed JB |
328 | %{py_sitescriptdir}/rados.py[co] |
329 | %{py_sitescriptdir}/rbd.py[co] | |
e5fc70df JB |
330 | |
331 | %files fuse | |
332 | %defattr(644,root,root,755) | |
e5fc70df JB |
333 | %attr(755,root,root) %{_bindir}/ceph-fuse |
334 | %{_mandir}/man8/ceph-fuse.8* | |
335 | ||
2a1a6301 JR |
336 | %files radosgw |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_bindir}/radosgw | |
339 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
340 | %{_sysconfdir}/bash_completion.d/radosgw-admin | |
341 | ||
245cb856 | 342 | %files resource-agents |
8029515d JB |
343 | %defattr(644,root,root,755) |
344 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
345 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph | |
346 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds | |
347 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon | |
348 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd | |
349 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd | |
245cb856 JB |
350 | |
351 | %if %{with hadoop} | |
352 | %files -n hadoop-cephfs | |
353 | %defattr(644,root,root,755) | |
354 | %attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.* | |
355 | %attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1 | |
356 | %attr(755,root,root) %{_libdir}/libhadoopcephfs.so | |
357 | %endif |