]>
Commit | Line | Data |
---|---|---|
b6163d67 | 1 | # TODO: |
bbcdc7ce JB |
2 | # - SPDK (libpciaccess dpdk/rte_config.h -lrte_eal -lrte_mempool -lrte_ring) |
3 | # - proper init scripts if non-systemd boot is too be supported | |
4 | # (upstream scripts seem overcomplicated and hardly useful) | |
5 | # - run as non-root user | |
b6163d67 | 6 | # |
19c20e80 JR |
7 | # Note on versioning: http://docs.ceph.com/docs/master/releases/ |
8 | # | |
714b93ed | 9 | # Conditional build: |
7f577810 | 10 | %bcond_without java # Java binding |
bbcdc7ce | 11 | %bcond_with accelio # Accelio transport support [needs update for internal API changes] |
b1fa8ffe | 12 | %bcond_with dpdk # DPDK (Ceph SPDK) support |
7f577810 | 13 | %bcond_with kinetic # Kinetic storage support [needs update for internal API changes] |
bbcdc7ce JB |
14 | %bcond_without rocksdb # RocksDB storage support |
15 | %bcond_with zfs # ZFS support [not ready for zfs 0.8.x] | |
7f577810 JB |
16 | %bcond_without lttng # LTTng tracing |
17 | %bcond_without babeltrace # Babeltrace traces support | |
18 | %bcond_without tcmalloc # tcmalloc allocator | |
6fce7056 JR |
19 | |
20 | %ifarch x32 | |
21 | %undefine with_tcmalloc | |
22 | %endif | |
714b93ed | 23 | # |
2a1a6301 | 24 | Summary: User space components of the Ceph file system |
e5fc70df | 25 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 26 | Name: ceph |
bbcdc7ce JB |
27 | Version: 10.2.11 |
28 | Release: 1 | |
9e1f65de | 29 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 | 30 | Group: Base |
4447516f | 31 | Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz |
bbcdc7ce | 32 | # Source0-md5: 09d18eb8d8d06893e9496657f03427a0 |
b6163d67 | 33 | Source1: ceph.sysconfig |
bbcdc7ce JB |
34 | Source2: cephctl |
35 | Source3: ceph.tmpfiles | |
2a1a6301 JR |
36 | Patch0: %{name}-init-fix.patch |
37 | Patch1: %{name}.logrotate.patch | |
bbcdc7ce | 38 | Patch2: %{name}-link.patch |
c1965bc2 | 39 | Patch3: boost.patch |
bbcdc7ce JB |
40 | Patch4: %{name}-assert.patch |
41 | Patch5: %{name}-python.patch | |
e3919159 | 42 | URL: https://ceph.io/ |
477a1b20 | 43 | %{?with_accelio:BuildRequires: accelio-devel} |
714b93ed JB |
44 | BuildRequires: autoconf >= 2.59 |
45 | BuildRequires: automake | |
7f577810 | 46 | %{?with_babeltrace:BuildRequires: babeltrace-devel} |
714b93ed | 47 | BuildRequires: boost-devel >= 1.34 |
2a1a6301 | 48 | BuildRequires: curl-devel |
b1fa8ffe JB |
49 | # rte_eal rte_mempool rte_ring |
50 | %{?with_dpdk:BuildRequires: dpdk-devel} | |
714b93ed | 51 | BuildRequires: expat-devel >= 1.95 |
2a1a6301 JR |
52 | BuildRequires: fcgi-devel |
53 | BuildRequires: gdbm-devel | |
7db8c214 | 54 | %if %{with java} |
4f42482b JB |
55 | BuildRequires: jdk |
56 | %endif | |
2a1a6301 | 57 | BuildRequires: keyutils-devel |
9a1a508c | 58 | %{?with_kinetic:BuildRequires: kinetic-cpp-client} |
548e0d3f | 59 | BuildRequires: leveldb-devel >= 1.2 |
714b93ed | 60 | BuildRequires: libaio-devel |
2a1a6301 | 61 | BuildRequires: libatomic_ops |
548e0d3f | 62 | BuildRequires: libblkid-devel >= 2.17 |
714b93ed | 63 | BuildRequires: libedit-devel >= 2.11 |
2a1a6301 | 64 | BuildRequires: libfuse-devel |
477a1b20 | 65 | %{?with_accelio:BuildRequires: libibverbs-devel} |
2a1a6301 | 66 | BuildRequires: libltdl-devel |
477a1b20 | 67 | %{?with_accelio:BuildRequires: librdmacm-devel} |
bbcdc7ce | 68 | BuildRequires: libstdc++-devel >= 6:4.7 |
6fce7056 | 69 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} |
714b93ed | 70 | BuildRequires: libtool >= 2:1.5 |
2a1a6301 | 71 | BuildRequires: libuuid-devel |
bbcdc7ce | 72 | BuildRequires: libxml2-devel >= 2.0 |
7f577810 | 73 | %{?with_lttng:BuildRequires: lttng-ust-devel} |
bbcdc7ce JB |
74 | BuildRequires: nss-devel >= 3 |
75 | BuildRequires: openldap-devel | |
76 | BuildRequires: openssl-devel | |
e5fc70df | 77 | BuildRequires: perl-base |
2a1a6301 | 78 | BuildRequires: pkgconfig |
bbcdc7ce JB |
79 | BuildRequires: python >= 1:2.7 |
80 | BuildRequires: python-Cython | |
9a1a508c | 81 | %{?with_rocksdb:BuildRequires: rocksdb-devel} |
bef2a0ad | 82 | BuildRequires: rpmbuild(macros) >= 1.671 |
e3919159 | 83 | BuildRequires: sed >= 4.0 |
f965be58 | 84 | BuildRequires: snappy-devel |
bbcdc7ce | 85 | BuildRequires: sphinx-pdg-2 >= 1.0 |
548e0d3f | 86 | BuildRequires: udev-devel |
bbcdc7ce | 87 | #BuildRequires: virtualenv disabled in python patch |
b1fa8ffe | 88 | %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} |
fa260b6c | 89 | BuildRequires: xfsprogs-devel |
7db8c214 JB |
90 | %ifarch %{x8664} |
91 | BuildRequires: yasm | |
92 | %endif | |
430360a9 | 93 | %{?with_zfs:BuildRequires: zfs-devel} |
bbcdc7ce | 94 | BuildRequires: zlib-devel |
2a1a6301 JR |
95 | Requires(post,preun): /sbin/chkconfig |
96 | Requires(preun): rc-scripts | |
97 | Requires: %{name}-libs = %{version}-%{release} | |
7cabda16 | 98 | Requires: python-%{name} = %{version}-%{release} |
bef2a0ad | 99 | Requires: systemd-units >= 38 |
60d5543f | 100 | Obsoletes: gcephtool |
7db8c214 | 101 | Obsoletes: hadoop-cephfs |
2a1a6301 JR |
102 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
103 | ||
bbcdc7ce | 104 | %define skip_post_check_so libceph_example.so.* libceph_snappy.so.* libceph_zlib.so.* libcls_.*.so.* libec_.*.so.* |
2a1a6301 JR |
105 | |
106 | %description | |
107 | Ceph is a distributed network file system designed to provide | |
108 | excellent performance, reliability, and scalability. | |
109 | ||
e5fc70df JB |
110 | %description -l pl.UTF-8 |
111 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
112 | dobrej wydajności, wiarygodności i skalowalności. | |
113 | ||
2a1a6301 JR |
114 | %package libs |
115 | Summary: Ceph shared libraries | |
e5fc70df | 116 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 JR |
117 | Group: Libraries |
118 | ||
119 | %description libs | |
120 | Ceph shared libraries. | |
121 | ||
e5fc70df JB |
122 | %description libs -l pl.UTF-8 |
123 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
124 | |
125 | %package devel | |
e5fc70df JB |
126 | Summary: Ceph header files |
127 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
96c29907 | 128 | License: LGPL v2.1 |
2a1a6301 JR |
129 | Group: Development/Libraries |
130 | Requires: %{name}-libs = %{version}-%{release} | |
96c29907 | 131 | Requires: boost-devel >= 1.34 |
bbcdc7ce JB |
132 | Requires: curl-devel |
133 | Requires: expat-devel | |
134 | Requires: fcgi-devel | |
135 | Requires: nss-devel >= 3 | |
96c29907 JB |
136 | Requires: leveldb-devel |
137 | Requires: libatomic_ops | |
bbcdc7ce JB |
138 | Requires: libblkid-devel >= 2.17 |
139 | Requires: libstdc++-devel >= 6:4.7 | |
96c29907 | 140 | Requires: libuuid-devel |
bbcdc7ce JB |
141 | %{?with_lttng:Requires: lttng-ust-devel} |
142 | Requires: openldap-devel | |
2a1a6301 JR |
143 | |
144 | %description devel | |
145 | This package contains the headers needed to develop programs that use | |
146 | Ceph. | |
147 | ||
e5fc70df JB |
148 | %description devel -l pl.UTF-8 |
149 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
150 | wykorzystujących Cepha. | |
151 | ||
2a1a6301 JR |
152 | %package static |
153 | Summary: Ceph static libraries | |
e5fc70df | 154 | Summary(pl.UTF-8): Biblioteki statyczne Cepha |
96c29907 | 155 | License: LGPL v2.1 |
2a1a6301 JR |
156 | Group: Development/Libraries |
157 | Requires: %{name}-devel = %{version}-%{release} | |
158 | ||
159 | %description static | |
160 | This package contains static Ceph libraries. | |
161 | ||
e5fc70df JB |
162 | %description static -l pl.UTF-8 |
163 | Ten pakiet zawiera biblioteki statyczne Cepha. | |
164 | ||
165 | %package -n python-ceph | |
166 | Summary: Ceph Python bindings | |
167 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha | |
168 | Group: Development/Languages/Python | |
169 | Requires: %{name}-libs = %{version}-%{release} | |
170 | ||
171 | %description -n python-ceph | |
172 | Ceph Python bindings. | |
173 | ||
174 | %description -n python-ceph -l pl.UTF-8 | |
175 | Wiązania Pythona do bibliotek Cepha. | |
176 | ||
4f42482b JB |
177 | %package -n java-cephfs |
178 | Summary: CephFS Java bindings | |
179 | Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS | |
180 | Group: Libraries/Java | |
181 | Requires: %{name}-libs = %{version}-%{release} | |
182 | ||
183 | %description -n java-cephfs | |
184 | CephFS Java bindings. | |
185 | ||
186 | %description -n java-cephfs -l pl.UTF-8 | |
187 | Wiązania Javy do biblioteki CephFS. | |
188 | ||
e5fc70df JB |
189 | %package fuse |
190 | Summary: Ceph FUSE-based client | |
191 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
192 | Group: Base | |
193 | Requires: %{name} = %{version}-%{release} | |
194 | ||
195 | %description fuse | |
196 | FUSE based client for Ceph distributed network file system. | |
197 | ||
198 | %description fuse -l pl.UTF-8 | |
199 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
200 | ||
2a1a6301 JR |
201 | %package radosgw |
202 | Summary: rados REST gateway | |
e5fc70df JB |
203 | Summary(pl.UTF-8): Bramka REST-owa rados |
204 | Group: Applications/System | |
2a1a6301 JR |
205 | #Requires: apache-mod_fcgid |
206 | ||
207 | %description radosgw | |
208 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
209 | implemented as a FastCGI module using libfcgi, and can be used in | |
210 | conjunction with any FastCGI capable web server. | |
211 | ||
e5fc70df JB |
212 | %description radosgw -l pl.UTF-8 |
213 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
214 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
215 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
216 | ||
245cb856 | 217 | %package resource-agents |
8029515d JB |
218 | Summary: OCF Resource Agents for Ceph processes |
219 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
220 | Group: Applications/System | |
221 | Requires: %{name} = %{version}-%{release} | |
222 | Requires: resource-agents | |
223 | ||
245cb856 | 224 | %description resource-agents |
8029515d JB |
225 | OCF Resource Agents for Ceph processes. |
226 | ||
245cb856 | 227 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
228 | Agenci OCF do monitorowania procesów Cepha. |
229 | ||
2a1a6301 JR |
230 | %prep |
231 | %setup -q | |
232 | %patch0 -p1 | |
96a54cb4 | 233 | %patch1 -p1 |
19c20e80 | 234 | %patch2 -p1 |
c1965bc2 | 235 | %patch3 -p0 |
bbcdc7ce JB |
236 | %patch4 -p1 |
237 | %patch5 -p1 | |
2a1a6301 | 238 | |
e3919159 | 239 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ |
bbcdc7ce JB |
240 | src/{ceph-create-keys,ceph-rest-api} \ |
241 | src/brag/client/ceph-brag \ | |
242 | src/ceph-disk/ceph_disk/main.py | |
e3919159 JB |
243 | |
244 | # adjust rule used to create ceph from ceph.in | |
bbcdc7ce | 245 | %{__sed} -i -e 's,|/usr/bin/env python|,|%{__python}|,' src/Makefile-client.am |
e3919159 | 246 | |
2a1a6301 | 247 | %build |
c73ebfa8 JR |
248 | %{__libtoolize} |
249 | %{__aclocal} -I m4 | |
250 | %{__autoconf} | |
251 | %{__autoheader} | |
252 | %{__automake} | |
4447516f | 253 | # required by xfs headers (for off64_t) |
25225282 | 254 | CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64" |
c1654e29 JB |
255 | # ac_cv_prog_uudecode_base64=no is a hack to compile Test.class instead of |
256 | # using included one which fails with Sun/Oracle JDK 1.6 | |
2a1a6301 | 257 | %configure \ |
ac843c96 | 258 | %{?with_java:JAVAC=/usr/bin/javac} \ |
ae4b5127 | 259 | %{?with_zfs:LIBZFS_CFLAGS="-I/usr/include/libzfs -I/usr/include/libspl"} \ |
bbcdc7ce JB |
260 | PYTHON=%{__python} \ |
261 | SPHINX_BUILD=/usr/bin/sphinx-build-2 \ | |
c1654e29 | 262 | ac_cv_prog_uudecode_base64=no \ |
2a1a6301 | 263 | --sbindir=/sbin \ |
7f577810 | 264 | %{!?with_babeltrace:--without-babeltrace} \ |
6fce7056 JR |
265 | --without-cryptopp \ |
266 | --with-nss \ | |
267 | %{!?with_tcmalloc:--without-tcmalloc} \ | |
9a1a508c JB |
268 | %{?with_kinetic:--with-kinetic} \ |
269 | %{?with_rocksdb:--with-librocksdb} \ | |
bbcdc7ce | 270 | --without-librocksdb-static \ |
430360a9 | 271 | %{?with_zfs:--with-libzfs} \ |
7f577810 | 272 | %{!?with_lttng:--without-lttng} \ |
8029515d | 273 | --with-ocf \ |
2a1a6301 | 274 | --with-radosgw \ |
b1fa8ffe | 275 | %{?with_dpdk:--with-spdk} \ |
f965be58 | 276 | --with-system-leveldb \ |
bbcdc7ce | 277 | --with-systemd-unit-dir=%{systemdunitdir} \ |
4f42482b | 278 | %{?with_java:--enable-cephfs-java --with-jdk-dir=%{_jvmdir}/java} \ |
477a1b20 JB |
279 | --disable-silent-rules \ |
280 | %{?with_accelio:--enable-xio} | |
2a1a6301 | 281 | |
5e0a173c | 282 | %{__make} -j1 |
2a1a6301 JR |
283 | |
284 | %install | |
285 | rm -rf $RPM_BUILD_ROOT | |
bef2a0ad JK |
286 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/{tmp,mon,osd,mds},log/ceph/stat,run/ceph} \ |
287 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d,sysconfig} \ | |
288 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},/etc/systemd/system/ceph.target.wants} | |
4f42482b | 289 | |
2a1a6301 | 290 | %{__make} install \ |
4f42482b JB |
291 | DESTDIR=$RPM_BUILD_ROOT \ |
292 | javadir=%{_javadir} | |
2a1a6301 JR |
293 | |
294 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
295 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
296 | ||
bbcdc7ce JB |
297 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/ceph |
298 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} | |
b6163d67 | 299 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ceph.service |
bbcdc7ce | 300 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ceph.conf |
b6163d67 | 301 | |
7e46b55b | 302 | # loadable modules |
bbcdc7ce JB |
303 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/compressor/*.{a,la} |
304 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/erasure-code/*.la | |
305 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.la | |
4f42482b JB |
306 | %if %{with java} |
307 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcephfs_jni.{la,a} | |
308 | %endif | |
309 | ||
7e46b55b JB |
310 | # packaged as %doc |
311 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config} | |
245cb856 | 312 | |
714b93ed | 313 | %py_postclean |
2a1a6301 JR |
314 | |
315 | %clean | |
316 | rm -rf $RPM_BUILD_ROOT | |
317 | ||
318 | %post | |
319 | /sbin/chkconfig --add ceph | |
320 | %service ceph restart | |
321 | ||
bef2a0ad JK |
322 | # actual services are to be enabled on cluster deployment |
323 | %systemd_post %{name}.target | |
324 | ||
2a1a6301 JR |
325 | %preun |
326 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
327 | %service ceph stop |
328 | /sbin/chkconfig --del ceph | |
2a1a6301 | 329 | fi |
bef2a0ad JK |
330 | %systemd_preun %{name}.target |
331 | ||
332 | %postun | |
333 | %systemd_reload | |
2a1a6301 | 334 | |
e5fc70df JB |
335 | %post libs -p /sbin/ldconfig |
336 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 337 | |
4f42482b JB |
338 | %post -n java-cephfs -p /sbin/ldconfig |
339 | %postun -n java-cephfs -p /sbin/ldconfig | |
340 | ||
2a1a6301 JR |
341 | %files |
342 | %defattr(644,root,root,755) | |
9e1f65de JB |
343 | # COPYING specifies licenses of individual parts |
344 | %doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config | |
2a1a6301 | 345 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
bef2a0ad JK |
346 | %config(noreplace) /etc/sysconfig/ceph |
347 | %dir /etc/systemd/system/ceph.target.wants | |
bbcdc7ce JB |
348 | %{systemdunitdir}/ceph.service |
349 | %{systemdunitdir}/ceph.target | |
350 | %{systemdunitdir}/ceph-create-keys@.service | |
351 | %{systemdunitdir}/ceph-disk@.service | |
352 | %{systemdunitdir}/ceph-mds.target | |
bef2a0ad | 353 | %{systemdunitdir}/ceph-mds@.service |
bbcdc7ce | 354 | %{systemdunitdir}/ceph-mon.target |
bef2a0ad | 355 | %{systemdunitdir}/ceph-mon@.service |
bbcdc7ce | 356 | %{systemdunitdir}/ceph-osd.target |
bef2a0ad | 357 | %{systemdunitdir}/ceph-osd@.service |
bbcdc7ce JB |
358 | %{systemdunitdir}/ceph-rbd-mirror.target |
359 | %{systemdunitdir}/ceph-rbd-mirror@.service | |
360 | %{systemdunitdir}/rbdmap.service | |
bef2a0ad | 361 | %{systemdtmpfilesdir}/ceph.conf |
2a1a6301 JR |
362 | %dir %{_sysconfdir}/ceph |
363 | %attr(755,root,root) %{_bindir}/ceph | |
8c5712e2 | 364 | %attr(755,root,root) %{_bindir}/ceph-authtool |
bbcdc7ce | 365 | %attr(755,root,root) %{_bindir}/ceph-bluefs-tool |
fa260b6c | 366 | %attr(755,root,root) %{_bindir}/ceph-brag |
2a1a6301 | 367 | %attr(755,root,root) %{_bindir}/ceph-clsinfo |
8c5712e2 JB |
368 | %attr(755,root,root) %{_bindir}/ceph-conf |
369 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
d91e5335 | 370 | %attr(755,root,root) %{_bindir}/ceph-crush-location |
8c5712e2 | 371 | %attr(755,root,root) %{_bindir}/ceph-debugpack |
60d5543f | 372 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
bbcdc7ce | 373 | %attr(755,root,root) %{_bindir}/ceph-detect-init |
2a1a6301 | 374 | %attr(755,root,root) %{_bindir}/ceph-mds |
8c5712e2 | 375 | %attr(755,root,root) %{_bindir}/ceph-mon |
7f577810 | 376 | %attr(755,root,root) %{_bindir}/ceph-objectstore-tool |
2a1a6301 | 377 | %attr(755,root,root) %{_bindir}/ceph-osd |
5e39e43e | 378 | %attr(755,root,root) %{_bindir}/ceph-post-file |
2a1a6301 | 379 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer |
4f411dc5 | 380 | %attr(755,root,root) %{_bindir}/ceph-rest-api |
8c5712e2 JB |
381 | %attr(755,root,root) %{_bindir}/ceph-run |
382 | %attr(755,root,root) %{_bindir}/ceph-syn | |
bef2a0ad | 383 | %attr(755,root,root) %{_bindir}/cephctl |
8c5712e2 | 384 | %attr(755,root,root) %{_bindir}/cephfs |
bbcdc7ce | 385 | %attr(755,root,root) %{_bindir}/cephfs-data-scan |
ae4b5127 | 386 | %attr(755,root,root) %{_bindir}/cephfs-journal-tool |
b431df60 | 387 | %attr(755,root,root) %{_bindir}/cephfs-table-tool |
8c5712e2 | 388 | %attr(755,root,root) %{_bindir}/crushtool |
2a1a6301 | 389 | %attr(755,root,root) %{_bindir}/librados-config |
8c5712e2 JB |
390 | %attr(755,root,root) %{_bindir}/monmaptool |
391 | %attr(755,root,root) %{_bindir}/osdmaptool | |
2a1a6301 JR |
392 | %attr(755,root,root) %{_bindir}/rados |
393 | %attr(755,root,root) %{_bindir}/rbd | |
8c5712e2 | 394 | %attr(755,root,root) %{_bindir}/rbd-fuse |
bbcdc7ce JB |
395 | %attr(755,root,root) %{_bindir}/rbd-mirror |
396 | %attr(755,root,root) %{_bindir}/rbd-nbd | |
9a1a508c | 397 | %attr(755,root,root) %{_bindir}/rbd-replay |
7f577810 | 398 | %attr(755,root,root) %{_bindir}/rbd-replay-many |
9a1a508c | 399 | %attr(755,root,root) %{_bindir}/rbd-replay-prep |
bbcdc7ce JB |
400 | %attr(755,root,root) %{_bindir}/rbdmap |
401 | %attr(755,root,root) %{_sbindir}/ceph-disk | |
8dda6d30 | 402 | %attr(755,root,root) /sbin/ceph-create-keys |
8dda6d30 | 403 | %attr(755,root,root) /sbin/ceph-disk-udev |
4f42482b JB |
404 | %attr(755,root,root) /sbin/mount.ceph |
405 | %attr(755,root,root) /sbin/mount.fuse.ceph | |
e3919159 | 406 | %if "%{_libexecdir}" != "%{_libdir}" |
c1965bc2 | 407 | %dir %{_libexecdir}/ceph |
e3919159 | 408 | %endif |
bbcdc7ce | 409 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-monstore-update-crush.sh |
c1965bc2 | 410 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-osd-prestart.sh |
c408d7b3 JB |
411 | %dir %{_libdir}/ceph |
412 | %{_libdir}/ceph/ceph_common.sh | |
bbcdc7ce JB |
413 | %dir %{_libdir}/ceph/compressor |
414 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_example.so* | |
415 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_snappy.so* | |
416 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zlib.so* | |
c408d7b3 | 417 | %dir %{_libdir}/ceph/erasure-code |
58dc957f | 418 | %ifarch %{x8664} |
066d8601 | 419 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_isa.so* |
6fce7056 | 420 | %endif |
c408d7b3 | 421 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so* |
0509a77e | 422 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so* |
bbcdc7ce | 423 | %ifarch %{arm} |
7f577810 JB |
424 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_neon.so* |
425 | %endif | |
426 | %ifarch %{ix86} %{x8664} x32 | |
0509a77e | 427 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so* |
7f577810 JB |
428 | %endif |
429 | %ifarch %{x8664} x32 | |
0509a77e | 430 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so* |
7f577810 | 431 | %endif |
9a1a508c | 432 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_lrc.so* |
b431df60 | 433 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec.so* |
bbcdc7ce JB |
434 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_generic.so* |
435 | %ifarch %{ix86} %{x8664} x32 | |
436 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse3.so* | |
437 | %endif | |
2a1a6301 | 438 | %dir %{_libdir}/rados-classes |
bbcdc7ce JB |
439 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cephfs.so |
440 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so | |
441 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_journal.so | |
442 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so | |
443 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so | |
444 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so | |
445 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_numops.so | |
446 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so | |
447 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so | |
448 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_replica_log.so | |
449 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so | |
450 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_statelog.so | |
451 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_timeindex.so | |
452 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so | |
453 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so | |
5e39e43e | 454 | %{_datadir}/ceph |
2a1a6301 JR |
455 | %config(noreplace) /etc/logrotate.d/ceph |
456 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
457 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
458 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
459 | %{_mandir}/man8/ceph.8* | |
460 | %{_mandir}/man8/ceph-authtool.8* | |
461 | %{_mandir}/man8/ceph-clsinfo.8* | |
462 | %{_mandir}/man8/ceph-conf.8* | |
63709ae0 | 463 | %{_mandir}/man8/ceph-create-keys.8* |
2a1a6301 | 464 | %{_mandir}/man8/ceph-debugpack.8* |
60d5543f | 465 | %{_mandir}/man8/ceph-dencoder.8* |
7f577810 | 466 | %{_mandir}/man8/ceph-deploy.8* |
bbcdc7ce | 467 | %{_mandir}/man8/ceph-detect-init.8* |
7f577810 | 468 | %{_mandir}/man8/ceph-disk.8* |
2a1a6301 JR |
469 | %{_mandir}/man8/ceph-mds.8* |
470 | %{_mandir}/man8/ceph-mon.8* | |
471 | %{_mandir}/man8/ceph-osd.8* | |
5e39e43e | 472 | %{_mandir}/man8/ceph-post-file.8* |
60d5543f | 473 | %{_mandir}/man8/ceph-rbdnamer.8* |
4f411dc5 | 474 | %{_mandir}/man8/ceph-rest-api.8* |
2a1a6301 JR |
475 | %{_mandir}/man8/ceph-run.8* |
476 | %{_mandir}/man8/ceph-syn.8* | |
477 | %{_mandir}/man8/cephfs.8* | |
478 | %{_mandir}/man8/crushtool.8* | |
479 | %{_mandir}/man8/librados-config.8* | |
2a1a6301 JR |
480 | %{_mandir}/man8/monmaptool.8* |
481 | %{_mandir}/man8/mount.ceph.8* | |
482 | %{_mandir}/man8/osdmaptool.8* | |
483 | %{_mandir}/man8/rados.8* | |
484 | %{_mandir}/man8/radosgw.8* | |
485 | %{_mandir}/man8/radosgw-admin.8* | |
486 | %{_mandir}/man8/rbd.8* | |
8c5712e2 | 487 | %{_mandir}/man8/rbd-fuse.8* |
bbcdc7ce JB |
488 | %{_mandir}/man8/rbd-mirror.8* |
489 | %{_mandir}/man8/rbd-nbd.8* | |
9a1a508c | 490 | %{_mandir}/man8/rbd-replay.8* |
7f577810 | 491 | %{_mandir}/man8/rbd-replay-many.8* |
9a1a508c | 492 | %{_mandir}/man8/rbd-replay-prep.8* |
bbcdc7ce | 493 | %{_mandir}/man8/rbdmap.8* |
60d5543f | 494 | |
2a1a6301 | 495 | %dir %{_localstatedir}/lib/ceph |
b6163d67 JK |
496 | %dir %{_localstatedir}/lib/ceph/mds |
497 | %dir %{_localstatedir}/lib/ceph/mon | |
498 | %dir %{_localstatedir}/lib/ceph/osd | |
2a1a6301 JR |
499 | %dir %{_localstatedir}/lib/ceph/tmp |
500 | %dir %{_localstatedir}/log/ceph | |
bef2a0ad | 501 | %dir %{_localstatedir}/run/ceph |
2a1a6301 JR |
502 | |
503 | %files libs | |
504 | %defattr(644,root,root,755) | |
505 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
506 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
4447516f JB |
507 | %attr(755,root,root) %{_libdir}/libos_tp.so.*.*.* |
508 | %attr(755,root,root) %ghost %{_libdir}/libos_tp.so.1 | |
509 | %attr(755,root,root) %{_libdir}/libosd_tp.so.*.*.* | |
510 | %attr(755,root,root) %ghost %{_libdir}/libosd_tp.so.1 | |
2a1a6301 JR |
511 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* |
512 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
4447516f JB |
513 | %attr(755,root,root) %{_libdir}/librados_tp.so.*.*.* |
514 | %attr(755,root,root) %ghost %{_libdir}/librados_tp.so.2 | |
548e0d3f JB |
515 | %attr(755,root,root) %{_libdir}/libradosstriper.so.*.*.* |
516 | %attr(755,root,root) %ghost %{_libdir}/libradosstriper.so.1 | |
2a1a6301 JR |
517 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* |
518 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
4447516f JB |
519 | %attr(755,root,root) %{_libdir}/librbd_tp.so.*.*.* |
520 | %attr(755,root,root) %ghost %{_libdir}/librbd_tp.so.1 | |
bbcdc7ce JB |
521 | %attr(755,root,root) %{_libdir}/librgw.so.*.*.* |
522 | %attr(755,root,root) %ghost %{_libdir}/librgw.so.2 | |
2a1a6301 | 523 | |
2a1a6301 JR |
524 | %files devel |
525 | %defattr(644,root,root,755) | |
2a1a6301 | 526 | %attr(755,root,root) %{_libdir}/libcephfs.so |
4447516f JB |
527 | %attr(755,root,root) %{_libdir}/libos_tp.so |
528 | %attr(755,root,root) %{_libdir}/libosd_tp.so | |
2a1a6301 | 529 | %attr(755,root,root) %{_libdir}/librados.so |
4447516f | 530 | %attr(755,root,root) %{_libdir}/librados_tp.so |
548e0d3f | 531 | %attr(755,root,root) %{_libdir}/libradosstriper.so |
2a1a6301 | 532 | %attr(755,root,root) %{_libdir}/librbd.so |
4447516f | 533 | %attr(755,root,root) %{_libdir}/librbd_tp.so |
bbcdc7ce | 534 | %attr(755,root,root) %{_libdir}/librgw.so |
2a1a6301 | 535 | %{_libdir}/libcephfs.la |
4447516f JB |
536 | %{_libdir}/libos_tp.la |
537 | %{_libdir}/libosd_tp.la | |
2a1a6301 | 538 | %{_libdir}/librados.la |
4447516f | 539 | %{_libdir}/librados_tp.la |
548e0d3f | 540 | %{_libdir}/libradosstriper.la |
2a1a6301 | 541 | %{_libdir}/librbd.la |
4447516f | 542 | %{_libdir}/librbd_tp.la |
bbcdc7ce | 543 | %{_libdir}/librgw.la |
e5fc70df JB |
544 | %{_includedir}/cephfs |
545 | %{_includedir}/rados | |
548e0d3f | 546 | %{_includedir}/radosstriper |
e5fc70df | 547 | %{_includedir}/rbd |
2a1a6301 JR |
548 | |
549 | %files static | |
550 | %defattr(644,root,root,755) | |
551 | %{_libdir}/libcephfs.a | |
4447516f JB |
552 | %{_libdir}/libos_tp.a |
553 | %{_libdir}/libosd_tp.a | |
2a1a6301 | 554 | %{_libdir}/librados.a |
4447516f | 555 | %{_libdir}/librados_tp.a |
548e0d3f | 556 | %{_libdir}/libradosstriper.a |
2a1a6301 | 557 | %{_libdir}/librbd.a |
4447516f | 558 | %{_libdir}/librbd_tp.a |
bbcdc7ce | 559 | %{_libdir}/librgw.a |
2a1a6301 | 560 | |
e5fc70df JB |
561 | %files -n python-ceph |
562 | %defattr(644,root,root,755) | |
bbcdc7ce JB |
563 | %attr(755,root,root) %{py_sitedir}/cephfs.so |
564 | %attr(755,root,root) %{py_sitedir}/rados.so | |
565 | %attr(755,root,root) %{py_sitedir}/rbd.so | |
566 | %{py_sitedir}/ceph_detect_init | |
567 | %{py_sitedir}/ceph_disk | |
568 | %{py_sitedir}/ceph_detect_init-1.0.1-py*.egg-info | |
569 | %{py_sitedir}/ceph_disk-1.0.0-py*.egg-info | |
570 | %{py_sitedir}/cephfs-0-py*.egg-info | |
571 | %{py_sitedir}/rados-0-py*.egg-info | |
572 | %{py_sitedir}/rbd-0-py*.egg-info | |
67f1bff3 | 573 | %{py_sitescriptdir}/ceph_argparse.py[co] |
bbcdc7ce | 574 | %{py_sitescriptdir}/ceph_daemon.py[co] |
4f411dc5 | 575 | %{py_sitescriptdir}/ceph_rest_api.py[co] |
bbcdc7ce | 576 | %{py_sitescriptdir}/ceph_volume_client.py[co] |
e5fc70df | 577 | |
4f42482b JB |
578 | %if %{with java} |
579 | %files -n java-cephfs | |
580 | %defattr(644,root,root,755) | |
581 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.* | |
582 | %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1 | |
583 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so | |
584 | %{_javadir}/libcephfs.jar | |
585 | %endif | |
586 | ||
e5fc70df JB |
587 | %files fuse |
588 | %defattr(644,root,root,755) | |
e5fc70df JB |
589 | %attr(755,root,root) %{_bindir}/ceph-fuse |
590 | %{_mandir}/man8/ceph-fuse.8* | |
591 | ||
2a1a6301 JR |
592 | %files radosgw |
593 | %defattr(644,root,root,755) | |
594 | %attr(755,root,root) %{_bindir}/radosgw | |
595 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
bbcdc7ce JB |
596 | %attr(755,root,root) %{_bindir}/radosgw-object-expirer |
597 | %attr(755,root,root) %{_bindir}/radosgw-token | |
598 | %{systemdunitdir}/ceph-radosgw.target | |
599 | %{systemdunitdir}/ceph-radosgw@.service | |
2a1a6301 JR |
600 | %{_sysconfdir}/bash_completion.d/radosgw-admin |
601 | ||
245cb856 | 602 | %files resource-agents |
8029515d JB |
603 | %defattr(644,root,root,755) |
604 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
8029515d | 605 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd |