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