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