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