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