]>
Commit | Line | Data |
---|---|---|
b6163d67 | 1 | # TODO: |
bbcdc7ce JB |
2 | # - proper init scripts if non-systemd boot is too be supported |
3 | # (upstream scripts seem overcomplicated and hardly useful) | |
4 | # - run as non-root user | |
b6163d67 | 5 | # |
19c20e80 JR |
6 | # Note on versioning: http://docs.ceph.com/docs/master/releases/ |
7 | # | |
714b93ed | 8 | # Conditional build: |
7f577810 | 9 | %bcond_without java # Java binding |
bbcdc7ce | 10 | %bcond_with accelio # Accelio transport support [needs update for internal API changes] |
1b11728e JB |
11 | %bcond_with cryptopp # use cryptopp instead of NSS crypto/SSL |
12 | %bcond_with dpdk # DPDK messaging (requires cryptopp instead of nss) | |
13 | %bcond_with fcgi # RADOS Gateway FCGI frontend | |
14 | %bcond_with fio # FIO engines support | |
15 | %bcond_without pmem # PMDK (persistent memory) support | |
16 | %bcond_with spdk # Ceph SPDK support (DPDK based) | |
17 | %bcond_without system_rocksdb # system RocksDB storage support | |
bbcdc7ce | 18 | %bcond_with zfs # ZFS support [not ready for zfs 0.8.x] |
7f577810 JB |
19 | %bcond_without lttng # LTTng tracing |
20 | %bcond_without babeltrace # Babeltrace traces support | |
21 | %bcond_without tcmalloc # tcmalloc allocator | |
6fce7056 JR |
22 | |
23 | %ifarch x32 | |
24 | %undefine with_tcmalloc | |
25 | %endif | |
1b11728e JB |
26 | %ifnarch %{x8664} aarch64 |
27 | %undefine with_pmem | |
28 | %endif | |
29 | %if %{without cryptopp} && %{with dpdk} | |
30 | %error DPDK requires cryptopp | |
31 | %endif | |
714b93ed | 32 | # |
2a1a6301 | 33 | Summary: User space components of the Ceph file system |
e5fc70df | 34 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 35 | Name: ceph |
1b11728e | 36 | Version: 12.2.13 |
bbcdc7ce | 37 | Release: 1 |
9e1f65de | 38 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 | 39 | Group: Base |
4447516f | 40 | Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz |
1b11728e | 41 | # Source0-md5: 38bd01cf8224c9ca081298e19ab6e5a1 |
b6163d67 | 42 | Source1: ceph.sysconfig |
bbcdc7ce JB |
43 | Source2: cephctl |
44 | Source3: ceph.tmpfiles | |
2a1a6301 JR |
45 | Patch0: %{name}-init-fix.patch |
46 | Patch1: %{name}.logrotate.patch | |
1b11728e JB |
47 | Patch2: boost.patch |
48 | Patch3: %{name}-python.patch | |
49 | Patch4: %{name}-types.patch | |
50 | Patch5: %{name}-tcmalloc.patch | |
51 | Patch6: %{name}-rocksdb.patch | |
52 | Patch7: %{name}-fcgi.patch | |
79dc5cad | 53 | Patch8: %{name}-fio.patch |
e3919159 | 54 | URL: https://ceph.io/ |
477a1b20 | 55 | %{?with_accelio:BuildRequires: accelio-devel} |
7f577810 | 56 | %{?with_babeltrace:BuildRequires: babeltrace-devel} |
1b11728e JB |
57 | BuildRequires: boost-devel >= 1.66 |
58 | BuildRequires: cmake >= 2.8.11 | |
59 | %{?with_cryptopp:BuildRequires: cryptopp-devel} | |
2a1a6301 | 60 | BuildRequires: curl-devel |
1b11728e JB |
61 | %if %{with dpdk} || %{with spdk} |
62 | BuildRequires: dpdk-devel | |
63 | %endif | |
714b93ed | 64 | BuildRequires: expat-devel >= 1.95 |
1b11728e JB |
65 | %{?with_fcgi:BuildRequires: fcgi-devel} |
66 | %{?with_fio:BuildRequires: fio-devel} | |
2a1a6301 | 67 | BuildRequires: gdbm-devel |
7db8c214 | 68 | %if %{with java} |
4f42482b JB |
69 | BuildRequires: jdk |
70 | %endif | |
2a1a6301 | 71 | BuildRequires: keyutils-devel |
548e0d3f | 72 | BuildRequires: leveldb-devel >= 1.2 |
714b93ed | 73 | BuildRequires: libaio-devel |
2a1a6301 | 74 | BuildRequires: libatomic_ops |
548e0d3f | 75 | BuildRequires: libblkid-devel >= 2.17 |
714b93ed | 76 | BuildRequires: libedit-devel >= 2.11 |
2a1a6301 | 77 | BuildRequires: libfuse-devel |
1b11728e | 78 | # +RDMA? |
477a1b20 | 79 | %{?with_accelio:BuildRequires: libibverbs-devel} |
2a1a6301 | 80 | BuildRequires: libltdl-devel |
477a1b20 | 81 | %{?with_accelio:BuildRequires: librdmacm-devel} |
bbcdc7ce | 82 | BuildRequires: libstdc++-devel >= 6:4.7 |
6fce7056 | 83 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} |
714b93ed | 84 | BuildRequires: libtool >= 2:1.5 |
2a1a6301 | 85 | BuildRequires: libuuid-devel |
bbcdc7ce | 86 | BuildRequires: libxml2-devel >= 2.0 |
7f577810 | 87 | %{?with_lttng:BuildRequires: lttng-ust-devel} |
1b11728e JB |
88 | BuildRequires: lz4-devel >= 1:1.7 |
89 | %{!?with_cryptopp:BuildRequires: nss-devel >= 3} | |
bbcdc7ce JB |
90 | BuildRequires: openldap-devel |
91 | BuildRequires: openssl-devel | |
e5fc70df | 92 | BuildRequires: perl-base |
2a1a6301 | 93 | BuildRequires: pkgconfig |
1b11728e | 94 | %{?with_pmem:BuildRequires: pmdk-devel} |
bbcdc7ce | 95 | BuildRequires: python >= 1:2.7 |
1b11728e | 96 | BuildRequires: python-devel >= 1:2.7 |
bbcdc7ce | 97 | BuildRequires: python-Cython |
1b11728e JB |
98 | BuildRequires: python3-devel >= 1:3.2 |
99 | %{?with_rocksdb:BuildRequires: rocksdb-devel >= 3.0.0} | |
bef2a0ad | 100 | BuildRequires: rpmbuild(macros) >= 1.671 |
e3919159 | 101 | BuildRequires: sed >= 4.0 |
f965be58 | 102 | BuildRequires: snappy-devel |
bbcdc7ce | 103 | BuildRequires: sphinx-pdg-2 >= 1.0 |
548e0d3f | 104 | BuildRequires: udev-devel |
1b11728e | 105 | #BuildRequires: virtualenv for tests |
b1fa8ffe | 106 | %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} |
fa260b6c | 107 | BuildRequires: xfsprogs-devel |
7db8c214 JB |
108 | %ifarch %{x8664} |
109 | BuildRequires: yasm | |
110 | %endif | |
430360a9 | 111 | %{?with_zfs:BuildRequires: zfs-devel} |
bbcdc7ce | 112 | BuildRequires: zlib-devel |
2a1a6301 JR |
113 | Requires(post,preun): /sbin/chkconfig |
114 | Requires(preun): rc-scripts | |
115 | Requires: %{name}-libs = %{version}-%{release} | |
7cabda16 | 116 | Requires: python-%{name} = %{version}-%{release} |
bef2a0ad | 117 | Requires: systemd-units >= 38 |
60d5543f | 118 | Obsoletes: gcephtool |
7db8c214 | 119 | Obsoletes: hadoop-cephfs |
2a1a6301 JR |
120 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
121 | ||
1b11728e | 122 | %define skip_post_check_so libceph_lz4.so.* libceph_snappy.so.* libceph_zlib.so.* libceph_zstd.so.* libcls_.*.so.* libec_.*.so.* |
2a1a6301 JR |
123 | |
124 | %description | |
125 | Ceph is a distributed network file system designed to provide | |
126 | excellent performance, reliability, and scalability. | |
127 | ||
e5fc70df JB |
128 | %description -l pl.UTF-8 |
129 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
130 | dobrej wydajności, wiarygodności i skalowalności. | |
131 | ||
2a1a6301 JR |
132 | %package libs |
133 | Summary: Ceph shared libraries | |
e5fc70df | 134 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 JR |
135 | Group: Libraries |
136 | ||
137 | %description libs | |
138 | Ceph shared libraries. | |
139 | ||
e5fc70df JB |
140 | %description libs -l pl.UTF-8 |
141 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
142 | |
143 | %package devel | |
e5fc70df JB |
144 | Summary: Ceph header files |
145 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
96c29907 | 146 | License: LGPL v2.1 |
2a1a6301 JR |
147 | Group: Development/Libraries |
148 | Requires: %{name}-libs = %{version}-%{release} | |
1b11728e | 149 | Requires: boost-devel >= 1.66 |
bbcdc7ce JB |
150 | Requires: curl-devel |
151 | Requires: expat-devel | |
152 | Requires: fcgi-devel | |
153 | Requires: nss-devel >= 3 | |
96c29907 JB |
154 | Requires: leveldb-devel |
155 | Requires: libatomic_ops | |
bbcdc7ce JB |
156 | Requires: libblkid-devel >= 2.17 |
157 | Requires: libstdc++-devel >= 6:4.7 | |
96c29907 | 158 | Requires: libuuid-devel |
bbcdc7ce JB |
159 | %{?with_lttng:Requires: lttng-ust-devel} |
160 | Requires: openldap-devel | |
1b11728e | 161 | Obsoletes: ceph-static < 12 |
2a1a6301 JR |
162 | |
163 | %description devel | |
164 | This package contains the headers needed to develop programs that use | |
165 | Ceph. | |
166 | ||
e5fc70df JB |
167 | %description devel -l pl.UTF-8 |
168 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
169 | wykorzystujących Cepha. | |
170 | ||
e5fc70df | 171 | %package -n python-ceph |
1b11728e JB |
172 | Summary: Ceph Python 2 bindings |
173 | Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek Cepha | |
e5fc70df JB |
174 | Group: Development/Languages/Python |
175 | Requires: %{name}-libs = %{version}-%{release} | |
176 | ||
177 | %description -n python-ceph | |
1b11728e | 178 | Ceph Python 2 bindings. |
e5fc70df JB |
179 | |
180 | %description -n python-ceph -l pl.UTF-8 | |
1b11728e JB |
181 | Wiązania Pythona 2 do bibliotek Cepha. |
182 | ||
183 | %package -n python3-ceph | |
184 | Summary: Ceph Python 3 bindings | |
185 | Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek Cepha | |
186 | Group: Development/Languages/Python | |
187 | Requires: %{name}-libs = %{version}-%{release} | |
188 | ||
189 | %description -n python3-ceph | |
190 | Ceph Python 3 bindings. | |
191 | ||
192 | %description -n python3-ceph -l pl.UTF-8 | |
193 | Wiązania Pythona 3 do bibliotek Cepha. | |
e5fc70df | 194 | |
4f42482b JB |
195 | %package -n java-cephfs |
196 | Summary: CephFS Java bindings | |
197 | Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS | |
198 | Group: Libraries/Java | |
199 | Requires: %{name}-libs = %{version}-%{release} | |
200 | ||
201 | %description -n java-cephfs | |
202 | CephFS Java bindings. | |
203 | ||
204 | %description -n java-cephfs -l pl.UTF-8 | |
205 | Wiązania Javy do biblioteki CephFS. | |
206 | ||
e5fc70df JB |
207 | %package fuse |
208 | Summary: Ceph FUSE-based client | |
209 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
210 | Group: Base | |
211 | Requires: %{name} = %{version}-%{release} | |
212 | ||
213 | %description fuse | |
214 | FUSE based client for Ceph distributed network file system. | |
215 | ||
216 | %description fuse -l pl.UTF-8 | |
217 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
218 | ||
2a1a6301 JR |
219 | %package radosgw |
220 | Summary: rados REST gateway | |
e5fc70df JB |
221 | Summary(pl.UTF-8): Bramka REST-owa rados |
222 | Group: Applications/System | |
2a1a6301 JR |
223 | #Requires: apache-mod_fcgid |
224 | ||
225 | %description radosgw | |
226 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
227 | implemented as a FastCGI module using libfcgi, and can be used in | |
228 | conjunction with any FastCGI capable web server. | |
229 | ||
e5fc70df JB |
230 | %description radosgw -l pl.UTF-8 |
231 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
232 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
233 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
234 | ||
245cb856 | 235 | %package resource-agents |
8029515d JB |
236 | Summary: OCF Resource Agents for Ceph processes |
237 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
238 | Group: Applications/System | |
239 | Requires: %{name} = %{version}-%{release} | |
240 | Requires: resource-agents | |
241 | ||
245cb856 | 242 | %description resource-agents |
8029515d JB |
243 | OCF Resource Agents for Ceph processes. |
244 | ||
245cb856 | 245 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
246 | Agenci OCF do monitorowania procesów Cepha. |
247 | ||
79dc5cad JB |
248 | %package -n fio-ceph-objectstore |
249 | Summary: FIO engine module for Ceph ObjectStore | |
250 | Summary(pl.UTF-8): Moduł silnika FIO do używania Ceph ObjectStore | |
251 | Group: Libraries | |
252 | Requires: %{name}-libs = %{version}-%{release} | |
253 | %requires_ge_to fio fio-devel | |
254 | ||
255 | %description -n fio-ceph-objectstore | |
256 | This FIO engine allows you to mount and use a ceph object store | |
257 | directly, without having to build a ceph cluster or start any daemons. | |
258 | ||
259 | %description -n fio-ceph-objectstore -l pl.UTF-8 | |
260 | Ten silnik FIO pozwala na bezpośrednie montowanie i używanie | |
261 | przestrzeni obiektów ceph, bez potrzeby budowania klastra ceph czy | |
262 | uruchamiania demonów. | |
263 | ||
2a1a6301 JR |
264 | %prep |
265 | %setup -q | |
266 | %patch0 -p1 | |
96a54cb4 | 267 | %patch1 -p1 |
1b11728e JB |
268 | %patch2 -p0 |
269 | %patch3 -p1 | |
bbcdc7ce JB |
270 | %patch4 -p1 |
271 | %patch5 -p1 | |
1b11728e JB |
272 | %patch6 -p1 |
273 | %patch7 -p1 | |
79dc5cad | 274 | %patch8 -p1 |
2a1a6301 | 275 | |
e3919159 | 276 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ |
1b11728e | 277 | src/{ceph-create-keys,ceph-rest-api,mount.fuse.ceph} \ |
bbcdc7ce JB |
278 | src/brag/client/ceph-brag \ |
279 | src/ceph-disk/ceph_disk/main.py | |
e3919159 | 280 | |
2a1a6301 | 281 | %build |
1b11728e JB |
282 | install -d build |
283 | cd build | |
284 | %cmake .. \ | |
285 | -DALLOCATOR="%{?with_tcmalloc:tcmalloc}%{!?with_tcmalloc:libc}" \ | |
286 | -DFIO_INCLUDE_DIR=/usr/include/fio \ | |
287 | -DPYTHON=%{__python} \ | |
288 | -DSPHINX_BUILD=/usr/bin/sphinx-build-2 \ | |
289 | %{!?with_babeltrace:-DWITH_BABELTRACE=OFF} \ | |
290 | %{?with_java:-DWITH_CEPHFS_JAVA=ON} \ | |
291 | %{?with_dpdk:-DWITH_DPDK=ON} \ | |
292 | %{?with_fio:-DWITH_FIO=ON} \ | |
293 | %{!?with_lttng:-DWITH_LTTNG=OFF} \ | |
294 | -DWITH_LZ4=ON \ | |
295 | %{?with_cryptopp:-DWITH_NSS=OFF} \ | |
296 | -DWITH_OCF=ON \ | |
297 | %{?with_pmem:-DWITH_PMEM=ON} \ | |
298 | %{?with_fcgi:-DWITH_RADOSGW_FCGI_FRONTEND=ON} \ | |
299 | %{?with_spdk:-DWITH_SPDK=ON} \ | |
300 | -DWITH_SYSTEM_BOOST=ON \ | |
301 | %{?with_system_rocksdb:-DWITH_SYSTEM_ROCKSDB=ON} \ | |
302 | -DWITH_SYSTEMD=ON \ | |
303 | %{?with_accelio:-DWITH_XIO=ON} \ | |
304 | %{?with_zfs:-DWITH_ZFS=ON} | |
305 | ||
306 | %{__make} | |
2a1a6301 JR |
307 | |
308 | %install | |
309 | rm -rf $RPM_BUILD_ROOT | |
1b11728e JB |
310 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/{tmp,mon,osd,mds,mgr,radosgw,bootstrap-{osd,mds,rgw,mgr,rbd}},log/ceph/stat,run/ceph} \ |
311 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d,sysconfig} \ | |
312 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},/etc/systemd/system/ceph.target.wants,/sbin} | |
4f42482b | 313 | |
1b11728e JB |
314 | %{__make} -C build install \ |
315 | DESTDIR=$RPM_BUILD_ROOT | |
2a1a6301 | 316 | |
1b11728e JB |
317 | # sanitize paths; no config options for cmake |
318 | %{__mv} $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
319 | %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/systemd/system/* $RPM_BUILD_ROOT%{systemdunitdir} | |
320 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/mount.* $RPM_BUILD_ROOT/sbin | |
321 | ||
322 | cp -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
2a1a6301 | 323 | |
bbcdc7ce JB |
324 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/ceph |
325 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} | |
b6163d67 | 326 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ceph.service |
bbcdc7ce | 327 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ceph.conf |
b6163d67 | 328 | |
1b11728e JB |
329 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
330 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
331 | %py_postclean | |
4f42482b | 332 | |
1b11728e JB |
333 | %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir} |
334 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir} | |
245cb856 | 335 | |
1b11728e JB |
336 | # tests |
337 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ceph_test_* | |
338 | # packaged as %doc | |
339 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/sample.ceph.conf | |
340 | # cleanup | |
341 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/mgr/{.gitignore,dashboard/HACKING.rst,dashboard/static/AdminLTE-2.3.7/{.gitignore,.jshintrc,README.md}} | |
2a1a6301 JR |
342 | |
343 | %clean | |
344 | rm -rf $RPM_BUILD_ROOT | |
345 | ||
346 | %post | |
347 | /sbin/chkconfig --add ceph | |
348 | %service ceph restart | |
349 | ||
bef2a0ad JK |
350 | # actual services are to be enabled on cluster deployment |
351 | %systemd_post %{name}.target | |
352 | ||
2a1a6301 JR |
353 | %preun |
354 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
355 | %service ceph stop |
356 | /sbin/chkconfig --del ceph | |
2a1a6301 | 357 | fi |
bef2a0ad JK |
358 | %systemd_preun %{name}.target |
359 | ||
360 | %postun | |
361 | %systemd_reload | |
2a1a6301 | 362 | |
e5fc70df JB |
363 | %post libs -p /sbin/ldconfig |
364 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 365 | |
4f42482b JB |
366 | %post -n java-cephfs -p /sbin/ldconfig |
367 | %postun -n java-cephfs -p /sbin/ldconfig | |
368 | ||
2a1a6301 JR |
369 | %files |
370 | %defattr(644,root,root,755) | |
9e1f65de | 371 | # COPYING specifies licenses of individual parts |
1b11728e | 372 | %doc AUTHORS COPYING PendingReleaseNotes README.md src/sample.ceph.conf doc/{release-notes,releases}.rst |
2a1a6301 | 373 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
bef2a0ad JK |
374 | %config(noreplace) /etc/sysconfig/ceph |
375 | %dir /etc/systemd/system/ceph.target.wants | |
bbcdc7ce JB |
376 | %{systemdunitdir}/ceph.service |
377 | %{systemdunitdir}/ceph.target | |
bbcdc7ce | 378 | %{systemdunitdir}/ceph-disk@.service |
1b11728e JB |
379 | %{systemdunitdir}/ceph-fuse.target |
380 | %{systemdunitdir}/ceph-fuse@.service | |
bbcdc7ce | 381 | %{systemdunitdir}/ceph-mds.target |
bef2a0ad | 382 | %{systemdunitdir}/ceph-mds@.service |
1b11728e JB |
383 | %{systemdunitdir}/ceph-mgr.target |
384 | %{systemdunitdir}/ceph-mgr@.service | |
bbcdc7ce | 385 | %{systemdunitdir}/ceph-mon.target |
bef2a0ad | 386 | %{systemdunitdir}/ceph-mon@.service |
bbcdc7ce | 387 | %{systemdunitdir}/ceph-osd.target |
bef2a0ad | 388 | %{systemdunitdir}/ceph-osd@.service |
bbcdc7ce JB |
389 | %{systemdunitdir}/ceph-rbd-mirror.target |
390 | %{systemdunitdir}/ceph-rbd-mirror@.service | |
1b11728e | 391 | %{systemdunitdir}/ceph-volume@.service |
bbcdc7ce | 392 | %{systemdunitdir}/rbdmap.service |
bef2a0ad | 393 | %{systemdtmpfilesdir}/ceph.conf |
2a1a6301 JR |
394 | %dir %{_sysconfdir}/ceph |
395 | %attr(755,root,root) %{_bindir}/ceph | |
8c5712e2 | 396 | %attr(755,root,root) %{_bindir}/ceph-authtool |
1b11728e | 397 | %attr(755,root,root) %{_bindir}/ceph-bluestore-tool |
fa260b6c | 398 | %attr(755,root,root) %{_bindir}/ceph-brag |
1b11728e | 399 | %attr(755,root,root) %{_bindir}/ceph-client-debug |
2a1a6301 | 400 | %attr(755,root,root) %{_bindir}/ceph-clsinfo |
8c5712e2 JB |
401 | %attr(755,root,root) %{_bindir}/ceph-conf |
402 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
d91e5335 | 403 | %attr(755,root,root) %{_bindir}/ceph-crush-location |
8c5712e2 | 404 | %attr(755,root,root) %{_bindir}/ceph-debugpack |
60d5543f | 405 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
bbcdc7ce | 406 | %attr(755,root,root) %{_bindir}/ceph-detect-init |
1b11728e | 407 | %attr(755,root,root) %{_bindir}/ceph-kvstore-tool |
2a1a6301 | 408 | %attr(755,root,root) %{_bindir}/ceph-mds |
1b11728e | 409 | %attr(755,root,root) %{_bindir}/ceph-mgr |
8c5712e2 | 410 | %attr(755,root,root) %{_bindir}/ceph-mon |
1b11728e | 411 | %attr(755,root,root) %{_bindir}/ceph-monstore-tool |
7f577810 | 412 | %attr(755,root,root) %{_bindir}/ceph-objectstore-tool |
2a1a6301 | 413 | %attr(755,root,root) %{_bindir}/ceph-osd |
1b11728e | 414 | %attr(755,root,root) %{_bindir}/ceph-osdomap-tool |
5e39e43e | 415 | %attr(755,root,root) %{_bindir}/ceph-post-file |
2a1a6301 | 416 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer |
4f411dc5 | 417 | %attr(755,root,root) %{_bindir}/ceph-rest-api |
8c5712e2 JB |
418 | %attr(755,root,root) %{_bindir}/ceph-run |
419 | %attr(755,root,root) %{_bindir}/ceph-syn | |
1b11728e JB |
420 | %attr(755,root,root) %{_bindir}/ceph_bench_log |
421 | %attr(755,root,root) %{_bindir}/ceph_erasure_code | |
422 | %attr(755,root,root) %{_bindir}/ceph_erasure_code_benchmark | |
423 | %attr(755,root,root) %{_bindir}/ceph_kvstorebench | |
424 | %attr(755,root,root) %{_bindir}/ceph_multi_stress_watch | |
425 | %attr(755,root,root) %{_bindir}/ceph_objectstore_bench | |
426 | %attr(755,root,root) %{_bindir}/ceph_omapbench | |
427 | %attr(755,root,root) %{_bindir}/ceph_perf_local | |
428 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_client | |
429 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_server | |
430 | %attr(755,root,root) %{_bindir}/ceph_perf_objectstore | |
431 | %attr(755,root,root) %{_bindir}/ceph_psim | |
432 | %attr(755,root,root) %{_bindir}/ceph_radosacl | |
433 | %attr(755,root,root) %{_bindir}/ceph_rgw_jsonparser | |
434 | %attr(755,root,root) %{_bindir}/ceph_rgw_multiparser | |
435 | %attr(755,root,root) %{_bindir}/ceph_scratchtool | |
436 | %attr(755,root,root) %{_bindir}/ceph_scratchtoolpp | |
437 | %attr(755,root,root) %{_bindir}/ceph_smalliobench | |
438 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchdumb | |
439 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchfs | |
440 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchrbd | |
441 | %attr(755,root,root) %{_bindir}/ceph_tpbench | |
442 | %attr(755,root,root) %{_bindir}/ceph_xattr_bench | |
bef2a0ad | 443 | %attr(755,root,root) %{_bindir}/cephctl |
bbcdc7ce | 444 | %attr(755,root,root) %{_bindir}/cephfs-data-scan |
ae4b5127 | 445 | %attr(755,root,root) %{_bindir}/cephfs-journal-tool |
b431df60 | 446 | %attr(755,root,root) %{_bindir}/cephfs-table-tool |
8c5712e2 | 447 | %attr(755,root,root) %{_bindir}/crushtool |
2a1a6301 | 448 | %attr(755,root,root) %{_bindir}/librados-config |
8c5712e2 JB |
449 | %attr(755,root,root) %{_bindir}/monmaptool |
450 | %attr(755,root,root) %{_bindir}/osdmaptool | |
2a1a6301 JR |
451 | %attr(755,root,root) %{_bindir}/rados |
452 | %attr(755,root,root) %{_bindir}/rbd | |
8c5712e2 | 453 | %attr(755,root,root) %{_bindir}/rbd-fuse |
bbcdc7ce JB |
454 | %attr(755,root,root) %{_bindir}/rbd-mirror |
455 | %attr(755,root,root) %{_bindir}/rbd-nbd | |
9a1a508c | 456 | %attr(755,root,root) %{_bindir}/rbd-replay |
7f577810 | 457 | %attr(755,root,root) %{_bindir}/rbd-replay-many |
9a1a508c | 458 | %attr(755,root,root) %{_bindir}/rbd-replay-prep |
bbcdc7ce | 459 | %attr(755,root,root) %{_bindir}/rbdmap |
1b11728e | 460 | %attr(755,root,root) %{_sbindir}/ceph-create-keys |
bbcdc7ce | 461 | %attr(755,root,root) %{_sbindir}/ceph-disk |
1b11728e JB |
462 | %attr(755,root,root) %{_sbindir}/ceph-volume |
463 | %attr(755,root,root) %{_sbindir}/ceph-volume-systemd | |
4f42482b JB |
464 | %attr(755,root,root) /sbin/mount.ceph |
465 | %attr(755,root,root) /sbin/mount.fuse.ceph | |
e3919159 | 466 | %if "%{_libexecdir}" != "%{_libdir}" |
c1965bc2 | 467 | %dir %{_libexecdir}/ceph |
e3919159 | 468 | %endif |
bbcdc7ce | 469 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-monstore-update-crush.sh |
c1965bc2 | 470 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-osd-prestart.sh |
c408d7b3 | 471 | %{_libdir}/ceph/ceph_common.sh |
1b11728e | 472 | %{_libdir}/ceph/mgr |
bbcdc7ce | 473 | %dir %{_libdir}/ceph/compressor |
1b11728e | 474 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_lz4.so* |
bbcdc7ce JB |
475 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_snappy.so* |
476 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zlib.so* | |
1b11728e | 477 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zstd.so* |
c408d7b3 | 478 | %dir %{_libdir}/ceph/erasure-code |
58dc957f | 479 | %ifarch %{x8664} |
066d8601 | 480 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_isa.so* |
6fce7056 | 481 | %endif |
c408d7b3 | 482 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so* |
0509a77e | 483 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so* |
bbcdc7ce | 484 | %ifarch %{arm} |
7f577810 JB |
485 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_neon.so* |
486 | %endif | |
487 | %ifarch %{ix86} %{x8664} x32 | |
0509a77e JB |
488 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so* |
489 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so* | |
7f577810 | 490 | %endif |
9a1a508c | 491 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_lrc.so* |
b431df60 | 492 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec.so* |
bbcdc7ce JB |
493 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_generic.so* |
494 | %ifarch %{ix86} %{x8664} x32 | |
495 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse3.so* | |
1b11728e | 496 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse4.so* |
bbcdc7ce | 497 | %endif |
2a1a6301 | 498 | %dir %{_libdir}/rados-classes |
1b11728e JB |
499 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cephfs.so* |
500 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so* | |
501 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_journal.so* | |
502 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so* | |
503 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* | |
504 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so* | |
505 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lua.so* | |
506 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_numops.so* | |
507 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* | |
508 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so* | |
509 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_replica_log.so* | |
510 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* | |
511 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_sdk.so* | |
512 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_statelog.so* | |
513 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_timeindex.so* | |
514 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so* | |
515 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so* | |
5e39e43e | 516 | %{_datadir}/ceph |
2a1a6301 JR |
517 | %config(noreplace) /etc/logrotate.d/ceph |
518 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
519 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
520 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
521 | %{_mandir}/man8/ceph.8* | |
522 | %{_mandir}/man8/ceph-authtool.8* | |
1b11728e | 523 | %{_mandir}/man8/ceph-bluestore-tool.8* |
2a1a6301 JR |
524 | %{_mandir}/man8/ceph-clsinfo.8* |
525 | %{_mandir}/man8/ceph-conf.8* | |
63709ae0 | 526 | %{_mandir}/man8/ceph-create-keys.8* |
2a1a6301 | 527 | %{_mandir}/man8/ceph-debugpack.8* |
60d5543f | 528 | %{_mandir}/man8/ceph-dencoder.8* |
7f577810 | 529 | %{_mandir}/man8/ceph-deploy.8* |
bbcdc7ce | 530 | %{_mandir}/man8/ceph-detect-init.8* |
7f577810 | 531 | %{_mandir}/man8/ceph-disk.8* |
1b11728e | 532 | %{_mandir}/man8/ceph-kvstore-tool.8* |
2a1a6301 JR |
533 | %{_mandir}/man8/ceph-mds.8* |
534 | %{_mandir}/man8/ceph-mon.8* | |
535 | %{_mandir}/man8/ceph-osd.8* | |
5e39e43e | 536 | %{_mandir}/man8/ceph-post-file.8* |
60d5543f | 537 | %{_mandir}/man8/ceph-rbdnamer.8* |
4f411dc5 | 538 | %{_mandir}/man8/ceph-rest-api.8* |
2a1a6301 JR |
539 | %{_mandir}/man8/ceph-run.8* |
540 | %{_mandir}/man8/ceph-syn.8* | |
1b11728e JB |
541 | %{_mandir}/man8/ceph-volume.8* |
542 | %{_mandir}/man8/ceph-volume-systemd.8* | |
2a1a6301 JR |
543 | %{_mandir}/man8/crushtool.8* |
544 | %{_mandir}/man8/librados-config.8* | |
2a1a6301 JR |
545 | %{_mandir}/man8/monmaptool.8* |
546 | %{_mandir}/man8/mount.ceph.8* | |
547 | %{_mandir}/man8/osdmaptool.8* | |
548 | %{_mandir}/man8/rados.8* | |
2a1a6301 | 549 | %{_mandir}/man8/rbd.8* |
8c5712e2 | 550 | %{_mandir}/man8/rbd-fuse.8* |
bbcdc7ce JB |
551 | %{_mandir}/man8/rbd-mirror.8* |
552 | %{_mandir}/man8/rbd-nbd.8* | |
9a1a508c | 553 | %{_mandir}/man8/rbd-replay.8* |
7f577810 | 554 | %{_mandir}/man8/rbd-replay-many.8* |
9a1a508c | 555 | %{_mandir}/man8/rbd-replay-prep.8* |
bbcdc7ce | 556 | %{_mandir}/man8/rbdmap.8* |
60d5543f | 557 | |
2a1a6301 | 558 | %dir %{_localstatedir}/lib/ceph |
1b11728e JB |
559 | %dir %{_localstatedir}/lib/ceph/bootstrap-mds |
560 | %dir %{_localstatedir}/lib/ceph/bootstrap-mgr | |
561 | %dir %{_localstatedir}/lib/ceph/bootstrap-osd | |
562 | %dir %{_localstatedir}/lib/ceph/bootstrap-rbd | |
563 | %dir %{_localstatedir}/lib/ceph/bootstrap-rgw | |
b6163d67 | 564 | %dir %{_localstatedir}/lib/ceph/mds |
1b11728e | 565 | %dir %{_localstatedir}/lib/ceph/mgr |
b6163d67 JK |
566 | %dir %{_localstatedir}/lib/ceph/mon |
567 | %dir %{_localstatedir}/lib/ceph/osd | |
2a1a6301 JR |
568 | %dir %{_localstatedir}/lib/ceph/tmp |
569 | %dir %{_localstatedir}/log/ceph | |
bef2a0ad | 570 | %dir %{_localstatedir}/run/ceph |
2a1a6301 JR |
571 | |
572 | %files libs | |
573 | %defattr(644,root,root,755) | |
574 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
1b11728e | 575 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.2 |
4447516f JB |
576 | %attr(755,root,root) %{_libdir}/libos_tp.so.*.*.* |
577 | %attr(755,root,root) %ghost %{_libdir}/libos_tp.so.1 | |
578 | %attr(755,root,root) %{_libdir}/libosd_tp.so.*.*.* | |
579 | %attr(755,root,root) %ghost %{_libdir}/libosd_tp.so.1 | |
2a1a6301 JR |
580 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* |
581 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
4447516f JB |
582 | %attr(755,root,root) %{_libdir}/librados_tp.so.*.*.* |
583 | %attr(755,root,root) %ghost %{_libdir}/librados_tp.so.2 | |
548e0d3f JB |
584 | %attr(755,root,root) %{_libdir}/libradosstriper.so.*.*.* |
585 | %attr(755,root,root) %ghost %{_libdir}/libradosstriper.so.1 | |
2a1a6301 JR |
586 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* |
587 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
4447516f JB |
588 | %attr(755,root,root) %{_libdir}/librbd_tp.so.*.*.* |
589 | %attr(755,root,root) %ghost %{_libdir}/librbd_tp.so.1 | |
bbcdc7ce JB |
590 | %attr(755,root,root) %{_libdir}/librgw.so.*.*.* |
591 | %attr(755,root,root) %ghost %{_libdir}/librgw.so.2 | |
5b8dadc9 JB |
592 | %dir %{_libdir}/ceph |
593 | %attr(755,root,root) %{_libdir}/ceph/libceph-common.so.0 | |
2a1a6301 | 594 | |
2a1a6301 JR |
595 | %files devel |
596 | %defattr(644,root,root,755) | |
2a1a6301 | 597 | %attr(755,root,root) %{_libdir}/libcephfs.so |
4447516f JB |
598 | %attr(755,root,root) %{_libdir}/libos_tp.so |
599 | %attr(755,root,root) %{_libdir}/libosd_tp.so | |
2a1a6301 | 600 | %attr(755,root,root) %{_libdir}/librados.so |
4447516f | 601 | %attr(755,root,root) %{_libdir}/librados_tp.so |
548e0d3f | 602 | %attr(755,root,root) %{_libdir}/libradosstriper.so |
2a1a6301 | 603 | %attr(755,root,root) %{_libdir}/librbd.so |
4447516f | 604 | %attr(755,root,root) %{_libdir}/librbd_tp.so |
bbcdc7ce | 605 | %attr(755,root,root) %{_libdir}/librgw.so |
5b8dadc9 | 606 | %attr(755,root,root) %{_libdir}/ceph/libceph-common.so |
e5fc70df JB |
607 | %{_includedir}/cephfs |
608 | %{_includedir}/rados | |
548e0d3f | 609 | %{_includedir}/radosstriper |
e5fc70df | 610 | %{_includedir}/rbd |
2a1a6301 | 611 | |
e5fc70df JB |
612 | %files -n python-ceph |
613 | %defattr(644,root,root,755) | |
bbcdc7ce JB |
614 | %attr(755,root,root) %{py_sitedir}/cephfs.so |
615 | %attr(755,root,root) %{py_sitedir}/rados.so | |
616 | %attr(755,root,root) %{py_sitedir}/rbd.so | |
1b11728e | 617 | %attr(755,root,root) %{py_sitedir}/rgw.so |
bbcdc7ce | 618 | %{py_sitedir}/ceph_detect_init |
bbcdc7ce | 619 | %{py_sitedir}/ceph_detect_init-1.0.1-py*.egg-info |
1b11728e | 620 | %{py_sitedir}/ceph_disk |
bbcdc7ce | 621 | %{py_sitedir}/ceph_disk-1.0.0-py*.egg-info |
1b11728e JB |
622 | %{py_sitedir}/ceph_volume |
623 | %{py_sitedir}/ceph_volume-1.0.0-py*.egg-info | |
624 | %{py_sitedir}/cephfs-2.0.0-py*.egg-info | |
625 | %{py_sitedir}/rados-2.0.0-py*.egg-info | |
626 | %{py_sitedir}/rbd-2.0.0-py*.egg-info | |
627 | %{py_sitedir}/rgw-2.0.0-py*.egg-info | |
67f1bff3 | 628 | %{py_sitescriptdir}/ceph_argparse.py[co] |
bbcdc7ce | 629 | %{py_sitescriptdir}/ceph_daemon.py[co] |
4f411dc5 | 630 | %{py_sitescriptdir}/ceph_rest_api.py[co] |
bbcdc7ce | 631 | %{py_sitescriptdir}/ceph_volume_client.py[co] |
e5fc70df | 632 | |
1b11728e JB |
633 | %files -n python3-ceph |
634 | %defattr(644,root,root,755) | |
635 | %attr(755,root,root) %{py3_sitedir}/cephfs.cpython-*.so | |
636 | %attr(755,root,root) %{py3_sitedir}/rados.cpython-*.so | |
637 | %attr(755,root,root) %{py3_sitedir}/rbd.cpython-*.so | |
638 | %attr(755,root,root) %{py3_sitedir}/rgw.cpython-*.so | |
639 | %{py3_sitedir}/cephfs-2.0.0-py*.egg-info | |
640 | %{py3_sitedir}/rados-2.0.0-py*.egg-info | |
641 | %{py3_sitedir}/rbd-2.0.0-py*.egg-info | |
642 | %{py3_sitedir}/rgw-2.0.0-py*.egg-info | |
643 | %{py3_sitescriptdir}/ceph_argparse.py | |
644 | %{py3_sitescriptdir}/ceph_daemon.py | |
645 | %{py3_sitescriptdir}/ceph_volume_client.py | |
646 | %{py3_sitescriptdir}/__pycache__/ceph_argparse.cpython-*.py[co] | |
647 | %{py3_sitescriptdir}/__pycache__/ceph_daemon.cpython-*.py[co] | |
648 | %{py3_sitescriptdir}/__pycache__/ceph_volume_client.cpython-*.py[co] | |
649 | ||
4f42482b JB |
650 | %if %{with java} |
651 | %files -n java-cephfs | |
652 | %defattr(644,root,root,755) | |
653 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.* | |
654 | %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1 | |
655 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so | |
656 | %{_javadir}/libcephfs.jar | |
1b11728e | 657 | %{_javadir}/libcephfs-test.jar |
4f42482b JB |
658 | %endif |
659 | ||
e5fc70df JB |
660 | %files fuse |
661 | %defattr(644,root,root,755) | |
e5fc70df JB |
662 | %attr(755,root,root) %{_bindir}/ceph-fuse |
663 | %{_mandir}/man8/ceph-fuse.8* | |
664 | ||
2a1a6301 JR |
665 | %files radosgw |
666 | %defattr(644,root,root,755) | |
667 | %attr(755,root,root) %{_bindir}/radosgw | |
668 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
1b11728e | 669 | %attr(755,root,root) %{_bindir}/radosgw-es |
bbcdc7ce JB |
670 | %attr(755,root,root) %{_bindir}/radosgw-object-expirer |
671 | %attr(755,root,root) %{_bindir}/radosgw-token | |
672 | %{systemdunitdir}/ceph-radosgw.target | |
673 | %{systemdunitdir}/ceph-radosgw@.service | |
2a1a6301 | 674 | %{_sysconfdir}/bash_completion.d/radosgw-admin |
1b11728e JB |
675 | %dir %{_localstatedir}/lib/ceph/radosgw |
676 | %{_mandir}/man8/radosgw.8* | |
677 | %{_mandir}/man8/radosgw-admin.8* | |
2a1a6301 | 678 | |
245cb856 | 679 | %files resource-agents |
8029515d JB |
680 | %defattr(644,root,root,755) |
681 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
8029515d | 682 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd |
79dc5cad JB |
683 | |
684 | %if %{with fio} | |
685 | %files -n fio-ceph-objectstore | |
686 | %defattr(644,root,root,755) | |
687 | %doc src/test/fio/{README.md,ceph-*.conf,ceph-*.fio} | |
688 | %attr(755,root,root) %{_libdir}/libfio_ceph_objectstore.so | |
689 | %endif |