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