]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- updated to 0.53
[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
7e46b55b 8Version: 0.53
714b93ed 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
7e46b55b 13# Source0-md5: 504f4f9ba6f84178478b08da7bc9eb39
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
2a1a6301
JR
74Group: Development/Libraries
75Requires: %{name}-libs = %{version}-%{release}
76
77%description devel
78This package contains the headers needed to develop programs that use
79Ceph.
80
e5fc70df
JB
81%description devel -l pl.UTF-8
82Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
83wykorzystujących Cepha.
84
2a1a6301
JR
85%package static
86Summary: Ceph static libraries
e5fc70df 87Summary(pl.UTF-8): Biblioteki statyczne Cepha
2a1a6301
JR
88License: LGPLv2
89Group: Development/Libraries
90Requires: %{name}-devel = %{version}-%{release}
91
92%description static
93This package contains static Ceph libraries.
94
e5fc70df
JB
95%description static -l pl.UTF-8
96Ten pakiet zawiera biblioteki statyczne Cepha.
97
98%package -n python-ceph
99Summary: Ceph Python bindings
100Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha
101Group: Development/Languages/Python
102Requires: %{name}-libs = %{version}-%{release}
103
104%description -n python-ceph
105Ceph Python bindings.
106
107%description -n python-ceph -l pl.UTF-8
108Wiązania Pythona do bibliotek Cepha.
109
110%package fuse
111Summary: Ceph FUSE-based client
112Summary(pl.UTF-8): Klient Cepha oparty na FUSE
113Group: Base
114Requires: %{name} = %{version}-%{release}
115
116%description fuse
117FUSE based client for Ceph distributed network file system.
118
119%description fuse -l pl.UTF-8
120Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph.
121
2a1a6301
JR
122%package radosgw
123Summary: rados REST gateway
e5fc70df
JB
124Summary(pl.UTF-8): Bramka REST-owa rados
125Group: Applications/System
2a1a6301
JR
126#Requires: apache-mod_fcgid
127
128%description radosgw
129radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
130implemented as a FastCGI module using libfcgi, and can be used in
131conjunction with any FastCGI capable web server.
132
e5fc70df
JB
133%description radosgw -l pl.UTF-8
134radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS.
135Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może
136być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI.
137
245cb856 138%package resource-agents
8029515d
JB
139Summary: OCF Resource Agents for Ceph processes
140Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha
141Group: Applications/System
142Requires: %{name} = %{version}-%{release}
143Requires: resource-agents
144
245cb856 145%description resource-agents
8029515d
JB
146OCF Resource Agents for Ceph processes.
147
245cb856 148%description resource-agents -l pl.UTF-8
8029515d
JB
149Agenci OCF do monitorowania procesów Cepha.
150
245cb856
JB
151%package -n hadoop-cephfs
152Summary: Hadoop client for Ceph filesystem
153Summary(pl.UTF-8): Klient Hadoopa dla systemu plików Ceph
154Group: Libraries
155Requires: %{name} = %{version}-%{release}
156Requires: hadoop
157
158%description -n hadoop-cephfs
159Hadoop client for Ceph filesystem.
160
161%description -n hadoop-cephfs -l pl.UTF-8
162Klient Hadoopa dla systemu plików Ceph.
163
2a1a6301
JR
164%prep
165%setup -q
166%patch0 -p1
167%patch1 -p0
168%patch2 -p1
2a1a6301
JR
169
170%build
171%{__libtoolize}
172%{__aclocal}
173%{__autoconf}
174%{__autoheader}
175%{__automake}
245cb856 176%{?with_hadoop:CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"}
2a1a6301
JR
177%configure \
178 --sbindir=/sbin \
714b93ed
JB
179 --with-cryptopp \
180 --with-hadoop%{!?with_hadoop:=no} \
8029515d 181 --with-ocf \
2a1a6301 182 --with-radosgw \
f965be58
JB
183 --with-system-leveldb \
184 --with-system-libs3 \
714b93ed 185 --disable-silent-rules
2a1a6301 186
714b93ed 187%{__make}
2a1a6301
JR
188
189%install
190rm -rf $RPM_BUILD_ROOT
191install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \
192 $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d}
193%{__make} install \
194 DESTDIR=$RPM_BUILD_ROOT
195
196install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph
197install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
198
7e46b55b
JB
199# loadable modules
200%{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
245cb856
JB
201%if %{with hadoop}
202%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a}
203%endif
7e46b55b
JB
204# packaged as %doc
205%{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config}
245cb856 206
714b93ed 207%py_postclean
2a1a6301
JR
208
209%clean
210rm -rf $RPM_BUILD_ROOT
211
212%post
213/sbin/chkconfig --add ceph
214%service ceph restart
215
216%preun
217if [ "$1" = "0" ] ; then
72daa1da
JR
218 %service ceph stop
219 /sbin/chkconfig --del ceph
2a1a6301
JR
220fi
221
e5fc70df
JB
222%post libs -p /sbin/ldconfig
223%postun libs -p /sbin/ldconfig
2a1a6301 224
245cb856
JB
225%post -n hadoop-cephfs -p /sbin/ldconfig
226%postun -n hadoop-cephfs -p /sbin/ldconfig
227
2a1a6301
JR
228%files
229%defattr(644,root,root,755)
9e1f65de
JB
230# COPYING specifies licenses of individual parts
231%doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config
2a1a6301
JR
232%attr(754,root,root) /etc/rc.d/init.d/ceph
233%dir %{_sysconfdir}/ceph
234%attr(755,root,root) %{_bindir}/ceph
235%attr(755,root,root) %{_bindir}/cephfs
236%attr(755,root,root) %{_bindir}/ceph-conf
237%attr(755,root,root) %{_bindir}/ceph-clsinfo
60d5543f 238%attr(755,root,root) %{_bindir}/ceph-dencoder
2a1a6301
JR
239%attr(755,root,root) %{_bindir}/crushtool
240%attr(755,root,root) %{_bindir}/monmaptool
241%attr(755,root,root) %{_bindir}/osdmaptool
242%attr(755,root,root) %{_bindir}/ceph-authtool
243%attr(755,root,root) %{_bindir}/ceph-syn
244%attr(755,root,root) %{_bindir}/ceph-run
245%attr(755,root,root) %{_bindir}/ceph-mon
246%attr(755,root,root) %{_bindir}/ceph-mds
247%attr(755,root,root) %{_bindir}/ceph-osd
248%attr(755,root,root) %{_bindir}/ceph-rbdnamer
249%attr(755,root,root) %{_bindir}/librados-config
250%attr(755,root,root) %{_bindir}/rados
251%attr(755,root,root) %{_bindir}/rbd
252%attr(755,root,root) %{_bindir}/ceph-debugpack
253%attr(755,root,root) %{_bindir}/ceph-coverage
254%dir %{_libdir}/rados-classes
7e46b55b 255%attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so*
60d5543f 256%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
2a1a6301 257%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
7e46b55b 258%attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so*
2a1a6301 259%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
7e46b55b 260%attr(755,root,root) /sbin/ceph-create-keys
60d5543f
PS
261%attr(755,root,root) /sbin/ceph-disk-activate
262%attr(755,root,root) /sbin/ceph-disk-prepare
2a1a6301
JR
263%attr(755,root,root) /sbin/mkcephfs
264%attr(755,root,root) /sbin/mount.ceph
265%dir %{_libdir}/ceph
266%attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
267%config(noreplace) /etc/logrotate.d/ceph
268%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
269%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
270%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
271%{_mandir}/man8/ceph.8*
272%{_mandir}/man8/ceph-authtool.8*
273%{_mandir}/man8/ceph-clsinfo.8*
274%{_mandir}/man8/ceph-conf.8*
275%{_mandir}/man8/ceph-debugpack.8*
60d5543f 276%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
277%{_mandir}/man8/ceph-mds.8*
278%{_mandir}/man8/ceph-mon.8*
279%{_mandir}/man8/ceph-osd.8*
60d5543f 280%{_mandir}/man8/ceph-rbdnamer.8*
2a1a6301
JR
281%{_mandir}/man8/ceph-run.8*
282%{_mandir}/man8/ceph-syn.8*
283%{_mandir}/man8/cephfs.8*
284%{_mandir}/man8/crushtool.8*
285%{_mandir}/man8/librados-config.8*
286%{_mandir}/man8/mkcephfs.8*
287%{_mandir}/man8/monmaptool.8*
288%{_mandir}/man8/mount.ceph.8*
289%{_mandir}/man8/osdmaptool.8*
290%{_mandir}/man8/rados.8*
291%{_mandir}/man8/radosgw.8*
292%{_mandir}/man8/radosgw-admin.8*
293%{_mandir}/man8/rbd.8*
60d5543f 294
2a1a6301
JR
295%dir %{_localstatedir}/lib/ceph
296%dir %{_localstatedir}/lib/ceph/tmp
297%dir %{_localstatedir}/log/ceph
298
299%files libs
300%defattr(644,root,root,755)
301%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
302%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
303%attr(755,root,root) %{_libdir}/librados.so.*.*.*
304%attr(755,root,root) %ghost %{_libdir}/librados.so.2
305%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
306%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 307
2a1a6301
JR
308%files devel
309%defattr(644,root,root,755)
2a1a6301
JR
310%attr(755,root,root) %{_libdir}/libcephfs.so
311%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
312%attr(755,root,root) %{_libdir}/librbd.so
313%{_libdir}/libcephfs.la
314%{_libdir}/librados.la
2a1a6301 315%{_libdir}/librbd.la
e5fc70df
JB
316%{_includedir}/cephfs
317%{_includedir}/rados
318%{_includedir}/rbd
2a1a6301
JR
319
320%files static
321%defattr(644,root,root,755)
322%{_libdir}/libcephfs.a
323%{_libdir}/librados.a
2a1a6301
JR
324%{_libdir}/librbd.a
325
e5fc70df
JB
326%files -n python-ceph
327%defattr(644,root,root,755)
714b93ed
JB
328%{py_sitescriptdir}/rados.py[co]
329%{py_sitescriptdir}/rbd.py[co]
e5fc70df
JB
330
331%files fuse
332%defattr(644,root,root,755)
e5fc70df
JB
333%attr(755,root,root) %{_bindir}/ceph-fuse
334%{_mandir}/man8/ceph-fuse.8*
335
2a1a6301
JR
336%files radosgw
337%defattr(644,root,root,755)
338%attr(755,root,root) %{_bindir}/radosgw
339%attr(755,root,root) %{_bindir}/radosgw-admin
340%{_sysconfdir}/bash_completion.d/radosgw-admin
341
245cb856 342%files resource-agents
8029515d
JB
343%defattr(644,root,root,755)
344%dir %{_prefix}/lib/ocf/resource.d/ceph
345%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
346%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
347%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
348%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
349%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
245cb856
JB
350
351%if %{with hadoop}
352%files -n hadoop-cephfs
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.*
355%attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1
356%attr(755,root,root) %{_libdir}/libhadoopcephfs.so
357%endif
This page took 0.097394 seconds and 4 git commands to generate.