]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- updated to 0.55.1
[packages/ceph.git] / ceph.spec
CommitLineData
714b93ed
JB
1#
2# Conditional build:
3%bcond_with hadoop # Hadoop client (requires JNI)
4#
2a1a6301 5Summary: User space components of the Ceph file system
e5fc70df 6Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph
2a1a6301 7Name: ceph
29b2f8e9 8Version: 0.55.1
96a54cb4 9Release: 1
9e1f65de 10License: LGPL v2.1 (libraries), GPL v2 (some programs)
2a1a6301
JR
11Group: Base
12Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2
29b2f8e9 13# Source0-md5: 8276e98f2cffe6deabe729716fe930f6
2a1a6301
JR
14Patch0: %{name}-init-fix.patch
15Patch1: %{name}.logrotate.patch
041b9abb 16Patch2: %{name}-link.patch
2a1a6301 17URL: http://ceph.newdream.net/
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
714b93ed 26%{?with_hadoop:BuildRequires: jdk}
2a1a6301 27BuildRequires: keyutils-devel
f965be58 28BuildRequires: leveldb-devel
714b93ed 29BuildRequires: libaio-devel
2a1a6301 30BuildRequires: libatomic_ops
714b93ed 31BuildRequires: libedit-devel >= 2.11
2a1a6301
JR
32BuildRequires: libfuse-devel
33BuildRequires: libltdl-devel
f965be58 34BuildRequires: libs3-devel
2a1a6301
JR
35BuildRequires: libstdc++-devel
36BuildRequires: libtcmalloc-devel
714b93ed 37BuildRequires: libtool >= 2:1.5
2a1a6301 38BuildRequires: libuuid-devel
e5fc70df 39BuildRequires: perl-base
2a1a6301 40BuildRequires: pkgconfig
714b93ed 41BuildRequires: python >= 1:2.4
2a1a6301 42BuildRequires: rpmbuild(macros) >= 1.228
f965be58 43BuildRequires: snappy-devel
2a1a6301
JR
44Requires(post,preun): /sbin/chkconfig
45Requires(preun): rc-scripts
46Requires: %{name}-libs = %{version}-%{release}
60d5543f 47Obsoletes: gcephtool
2a1a6301
JR
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%define skip_post_check_so libcls_.*.so.*
51
52%description
53Ceph is a distributed network file system designed to provide
54excellent performance, reliability, and scalability.
55
e5fc70df
JB
56%description -l pl.UTF-8
57Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o
58dobrej wydajności, wiarygodności i skalowalności.
59
2a1a6301
JR
60%package libs
61Summary: Ceph shared libraries
e5fc70df 62Summary(pl.UTF-8): Biblioteki współdzielone Cepha
2a1a6301
JR
63Group: Libraries
64
65%description libs
66Ceph shared libraries.
67
e5fc70df
JB
68%description libs -l pl.UTF-8
69Biblioteki współdzielone Cepha.
2a1a6301
JR
70
71%package devel
e5fc70df
JB
72Summary: Ceph header files
73Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha
96c29907 74License: LGPL v2.1
2a1a6301
JR
75Group: Development/Libraries
76Requires: %{name}-libs = %{version}-%{release}
96c29907
JB
77Requires: boost-devel >= 1.34
78Requires: cryptopp-devel
79Requires: leveldb-devel
80Requires: libatomic_ops
81Requires: libuuid-devel
2a1a6301
JR
82
83%description devel
84This package contains the headers needed to develop programs that use
85Ceph.
86
e5fc70df
JB
87%description devel -l pl.UTF-8
88Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
89wykorzystujących Cepha.
90
2a1a6301
JR
91%package static
92Summary: Ceph static libraries
e5fc70df 93Summary(pl.UTF-8): Biblioteki statyczne Cepha
96c29907 94License: LGPL v2.1
2a1a6301
JR
95Group: Development/Libraries
96Requires: %{name}-devel = %{version}-%{release}
97
98%description static
99This package contains static Ceph libraries.
100
e5fc70df
JB
101%description static -l pl.UTF-8
102Ten pakiet zawiera biblioteki statyczne Cepha.
103
104%package -n python-ceph
105Summary: Ceph Python bindings
106Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha
107Group: Development/Languages/Python
108Requires: %{name}-libs = %{version}-%{release}
109
110%description -n python-ceph
111Ceph Python bindings.
112
113%description -n python-ceph -l pl.UTF-8
114Wiązania Pythona do bibliotek Cepha.
115
116%package fuse
117Summary: Ceph FUSE-based client
118Summary(pl.UTF-8): Klient Cepha oparty na FUSE
119Group: Base
120Requires: %{name} = %{version}-%{release}
121
122%description fuse
123FUSE based client for Ceph distributed network file system.
124
125%description fuse -l pl.UTF-8
126Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph.
127
2a1a6301
JR
128%package radosgw
129Summary: rados REST gateway
e5fc70df
JB
130Summary(pl.UTF-8): Bramka REST-owa rados
131Group: Applications/System
2a1a6301
JR
132#Requires: apache-mod_fcgid
133
134%description radosgw
135radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
136implemented as a FastCGI module using libfcgi, and can be used in
137conjunction with any FastCGI capable web server.
138
e5fc70df
JB
139%description radosgw -l pl.UTF-8
140radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS.
141Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może
142być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI.
143
245cb856 144%package resource-agents
8029515d
JB
145Summary: OCF Resource Agents for Ceph processes
146Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha
147Group: Applications/System
148Requires: %{name} = %{version}-%{release}
149Requires: resource-agents
150
245cb856 151%description resource-agents
8029515d
JB
152OCF Resource Agents for Ceph processes.
153
245cb856 154%description resource-agents -l pl.UTF-8
8029515d
JB
155Agenci OCF do monitorowania procesów Cepha.
156
245cb856
JB
157%package -n hadoop-cephfs
158Summary: Hadoop client for Ceph filesystem
159Summary(pl.UTF-8): Klient Hadoopa dla systemu plików Ceph
160Group: Libraries
161Requires: %{name} = %{version}-%{release}
162Requires: hadoop
163
164%description -n hadoop-cephfs
165Hadoop client for Ceph filesystem.
166
167%description -n hadoop-cephfs -l pl.UTF-8
168Klient Hadoopa dla systemu plików Ceph.
169
2a1a6301
JR
170%prep
171%setup -q
172%patch0 -p1
96a54cb4 173%patch1 -p1
2a1a6301 174%patch2 -p1
2a1a6301
JR
175
176%build
177%{__libtoolize}
178%{__aclocal}
179%{__autoconf}
180%{__autoheader}
181%{__automake}
245cb856 182%{?with_hadoop:CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"}
2a1a6301
JR
183%configure \
184 --sbindir=/sbin \
714b93ed
JB
185 --with-cryptopp \
186 --with-hadoop%{!?with_hadoop:=no} \
8029515d 187 --with-ocf \
2a1a6301 188 --with-radosgw \
f965be58
JB
189 --with-system-leveldb \
190 --with-system-libs3 \
714b93ed 191 --disable-silent-rules
2a1a6301 192
714b93ed 193%{__make}
2a1a6301
JR
194
195%install
196rm -rf $RPM_BUILD_ROOT
197install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \
198 $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d}
199%{__make} install \
200 DESTDIR=$RPM_BUILD_ROOT
201
202install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph
203install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
204
7e46b55b
JB
205# loadable modules
206%{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
245cb856
JB
207%if %{with hadoop}
208%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a}
209%endif
7e46b55b
JB
210# packaged as %doc
211%{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config}
245cb856 212
714b93ed 213%py_postclean
2a1a6301
JR
214
215%clean
216rm -rf $RPM_BUILD_ROOT
217
218%post
219/sbin/chkconfig --add ceph
220%service ceph restart
221
222%preun
223if [ "$1" = "0" ] ; then
72daa1da
JR
224 %service ceph stop
225 /sbin/chkconfig --del ceph
2a1a6301
JR
226fi
227
e5fc70df
JB
228%post libs -p /sbin/ldconfig
229%postun libs -p /sbin/ldconfig
2a1a6301 230
245cb856
JB
231%post -n hadoop-cephfs -p /sbin/ldconfig
232%postun -n hadoop-cephfs -p /sbin/ldconfig
233
2a1a6301
JR
234%files
235%defattr(644,root,root,755)
9e1f65de
JB
236# COPYING specifies licenses of individual parts
237%doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config
2a1a6301
JR
238%attr(754,root,root) /etc/rc.d/init.d/ceph
239%dir %{_sysconfdir}/ceph
240%attr(755,root,root) %{_bindir}/ceph
241%attr(755,root,root) %{_bindir}/cephfs
242%attr(755,root,root) %{_bindir}/ceph-conf
243%attr(755,root,root) %{_bindir}/ceph-clsinfo
60d5543f 244%attr(755,root,root) %{_bindir}/ceph-dencoder
2a1a6301
JR
245%attr(755,root,root) %{_bindir}/crushtool
246%attr(755,root,root) %{_bindir}/monmaptool
247%attr(755,root,root) %{_bindir}/osdmaptool
248%attr(755,root,root) %{_bindir}/ceph-authtool
249%attr(755,root,root) %{_bindir}/ceph-syn
250%attr(755,root,root) %{_bindir}/ceph-run
251%attr(755,root,root) %{_bindir}/ceph-mon
252%attr(755,root,root) %{_bindir}/ceph-mds
253%attr(755,root,root) %{_bindir}/ceph-osd
254%attr(755,root,root) %{_bindir}/ceph-rbdnamer
255%attr(755,root,root) %{_bindir}/librados-config
256%attr(755,root,root) %{_bindir}/rados
257%attr(755,root,root) %{_bindir}/rbd
258%attr(755,root,root) %{_bindir}/ceph-debugpack
259%attr(755,root,root) %{_bindir}/ceph-coverage
260%dir %{_libdir}/rados-classes
7e46b55b 261%attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so*
60d5543f 262%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
2a1a6301 263%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
7e46b55b 264%attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so*
2a1a6301 265%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
7e46b55b 266%attr(755,root,root) /sbin/ceph-create-keys
60d5543f
PS
267%attr(755,root,root) /sbin/ceph-disk-activate
268%attr(755,root,root) /sbin/ceph-disk-prepare
2a1a6301
JR
269%attr(755,root,root) /sbin/mkcephfs
270%attr(755,root,root) /sbin/mount.ceph
271%dir %{_libdir}/ceph
272%attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
273%config(noreplace) /etc/logrotate.d/ceph
274%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
275%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
276%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
277%{_mandir}/man8/ceph.8*
278%{_mandir}/man8/ceph-authtool.8*
279%{_mandir}/man8/ceph-clsinfo.8*
280%{_mandir}/man8/ceph-conf.8*
281%{_mandir}/man8/ceph-debugpack.8*
60d5543f 282%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
283%{_mandir}/man8/ceph-mds.8*
284%{_mandir}/man8/ceph-mon.8*
285%{_mandir}/man8/ceph-osd.8*
60d5543f 286%{_mandir}/man8/ceph-rbdnamer.8*
2a1a6301
JR
287%{_mandir}/man8/ceph-run.8*
288%{_mandir}/man8/ceph-syn.8*
289%{_mandir}/man8/cephfs.8*
290%{_mandir}/man8/crushtool.8*
291%{_mandir}/man8/librados-config.8*
292%{_mandir}/man8/mkcephfs.8*
293%{_mandir}/man8/monmaptool.8*
294%{_mandir}/man8/mount.ceph.8*
295%{_mandir}/man8/osdmaptool.8*
296%{_mandir}/man8/rados.8*
297%{_mandir}/man8/radosgw.8*
298%{_mandir}/man8/radosgw-admin.8*
299%{_mandir}/man8/rbd.8*
60d5543f 300
2a1a6301
JR
301%dir %{_localstatedir}/lib/ceph
302%dir %{_localstatedir}/lib/ceph/tmp
303%dir %{_localstatedir}/log/ceph
304
305%files libs
306%defattr(644,root,root,755)
307%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
308%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
309%attr(755,root,root) %{_libdir}/librados.so.*.*.*
310%attr(755,root,root) %ghost %{_libdir}/librados.so.2
311%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
312%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 313
2a1a6301
JR
314%files devel
315%defattr(644,root,root,755)
2a1a6301
JR
316%attr(755,root,root) %{_libdir}/libcephfs.so
317%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
318%attr(755,root,root) %{_libdir}/librbd.so
319%{_libdir}/libcephfs.la
320%{_libdir}/librados.la
2a1a6301 321%{_libdir}/librbd.la
e5fc70df
JB
322%{_includedir}/cephfs
323%{_includedir}/rados
324%{_includedir}/rbd
2a1a6301
JR
325
326%files static
327%defattr(644,root,root,755)
328%{_libdir}/libcephfs.a
329%{_libdir}/librados.a
2a1a6301
JR
330%{_libdir}/librbd.a
331
e5fc70df
JB
332%files -n python-ceph
333%defattr(644,root,root,755)
714b93ed
JB
334%{py_sitescriptdir}/rados.py[co]
335%{py_sitescriptdir}/rbd.py[co]
e5fc70df
JB
336
337%files fuse
338%defattr(644,root,root,755)
e5fc70df
JB
339%attr(755,root,root) %{_bindir}/ceph-fuse
340%{_mandir}/man8/ceph-fuse.8*
341
2a1a6301
JR
342%files radosgw
343%defattr(644,root,root,755)
344%attr(755,root,root) %{_bindir}/radosgw
345%attr(755,root,root) %{_bindir}/radosgw-admin
346%{_sysconfdir}/bash_completion.d/radosgw-admin
347
245cb856 348%files resource-agents
8029515d
JB
349%defattr(644,root,root,755)
350%dir %{_prefix}/lib/ocf/resource.d/ceph
351%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
352%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
353%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
354%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
355%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
245cb856
JB
356
357%if %{with hadoop}
358%files -n hadoop-cephfs
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.*
361%attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1
362%attr(755,root,root) %{_libdir}/libhadoopcephfs.so
363%endif
This page took 0.124613 seconds and 4 git commands to generate.