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