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