]> git.pld-linux.org Git - packages/ceph.git/blame - ceph.spec
- updated to 0.52
[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
e5fc70df 10License: LGPL v2
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
2a1a6301
JR
153%prep
154%setup -q
155%patch0 -p1
156%patch1 -p0
157%patch2 -p1
2a1a6301 158
714b93ed
JB
159%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' src/obsync/obsync
160
2a1a6301
JR
161%build
162%{__libtoolize}
163%{__aclocal}
164%{__autoconf}
165%{__autoheader}
166%{__automake}
167%configure \
168 --sbindir=/sbin \
714b93ed
JB
169 --with-cryptopp \
170 --with-hadoop%{!?with_hadoop:=no} \
2a1a6301 171 --with-radosgw \
714b93ed
JB
172 --disable-silent-rules
173# --with-ocf ?
174# --with-system-leveldb (BR: libleveldb, snappy-devel)
175# --with-system-libs3 (BR: libs3)
2a1a6301 176
714b93ed 177%{__make}
2a1a6301
JR
178
179%install
180rm -rf $RPM_BUILD_ROOT
181install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \
182 $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d}
183%{__make} install \
184 DESTDIR=$RPM_BUILD_ROOT
185
186install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph
187install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
188
189%{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
714b93ed 190%py_postclean
2a1a6301
JR
191
192%clean
193rm -rf $RPM_BUILD_ROOT
194
195%post
196/sbin/chkconfig --add ceph
197%service ceph restart
198
199%preun
200if [ "$1" = "0" ] ; then
72daa1da
JR
201 %service ceph stop
202 /sbin/chkconfig --del ceph
2a1a6301
JR
203fi
204
e5fc70df
JB
205%post libs -p /sbin/ldconfig
206%postun libs -p /sbin/ldconfig
2a1a6301
JR
207
208%files
209%defattr(644,root,root,755)
210%doc README src/sample.ceph.conf src/sample.fetch_config
211%attr(754,root,root) /etc/rc.d/init.d/ceph
212%dir %{_sysconfdir}/ceph
213%attr(755,root,root) %{_bindir}/ceph
214%attr(755,root,root) %{_bindir}/cephfs
215%attr(755,root,root) %{_bindir}/ceph-conf
216%attr(755,root,root) %{_bindir}/ceph-clsinfo
60d5543f 217%attr(755,root,root) %{_bindir}/ceph-dencoder
2a1a6301
JR
218%attr(755,root,root) %{_bindir}/crushtool
219%attr(755,root,root) %{_bindir}/monmaptool
220%attr(755,root,root) %{_bindir}/osdmaptool
221%attr(755,root,root) %{_bindir}/ceph-authtool
222%attr(755,root,root) %{_bindir}/ceph-syn
223%attr(755,root,root) %{_bindir}/ceph-run
224%attr(755,root,root) %{_bindir}/ceph-mon
225%attr(755,root,root) %{_bindir}/ceph-mds
226%attr(755,root,root) %{_bindir}/ceph-osd
227%attr(755,root,root) %{_bindir}/ceph-rbdnamer
228%attr(755,root,root) %{_bindir}/librados-config
229%attr(755,root,root) %{_bindir}/rados
230%attr(755,root,root) %{_bindir}/rbd
231%attr(755,root,root) %{_bindir}/ceph-debugpack
232%attr(755,root,root) %{_bindir}/ceph-coverage
233%dir %{_libdir}/rados-classes
60d5543f 234%attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
2a1a6301
JR
235%attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
236%attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
60d5543f
PS
237%attr(755,root,root) /sbin/ceph-disk-activate
238%attr(755,root,root) /sbin/ceph-disk-prepare
2a1a6301
JR
239%attr(755,root,root) /sbin/mkcephfs
240%attr(755,root,root) /sbin/mount.ceph
241%dir %{_libdir}/ceph
242%attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
243%config(noreplace) /etc/logrotate.d/ceph
244%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
245%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
246%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
247%{_mandir}/man8/ceph.8*
248%{_mandir}/man8/ceph-authtool.8*
249%{_mandir}/man8/ceph-clsinfo.8*
250%{_mandir}/man8/ceph-conf.8*
251%{_mandir}/man8/ceph-debugpack.8*
60d5543f 252%{_mandir}/man8/ceph-dencoder.8*
2a1a6301
JR
253%{_mandir}/man8/ceph-mds.8*
254%{_mandir}/man8/ceph-mon.8*
255%{_mandir}/man8/ceph-osd.8*
60d5543f 256%{_mandir}/man8/ceph-rbdnamer.8*
2a1a6301
JR
257%{_mandir}/man8/ceph-run.8*
258%{_mandir}/man8/ceph-syn.8*
259%{_mandir}/man8/cephfs.8*
260%{_mandir}/man8/crushtool.8*
261%{_mandir}/man8/librados-config.8*
262%{_mandir}/man8/mkcephfs.8*
263%{_mandir}/man8/monmaptool.8*
264%{_mandir}/man8/mount.ceph.8*
265%{_mandir}/man8/osdmaptool.8*
266%{_mandir}/man8/rados.8*
267%{_mandir}/man8/radosgw.8*
268%{_mandir}/man8/radosgw-admin.8*
269%{_mandir}/man8/rbd.8*
60d5543f 270
2a1a6301
JR
271%dir %{_localstatedir}/lib/ceph
272%dir %{_localstatedir}/lib/ceph/tmp
273%dir %{_localstatedir}/log/ceph
274
275%files libs
276%defattr(644,root,root,755)
277%attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
278%attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
279%attr(755,root,root) %{_libdir}/librados.so.*.*.*
280%attr(755,root,root) %ghost %{_libdir}/librados.so.2
281%attr(755,root,root) %{_libdir}/librbd.so.*.*.*
282%attr(755,root,root) %ghost %{_libdir}/librbd.so.1
2a1a6301 283
2a1a6301
JR
284%files devel
285%defattr(644,root,root,755)
2a1a6301
JR
286%attr(755,root,root) %{_libdir}/libcephfs.so
287%attr(755,root,root) %{_libdir}/librados.so
2a1a6301
JR
288%attr(755,root,root) %{_libdir}/librbd.so
289%{_libdir}/libcephfs.la
290%{_libdir}/librados.la
2a1a6301 291%{_libdir}/librbd.la
e5fc70df
JB
292%{_includedir}/cephfs
293%{_includedir}/rados
294%{_includedir}/rbd
2a1a6301
JR
295
296%files static
297%defattr(644,root,root,755)
298%{_libdir}/libcephfs.a
299%{_libdir}/librados.a
2a1a6301
JR
300%{_libdir}/librbd.a
301
e5fc70df
JB
302%files -n python-ceph
303%defattr(644,root,root,755)
714b93ed
JB
304%{py_sitescriptdir}/rados.py[co]
305%{py_sitescriptdir}/rbd.py[co]
e5fc70df
JB
306
307%files fuse
308%defattr(644,root,root,755)
309%doc COPYING
310%attr(755,root,root) %{_bindir}/ceph-fuse
311%{_mandir}/man8/ceph-fuse.8*
312
2a1a6301
JR
313%files radosgw
314%defattr(644,root,root,755)
315%attr(755,root,root) %{_bindir}/radosgw
316%attr(755,root,root) %{_bindir}/radosgw-admin
317%{_sysconfdir}/bash_completion.d/radosgw-admin
318
319%files obsync
320%defattr(644,root,root,755)
321%attr(755,root,root) %{_bindir}/obsync
322%attr(755,root,root) %{_bindir}/boto_tool
60d5543f 323%{_mandir}/man1/obsync.1*
This page took 0.131928 seconds and 4 git commands to generate.