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