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