]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- updated to 0.81
[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
8fd65b06 9Version: 0.81
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
8fd65b06 14# Source0-md5: 5020b63746ccbaa454aab09450ee7a43
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/mount.ceph
289%attr(755,root,root) /sbin/mount.fuse.ceph
c408d7b3
JB
290%dir %{_libdir}/ceph
291%{_libdir}/ceph/ceph_common.sh
292%dir %{_libdir}/ceph/erasure-code
293%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_example.so*
294%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_fail_to_initialize.so*
295%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_fail_to_register.so*
296%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_hangs.so*
297%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so*
0509a77e
JB
298%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so*
299%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so*
300%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so*
c408d7b3 301%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_missing_entry_point.so*
0509a77e
JB
302%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_generic.so*
303%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_sse3.so*
304%attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_sse4.so*
2a1a6301 305%dir %{_libdir}/rados-classes
5e39e43e 306%attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so*
7e46b55b 307%attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so*
60d5543f 308%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
4f411dc5 309%attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so*
2a1a6301 310%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
7e46b55b 311%attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so*
4f411dc5 312%attr(755,root,root) %{_libdir}/rados-classes/libcls_replica_log.so*
2a1a6301 313%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
4f411dc5 314%attr(755,root,root) %{_libdir}/rados-classes/libcls_statelog.so*
c8a22313 315%attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so*
4f411dc5 316%attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so*
5e39e43e 317%{_datadir}/ceph
2a1a6301
JR
318%config(noreplace) /etc/logrotate.d/ceph
319%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
320%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
321%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
322%{_mandir}/man8/ceph.8*
323%{_mandir}/man8/ceph-authtool.8*
324%{_mandir}/man8/ceph-clsinfo.8*
325%{_mandir}/man8/ceph-conf.8*
326%{_mandir}/man8/ceph-debugpack.8*
60d5543f 327%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
328%{_mandir}/man8/ceph-mds.8*
329%{_mandir}/man8/ceph-mon.8*
330%{_mandir}/man8/ceph-osd.8*
5e39e43e 331%{_mandir}/man8/ceph-post-file.8*
60d5543f 332%{_mandir}/man8/ceph-rbdnamer.8*
4f411dc5 333%{_mandir}/man8/ceph-rest-api.8*
2a1a6301
JR
334%{_mandir}/man8/ceph-run.8*
335%{_mandir}/man8/ceph-syn.8*
336%{_mandir}/man8/cephfs.8*
337%{_mandir}/man8/crushtool.8*
338%{_mandir}/man8/librados-config.8*
2a1a6301
JR
339%{_mandir}/man8/monmaptool.8*
340%{_mandir}/man8/mount.ceph.8*
341%{_mandir}/man8/osdmaptool.8*
342%{_mandir}/man8/rados.8*
343%{_mandir}/man8/radosgw.8*
344%{_mandir}/man8/radosgw-admin.8*
345%{_mandir}/man8/rbd.8*
8c5712e2 346%{_mandir}/man8/rbd-fuse.8*
60d5543f 347
2a1a6301
JR
348%dir %{_localstatedir}/lib/ceph
349%dir %{_localstatedir}/lib/ceph/tmp
350%dir %{_localstatedir}/log/ceph
351
352%files libs
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
355%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
356%attr(755,root,root) %{_libdir}/librados.so.*.*.*
357%attr(755,root,root) %ghost %{_libdir}/librados.so.2
358%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
359%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 360
2a1a6301
JR
361%files devel
362%defattr(644,root,root,755)
2a1a6301
JR
363%attr(755,root,root) %{_libdir}/libcephfs.so
364%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
365%attr(755,root,root) %{_libdir}/librbd.so
366%{_libdir}/libcephfs.la
367%{_libdir}/librados.la
2a1a6301 368%{_libdir}/librbd.la
e5fc70df
JB
369%{_includedir}/cephfs
370%{_includedir}/rados
371%{_includedir}/rbd
2a1a6301
JR
372
373%files static
374%defattr(644,root,root,755)
375%{_libdir}/libcephfs.a
376%{_libdir}/librados.a
2a1a6301
JR
377%{_libdir}/librbd.a
378
e5fc70df
JB
379%files -n python-ceph
380%defattr(644,root,root,755)
67f1bff3 381%{py_sitescriptdir}/ceph_argparse.py[co]
4f411dc5 382%{py_sitescriptdir}/ceph_rest_api.py[co]
e54009d4 383%{py_sitescriptdir}/cephfs.py[co]
714b93ed
JB
384%{py_sitescriptdir}/rados.py[co]
385%{py_sitescriptdir}/rbd.py[co]
e5fc70df 386
4f42482b
JB
387%if %{with java}
388%files -n java-cephfs
389%defattr(644,root,root,755)
390%attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.*
391%attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1
392%attr(755,root,root) %{_libdir}/libcephfs_jni.so
393%{_javadir}/libcephfs.jar
394%endif
395
e5fc70df
JB
396%files fuse
397%defattr(644,root,root,755)
e5fc70df
JB
398%attr(755,root,root) %{_bindir}/ceph-fuse
399%{_mandir}/man8/ceph-fuse.8*
400
2a1a6301
JR
401%files radosgw
402%defattr(644,root,root,755)
403%attr(755,root,root) %{_bindir}/radosgw
404%attr(755,root,root) %{_bindir}/radosgw-admin
405%{_sysconfdir}/bash_completion.d/radosgw-admin
406
245cb856 407%files resource-agents
8029515d
JB
408%defattr(644,root,root,755)
409%dir %{_prefix}/lib/ocf/resource.d/ceph
410%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
411%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
412%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
413%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
414%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
This page took 0.130699 seconds and 4 git commands to generate.