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