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