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