]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- use system leveldb and libs3 (the latter only for rest-bench, which is not installe...
[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
714b93ed
JB
8Version: 0.52
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
714b93ed 13# Source0-md5: b3b9c8e7160d69cdf735628342a8dee0
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
714b93ed 43BuildRequires: sed >= 4.0
f965be58 44BuildRequires: snappy-devel
2a1a6301
JR
45Requires(post,preun): /sbin/chkconfig
46Requires(preun): rc-scripts
47Requires: %{name}-libs = %{version}-%{release}
60d5543f 48Obsoletes: gcephtool
2a1a6301
JR
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%define skip_post_check_so libcls_.*.so.*
52
53%description
54Ceph is a distributed network file system designed to provide
55excellent performance, reliability, and scalability.
56
e5fc70df
JB
57%description -l pl.UTF-8
58Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o
59dobrej wydajności, wiarygodności i skalowalności.
60
2a1a6301
JR
61%package libs
62Summary: Ceph shared libraries
e5fc70df 63Summary(pl.UTF-8): Biblioteki współdzielone Cepha
2a1a6301
JR
64Group: Libraries
65
66%description libs
67Ceph shared libraries.
68
e5fc70df
JB
69%description libs -l pl.UTF-8
70Biblioteki współdzielone Cepha.
2a1a6301
JR
71
72%package devel
e5fc70df
JB
73Summary: Ceph header files
74Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha
2a1a6301
JR
75Group: Development/Libraries
76Requires: %{name}-libs = %{version}-%{release}
77
78%description devel
79This package contains the headers needed to develop programs that use
80Ceph.
81
e5fc70df
JB
82%description devel -l pl.UTF-8
83Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
84wykorzystujących Cepha.
85
2a1a6301
JR
86%package static
87Summary: Ceph static libraries
e5fc70df 88Summary(pl.UTF-8): Biblioteki statyczne Cepha
2a1a6301
JR
89License: LGPLv2
90Group: Development/Libraries
91Requires: %{name}-devel = %{version}-%{release}
92
93%description static
94This package contains static Ceph libraries.
95
e5fc70df
JB
96%description static -l pl.UTF-8
97Ten pakiet zawiera biblioteki statyczne Cepha.
98
99%package -n python-ceph
100Summary: Ceph Python bindings
101Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha
102Group: Development/Languages/Python
103Requires: %{name}-libs = %{version}-%{release}
104
105%description -n python-ceph
106Ceph Python bindings.
107
108%description -n python-ceph -l pl.UTF-8
109Wiązania Pythona do bibliotek Cepha.
110
111%package fuse
112Summary: Ceph FUSE-based client
113Summary(pl.UTF-8): Klient Cepha oparty na FUSE
114Group: Base
115Requires: %{name} = %{version}-%{release}
116
117%description fuse
118FUSE based client for Ceph distributed network file system.
119
120%description fuse -l pl.UTF-8
121Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph.
122
2a1a6301
JR
123%package radosgw
124Summary: rados REST gateway
e5fc70df
JB
125Summary(pl.UTF-8): Bramka REST-owa rados
126Group: Applications/System
2a1a6301
JR
127#Requires: apache-mod_fcgid
128
129%description radosgw
130radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
131implemented as a FastCGI module using libfcgi, and can be used in
132conjunction with any FastCGI capable web server.
133
e5fc70df
JB
134%description radosgw -l pl.UTF-8
135radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS.
136Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może
137być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI.
138
2a1a6301 139%package obsync
e5fc70df
JB
140Summary: Synchronize data between cloud object storage providers or a local directory
141Summary(pl.UTF-8): Synchronizacja danych między obiektami przechowywanymi w chmurze i katalogami lokalnymi
2a1a6301
JR
142Group: Applications/Networking
143Requires: python
144Requires: python-boto
145
146%description obsync
147obsync is a tool to synchronize objects between cloud object storage
148providers, such as Amazon S3 (or compatible services), a Ceph RADOS
149cluster, or a local directory.
150
e5fc70df
JB
151%description obsync -l pl.UTF-8
152obsync to narzędzie do synchronizacji obiektów między systemami
153przechowującymi obiekty w chmurze, takimi jak Amazon S3 (lub serwisy
154kompatybilne) a klastrem Ceph RADOS lub katalogiem lokalnym.
155
8029515d
JB
156%package ocf
157Summary: OCF Resource Agents for Ceph processes
158Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha
159Group: Applications/System
160Requires: %{name} = %{version}-%{release}
161Requires: resource-agents
162
163%description ocf
164OCF Resource Agents for Ceph processes.
165
166%description ocf -l pl.UTF-8
167Agenci OCF do monitorowania procesów Cepha.
168
2a1a6301
JR
169%prep
170%setup -q
171%patch0 -p1
172%patch1 -p0
173%patch2 -p1
2a1a6301 174
714b93ed
JB
175%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' src/obsync/obsync
176
2a1a6301
JR
177%build
178%{__libtoolize}
179%{__aclocal}
180%{__autoconf}
181%{__autoheader}
182%{__automake}
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
205%{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
714b93ed 206%py_postclean
2a1a6301
JR
207
208%clean
209rm -rf $RPM_BUILD_ROOT
210
211%post
212/sbin/chkconfig --add ceph
213%service ceph restart
214
215%preun
216if [ "$1" = "0" ] ; then
72daa1da
JR
217 %service ceph stop
218 /sbin/chkconfig --del ceph
2a1a6301
JR
219fi
220
e5fc70df
JB
221%post libs -p /sbin/ldconfig
222%postun libs -p /sbin/ldconfig
2a1a6301
JR
223
224%files
225%defattr(644,root,root,755)
9e1f65de
JB
226# COPYING specifies licenses of individual parts
227%doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config
2a1a6301
JR
228%attr(754,root,root) /etc/rc.d/init.d/ceph
229%dir %{_sysconfdir}/ceph
230%attr(755,root,root) %{_bindir}/ceph
231%attr(755,root,root) %{_bindir}/cephfs
232%attr(755,root,root) %{_bindir}/ceph-conf
233%attr(755,root,root) %{_bindir}/ceph-clsinfo
60d5543f 234%attr(755,root,root) %{_bindir}/ceph-dencoder
2a1a6301
JR
235%attr(755,root,root) %{_bindir}/crushtool
236%attr(755,root,root) %{_bindir}/monmaptool
237%attr(755,root,root) %{_bindir}/osdmaptool
238%attr(755,root,root) %{_bindir}/ceph-authtool
239%attr(755,root,root) %{_bindir}/ceph-syn
240%attr(755,root,root) %{_bindir}/ceph-run
241%attr(755,root,root) %{_bindir}/ceph-mon
242%attr(755,root,root) %{_bindir}/ceph-mds
243%attr(755,root,root) %{_bindir}/ceph-osd
244%attr(755,root,root) %{_bindir}/ceph-rbdnamer
245%attr(755,root,root) %{_bindir}/librados-config
246%attr(755,root,root) %{_bindir}/rados
247%attr(755,root,root) %{_bindir}/rbd
248%attr(755,root,root) %{_bindir}/ceph-debugpack
249%attr(755,root,root) %{_bindir}/ceph-coverage
250%dir %{_libdir}/rados-classes
60d5543f 251%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
2a1a6301
JR
252%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
253%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
60d5543f
PS
254%attr(755,root,root) /sbin/ceph-disk-activate
255%attr(755,root,root) /sbin/ceph-disk-prepare
2a1a6301
JR
256%attr(755,root,root) /sbin/mkcephfs
257%attr(755,root,root) /sbin/mount.ceph
258%dir %{_libdir}/ceph
259%attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
260%config(noreplace) /etc/logrotate.d/ceph
261%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
262%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
263%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
264%{_mandir}/man8/ceph.8*
265%{_mandir}/man8/ceph-authtool.8*
266%{_mandir}/man8/ceph-clsinfo.8*
267%{_mandir}/man8/ceph-conf.8*
268%{_mandir}/man8/ceph-debugpack.8*
60d5543f 269%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
270%{_mandir}/man8/ceph-mds.8*
271%{_mandir}/man8/ceph-mon.8*
272%{_mandir}/man8/ceph-osd.8*
60d5543f 273%{_mandir}/man8/ceph-rbdnamer.8*
2a1a6301
JR
274%{_mandir}/man8/ceph-run.8*
275%{_mandir}/man8/ceph-syn.8*
276%{_mandir}/man8/cephfs.8*
277%{_mandir}/man8/crushtool.8*
278%{_mandir}/man8/librados-config.8*
279%{_mandir}/man8/mkcephfs.8*
280%{_mandir}/man8/monmaptool.8*
281%{_mandir}/man8/mount.ceph.8*
282%{_mandir}/man8/osdmaptool.8*
283%{_mandir}/man8/rados.8*
284%{_mandir}/man8/radosgw.8*
285%{_mandir}/man8/radosgw-admin.8*
286%{_mandir}/man8/rbd.8*
60d5543f 287
2a1a6301
JR
288%dir %{_localstatedir}/lib/ceph
289%dir %{_localstatedir}/lib/ceph/tmp
290%dir %{_localstatedir}/log/ceph
291
292%files libs
293%defattr(644,root,root,755)
294%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
295%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
296%attr(755,root,root) %{_libdir}/librados.so.*.*.*
297%attr(755,root,root) %ghost %{_libdir}/librados.so.2
298%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
299%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 300
2a1a6301
JR
301%files devel
302%defattr(644,root,root,755)
2a1a6301
JR
303%attr(755,root,root) %{_libdir}/libcephfs.so
304%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
305%attr(755,root,root) %{_libdir}/librbd.so
306%{_libdir}/libcephfs.la
307%{_libdir}/librados.la
2a1a6301 308%{_libdir}/librbd.la
e5fc70df
JB
309%{_includedir}/cephfs
310%{_includedir}/rados
311%{_includedir}/rbd
2a1a6301
JR
312
313%files static
314%defattr(644,root,root,755)
315%{_libdir}/libcephfs.a
316%{_libdir}/librados.a
2a1a6301
JR
317%{_libdir}/librbd.a
318
e5fc70df
JB
319%files -n python-ceph
320%defattr(644,root,root,755)
714b93ed
JB
321%{py_sitescriptdir}/rados.py[co]
322%{py_sitescriptdir}/rbd.py[co]
e5fc70df
JB
323
324%files fuse
325%defattr(644,root,root,755)
e5fc70df
JB
326%attr(755,root,root) %{_bindir}/ceph-fuse
327%{_mandir}/man8/ceph-fuse.8*
328
2a1a6301
JR
329%files radosgw
330%defattr(644,root,root,755)
331%attr(755,root,root) %{_bindir}/radosgw
332%attr(755,root,root) %{_bindir}/radosgw-admin
333%{_sysconfdir}/bash_completion.d/radosgw-admin
334
335%files obsync
336%defattr(644,root,root,755)
337%attr(755,root,root) %{_bindir}/obsync
338%attr(755,root,root) %{_bindir}/boto_tool
60d5543f 339%{_mandir}/man1/obsync.1*
8029515d
JB
340
341%files ocf
342%defattr(644,root,root,755)
343%dir %{_prefix}/lib/ocf/resource.d/ceph
344%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
345%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
346%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
347%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
348%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
This page took 0.075443 seconds and 4 git commands to generate.