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