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