]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- release 2 (by relup.sh)
[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
250e33c5 9Version: 0.58
46e291f3 10Release: 2
9e1f65de 11License: LGPL v2.1 (libraries), GPL v2 (some programs)
2a1a6301
JR
12Group: Base
13Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2
250e33c5 14# Source0-md5: 86c03dbae51545dadfd3ff27371bf15b
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"}
2a1a6301
JR
198%configure \
199 --sbindir=/sbin \
714b93ed
JB
200 --with-cryptopp \
201 --with-hadoop%{!?with_hadoop:=no} \
8029515d 202 --with-ocf \
2a1a6301 203 --with-radosgw \
f965be58
JB
204 --with-system-leveldb \
205 --with-system-libs3 \
4f42482b 206 %{?with_java:--enable-cephfs-java --with-jdk-dir=%{_jvmdir}/java} \
714b93ed 207 --disable-silent-rules
2a1a6301 208
714b93ed 209%{__make}
2a1a6301
JR
210
211%install
212rm -rf $RPM_BUILD_ROOT
213install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \
214 $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d}
4f42482b 215
2a1a6301 216%{__make} install \
4f42482b
JB
217 DESTDIR=$RPM_BUILD_ROOT \
218 javadir=%{_javadir}
2a1a6301
JR
219
220install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph
221install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
222
7e46b55b
JB
223# loadable modules
224%{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
245cb856
JB
225%if %{with hadoop}
226%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a}
227%endif
4f42482b
JB
228%if %{with java}
229%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcephfs_jni.{la,a}
230%endif
231
7e46b55b
JB
232# packaged as %doc
233%{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config}
245cb856 234
714b93ed 235%py_postclean
2a1a6301
JR
236
237%clean
238rm -rf $RPM_BUILD_ROOT
239
240%post
241/sbin/chkconfig --add ceph
242%service ceph restart
243
244%preun
245if [ "$1" = "0" ] ; then
72daa1da
JR
246 %service ceph stop
247 /sbin/chkconfig --del ceph
2a1a6301
JR
248fi
249
e5fc70df
JB
250%post libs -p /sbin/ldconfig
251%postun libs -p /sbin/ldconfig
2a1a6301 252
4f42482b
JB
253%post -n java-cephfs -p /sbin/ldconfig
254%postun -n java-cephfs -p /sbin/ldconfig
255
245cb856
JB
256%post -n hadoop-cephfs -p /sbin/ldconfig
257%postun -n hadoop-cephfs -p /sbin/ldconfig
258
2a1a6301
JR
259%files
260%defattr(644,root,root,755)
9e1f65de
JB
261# COPYING specifies licenses of individual parts
262%doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config
2a1a6301
JR
263%attr(754,root,root) /etc/rc.d/init.d/ceph
264%dir %{_sysconfdir}/ceph
265%attr(755,root,root) %{_bindir}/ceph
8c5712e2 266%attr(755,root,root) %{_bindir}/ceph-authtool
2a1a6301 267%attr(755,root,root) %{_bindir}/ceph-clsinfo
8c5712e2
JB
268%attr(755,root,root) %{_bindir}/ceph-conf
269%attr(755,root,root) %{_bindir}/ceph-coverage
270%attr(755,root,root) %{_bindir}/ceph-debugpack
60d5543f 271%attr(755,root,root) %{_bindir}/ceph-dencoder
2a1a6301 272%attr(755,root,root) %{_bindir}/ceph-mds
8c5712e2 273%attr(755,root,root) %{_bindir}/ceph-mon
2a1a6301
JR
274%attr(755,root,root) %{_bindir}/ceph-osd
275%attr(755,root,root) %{_bindir}/ceph-rbdnamer
8c5712e2
JB
276%attr(755,root,root) %{_bindir}/ceph-run
277%attr(755,root,root) %{_bindir}/ceph-syn
250e33c5 278%attr(755,root,root) %{_bindir}/ceph_filestore_dump
8c5712e2
JB
279%attr(755,root,root) %{_bindir}/cephfs
280%attr(755,root,root) %{_bindir}/crushtool
2a1a6301 281%attr(755,root,root) %{_bindir}/librados-config
8c5712e2
JB
282%attr(755,root,root) %{_bindir}/monmaptool
283%attr(755,root,root) %{_bindir}/osdmaptool
2a1a6301
JR
284%attr(755,root,root) %{_bindir}/rados
285%attr(755,root,root) %{_bindir}/rbd
8c5712e2 286%attr(755,root,root) %{_bindir}/rbd-fuse
4f42482b
JB
287%attr(755,root,root) /sbin/ceph-create-keys
288%attr(755,root,root) /sbin/ceph-disk-activate
289%attr(755,root,root) /sbin/ceph-disk-prepare
290%attr(755,root,root) /sbin/mkcephfs
291%attr(755,root,root) /sbin/mount.ceph
292%attr(755,root,root) /sbin/mount.fuse.ceph
2a1a6301 293%dir %{_libdir}/rados-classes
7e46b55b 294%attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so*
60d5543f 295%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
2a1a6301 296%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
7e46b55b 297%attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so*
2a1a6301 298%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
2a1a6301
JR
299%dir %{_libdir}/ceph
300%attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
301%config(noreplace) /etc/logrotate.d/ceph
302%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
303%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
304%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
305%{_mandir}/man8/ceph.8*
306%{_mandir}/man8/ceph-authtool.8*
307%{_mandir}/man8/ceph-clsinfo.8*
308%{_mandir}/man8/ceph-conf.8*
309%{_mandir}/man8/ceph-debugpack.8*
60d5543f 310%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
311%{_mandir}/man8/ceph-mds.8*
312%{_mandir}/man8/ceph-mon.8*
313%{_mandir}/man8/ceph-osd.8*
60d5543f 314%{_mandir}/man8/ceph-rbdnamer.8*
2a1a6301
JR
315%{_mandir}/man8/ceph-run.8*
316%{_mandir}/man8/ceph-syn.8*
317%{_mandir}/man8/cephfs.8*
318%{_mandir}/man8/crushtool.8*
319%{_mandir}/man8/librados-config.8*
320%{_mandir}/man8/mkcephfs.8*
321%{_mandir}/man8/monmaptool.8*
322%{_mandir}/man8/mount.ceph.8*
323%{_mandir}/man8/osdmaptool.8*
324%{_mandir}/man8/rados.8*
325%{_mandir}/man8/radosgw.8*
326%{_mandir}/man8/radosgw-admin.8*
327%{_mandir}/man8/rbd.8*
8c5712e2 328%{_mandir}/man8/rbd-fuse.8*
60d5543f 329
2a1a6301
JR
330%dir %{_localstatedir}/lib/ceph
331%dir %{_localstatedir}/lib/ceph/tmp
332%dir %{_localstatedir}/log/ceph
333
334%files libs
335%defattr(644,root,root,755)
336%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
337%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
338%attr(755,root,root) %{_libdir}/librados.so.*.*.*
339%attr(755,root,root) %ghost %{_libdir}/librados.so.2
340%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
341%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 342
2a1a6301
JR
343%files devel
344%defattr(644,root,root,755)
2a1a6301
JR
345%attr(755,root,root) %{_libdir}/libcephfs.so
346%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
347%attr(755,root,root) %{_libdir}/librbd.so
348%{_libdir}/libcephfs.la
349%{_libdir}/librados.la
2a1a6301 350%{_libdir}/librbd.la
e5fc70df
JB
351%{_includedir}/cephfs
352%{_includedir}/rados
353%{_includedir}/rbd
2a1a6301
JR
354
355%files static
356%defattr(644,root,root,755)
357%{_libdir}/libcephfs.a
358%{_libdir}/librados.a
2a1a6301
JR
359%{_libdir}/librbd.a
360
e5fc70df
JB
361%files -n python-ceph
362%defattr(644,root,root,755)
714b93ed
JB
363%{py_sitescriptdir}/rados.py[co]
364%{py_sitescriptdir}/rbd.py[co]
e5fc70df 365
4f42482b
JB
366%if %{with java}
367%files -n java-cephfs
368%defattr(644,root,root,755)
369%attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.*
370%attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1
371%attr(755,root,root) %{_libdir}/libcephfs_jni.so
372%{_javadir}/libcephfs.jar
373%endif
374
e5fc70df
JB
375%files fuse
376%defattr(644,root,root,755)
e5fc70df
JB
377%attr(755,root,root) %{_bindir}/ceph-fuse
378%{_mandir}/man8/ceph-fuse.8*
379
2a1a6301
JR
380%files radosgw
381%defattr(644,root,root,755)
382%attr(755,root,root) %{_bindir}/radosgw
383%attr(755,root,root) %{_bindir}/radosgw-admin
384%{_sysconfdir}/bash_completion.d/radosgw-admin
385
245cb856 386%files resource-agents
8029515d
JB
387%defattr(644,root,root,755)
388%dir %{_prefix}/lib/ocf/resource.d/ceph
389%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
390%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
391%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
392%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
393%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
245cb856
JB
394
395%if %{with hadoop}
396%files -n hadoop-cephfs
397%defattr(644,root,root,755)
398%attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.*
399%attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1
400%attr(755,root,root) %{_libdir}/libhadoopcephfs.so
401%endif
This page took 0.074487 seconds and 4 git commands to generate.