]>
Commit | Line | Data |
---|---|---|
2a1a6301 | 1 | Summary: User space components of the Ceph file system |
e5fc70df | 2 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 3 | Name: ceph |
041b9abb | 4 | Version: 0.51 |
137743bc | 5 | Release: 2 |
e5fc70df | 6 | License: LGPL v2 |
2a1a6301 JR |
7 | Group: Base |
8 | Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2 | |
041b9abb | 9 | # Source0-md5: e4d07eccd79c9a4a9eeee4066f2a13a3 |
2a1a6301 JR |
10 | Patch0: %{name}-init-fix.patch |
11 | Patch1: %{name}.logrotate.patch | |
041b9abb | 12 | Patch2: %{name}-link.patch |
2a1a6301 JR |
13 | URL: http://ceph.newdream.net/ |
14 | BuildRequires: boost-devel | |
15 | BuildRequires: cryptopp-devel | |
16 | BuildRequires: curl-devel | |
17 | BuildRequires: expat-devel | |
18 | BuildRequires: fcgi-devel | |
19 | BuildRequires: gdbm-devel | |
20 | BuildRequires: google-perftools-devel | |
21 | BuildRequires: gtk+2-devel | |
22 | BuildRequires: gtkmm-devel | |
23 | BuildRequires: keyutils-devel | |
24 | BuildRequires: libatomic_ops | |
25 | BuildRequires: libedit-devel | |
26 | BuildRequires: libfuse-devel | |
27 | BuildRequires: libltdl-devel | |
28 | BuildRequires: libstdc++-devel | |
29 | BuildRequires: libtcmalloc-devel | |
30 | BuildRequires: libtool | |
31 | BuildRequires: libuuid-devel | |
e5fc70df | 32 | BuildRequires: perl-base |
2a1a6301 JR |
33 | BuildRequires: pkgconfig |
34 | BuildRequires: rpmbuild(macros) >= 1.228 | |
35 | Requires(post,preun): /sbin/chkconfig | |
36 | Requires(preun): rc-scripts | |
37 | Requires: %{name}-libs = %{version}-%{release} | |
60d5543f | 38 | Obsoletes: gcephtool |
2a1a6301 JR |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %define skip_post_check_so libcls_.*.so.* | |
42 | ||
43 | %description | |
44 | Ceph is a distributed network file system designed to provide | |
45 | excellent performance, reliability, and scalability. | |
46 | ||
e5fc70df JB |
47 | %description -l pl.UTF-8 |
48 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
49 | dobrej wydajności, wiarygodności i skalowalności. | |
50 | ||
2a1a6301 JR |
51 | %package libs |
52 | Summary: Ceph shared libraries | |
e5fc70df | 53 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 JR |
54 | Group: Libraries |
55 | ||
56 | %description libs | |
57 | Ceph shared libraries. | |
58 | ||
e5fc70df JB |
59 | %description libs -l pl.UTF-8 |
60 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
61 | |
62 | %package devel | |
e5fc70df JB |
63 | Summary: Ceph header files |
64 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
2a1a6301 JR |
65 | Group: Development/Libraries |
66 | Requires: %{name}-libs = %{version}-%{release} | |
67 | ||
68 | %description devel | |
69 | This package contains the headers needed to develop programs that use | |
70 | Ceph. | |
71 | ||
e5fc70df JB |
72 | %description devel -l pl.UTF-8 |
73 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
74 | wykorzystujących Cepha. | |
75 | ||
2a1a6301 JR |
76 | %package static |
77 | Summary: Ceph static libraries | |
e5fc70df | 78 | Summary(pl.UTF-8): Biblioteki statyczne Cepha |
2a1a6301 JR |
79 | License: LGPLv2 |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | This package contains static Ceph libraries. | |
85 | ||
e5fc70df JB |
86 | %description static -l pl.UTF-8 |
87 | Ten pakiet zawiera biblioteki statyczne Cepha. | |
88 | ||
89 | %package -n python-ceph | |
90 | Summary: Ceph Python bindings | |
91 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha | |
92 | Group: Development/Languages/Python | |
93 | Requires: %{name}-libs = %{version}-%{release} | |
94 | ||
95 | %description -n python-ceph | |
96 | Ceph Python bindings. | |
97 | ||
98 | %description -n python-ceph -l pl.UTF-8 | |
99 | Wiązania Pythona do bibliotek Cepha. | |
100 | ||
101 | %package fuse | |
102 | Summary: Ceph FUSE-based client | |
103 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
104 | Group: Base | |
105 | Requires: %{name} = %{version}-%{release} | |
106 | ||
107 | %description fuse | |
108 | FUSE based client for Ceph distributed network file system. | |
109 | ||
110 | %description fuse -l pl.UTF-8 | |
111 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
112 | ||
2a1a6301 JR |
113 | %package radosgw |
114 | Summary: rados REST gateway | |
e5fc70df JB |
115 | Summary(pl.UTF-8): Bramka REST-owa rados |
116 | Group: Applications/System | |
2a1a6301 JR |
117 | #Requires: apache-mod_fcgid |
118 | ||
119 | %description radosgw | |
120 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
121 | implemented as a FastCGI module using libfcgi, and can be used in | |
122 | conjunction with any FastCGI capable web server. | |
123 | ||
e5fc70df JB |
124 | %description radosgw -l pl.UTF-8 |
125 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
126 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
127 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
128 | ||
2a1a6301 | 129 | %package obsync |
e5fc70df JB |
130 | Summary: Synchronize data between cloud object storage providers or a local directory |
131 | Summary(pl.UTF-8): Synchronizacja danych między obiektami przechowywanymi w chmurze i katalogami lokalnymi | |
2a1a6301 JR |
132 | Group: Applications/Networking |
133 | Requires: python | |
134 | Requires: python-boto | |
135 | ||
136 | %description obsync | |
137 | obsync is a tool to synchronize objects between cloud object storage | |
138 | providers, such as Amazon S3 (or compatible services), a Ceph RADOS | |
139 | cluster, or a local directory. | |
140 | ||
e5fc70df JB |
141 | %description obsync -l pl.UTF-8 |
142 | obsync to narzędzie do synchronizacji obiektów między systemami | |
143 | przechowującymi obiekty w chmurze, takimi jak Amazon S3 (lub serwisy | |
144 | kompatybilne) a klastrem Ceph RADOS lub katalogiem lokalnym. | |
145 | ||
2a1a6301 JR |
146 | %prep |
147 | %setup -q | |
148 | %patch0 -p1 | |
149 | %patch1 -p0 | |
150 | %patch2 -p1 | |
2a1a6301 JR |
151 | |
152 | %build | |
153 | %{__libtoolize} | |
154 | %{__aclocal} | |
155 | %{__autoconf} | |
156 | %{__autoheader} | |
157 | %{__automake} | |
158 | %configure \ | |
159 | --sbindir=/sbin \ | |
160 | --without-hadoop \ | |
161 | --with-radosgw \ | |
162 | --with-gtk2 | |
163 | ||
164 | %{__make} V=1 | |
165 | ||
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \ | |
169 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d} | |
170 | %{__make} install \ | |
171 | DESTDIR=$RPM_BUILD_ROOT | |
172 | ||
173 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
174 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
175 | ||
176 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la} | |
177 | ||
178 | %clean | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
181 | %post | |
182 | /sbin/chkconfig --add ceph | |
183 | %service ceph restart | |
184 | ||
185 | %preun | |
186 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
187 | %service ceph stop |
188 | /sbin/chkconfig --del ceph | |
2a1a6301 JR |
189 | fi |
190 | ||
e5fc70df JB |
191 | %post libs -p /sbin/ldconfig |
192 | %postun libs -p /sbin/ldconfig | |
2a1a6301 JR |
193 | |
194 | %files | |
195 | %defattr(644,root,root,755) | |
196 | %doc README src/sample.ceph.conf src/sample.fetch_config | |
197 | %attr(754,root,root) /etc/rc.d/init.d/ceph | |
198 | %dir %{_sysconfdir}/ceph | |
199 | %attr(755,root,root) %{_bindir}/ceph | |
200 | %attr(755,root,root) %{_bindir}/cephfs | |
201 | %attr(755,root,root) %{_bindir}/ceph-conf | |
202 | %attr(755,root,root) %{_bindir}/ceph-clsinfo | |
60d5543f | 203 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
2a1a6301 JR |
204 | %attr(755,root,root) %{_bindir}/crushtool |
205 | %attr(755,root,root) %{_bindir}/monmaptool | |
206 | %attr(755,root,root) %{_bindir}/osdmaptool | |
207 | %attr(755,root,root) %{_bindir}/ceph-authtool | |
208 | %attr(755,root,root) %{_bindir}/ceph-syn | |
209 | %attr(755,root,root) %{_bindir}/ceph-run | |
210 | %attr(755,root,root) %{_bindir}/ceph-mon | |
211 | %attr(755,root,root) %{_bindir}/ceph-mds | |
212 | %attr(755,root,root) %{_bindir}/ceph-osd | |
213 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer | |
214 | %attr(755,root,root) %{_bindir}/librados-config | |
215 | %attr(755,root,root) %{_bindir}/rados | |
216 | %attr(755,root,root) %{_bindir}/rbd | |
217 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
218 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
219 | %dir %{_libdir}/rados-classes | |
60d5543f | 220 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* |
2a1a6301 JR |
221 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
222 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* | |
60d5543f PS |
223 | %attr(755,root,root) /sbin/ceph-disk-activate |
224 | %attr(755,root,root) /sbin/ceph-disk-prepare | |
2a1a6301 JR |
225 | %attr(755,root,root) /sbin/mkcephfs |
226 | %attr(755,root,root) /sbin/mount.ceph | |
227 | %dir %{_libdir}/ceph | |
228 | %attr(755,root,root) %{_libdir}/ceph/ceph_common.sh | |
229 | %config(noreplace) /etc/logrotate.d/ceph | |
230 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
231 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
232 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
233 | %{_mandir}/man8/ceph.8* | |
234 | %{_mandir}/man8/ceph-authtool.8* | |
235 | %{_mandir}/man8/ceph-clsinfo.8* | |
236 | %{_mandir}/man8/ceph-conf.8* | |
237 | %{_mandir}/man8/ceph-debugpack.8* | |
60d5543f | 238 | %{_mandir}/man8/ceph-dencoder.8* |
2a1a6301 JR |
239 | %{_mandir}/man8/ceph-mds.8* |
240 | %{_mandir}/man8/ceph-mon.8* | |
241 | %{_mandir}/man8/ceph-osd.8* | |
60d5543f | 242 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
243 | %{_mandir}/man8/ceph-run.8* |
244 | %{_mandir}/man8/ceph-syn.8* | |
245 | %{_mandir}/man8/cephfs.8* | |
246 | %{_mandir}/man8/crushtool.8* | |
247 | %{_mandir}/man8/librados-config.8* | |
248 | %{_mandir}/man8/mkcephfs.8* | |
249 | %{_mandir}/man8/monmaptool.8* | |
250 | %{_mandir}/man8/mount.ceph.8* | |
251 | %{_mandir}/man8/osdmaptool.8* | |
252 | %{_mandir}/man8/rados.8* | |
253 | %{_mandir}/man8/radosgw.8* | |
254 | %{_mandir}/man8/radosgw-admin.8* | |
255 | %{_mandir}/man8/rbd.8* | |
60d5543f | 256 | |
2a1a6301 JR |
257 | %dir %{_localstatedir}/lib/ceph |
258 | %dir %{_localstatedir}/lib/ceph/tmp | |
259 | %dir %{_localstatedir}/log/ceph | |
260 | ||
261 | %files libs | |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
265 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
267 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
2a1a6301 | 269 | |
2a1a6301 JR |
270 | %files devel |
271 | %defattr(644,root,root,755) | |
2a1a6301 JR |
272 | %attr(755,root,root) %{_libdir}/libcephfs.so |
273 | %attr(755,root,root) %{_libdir}/librados.so | |
2a1a6301 JR |
274 | %attr(755,root,root) %{_libdir}/librbd.so |
275 | %{_libdir}/libcephfs.la | |
276 | %{_libdir}/librados.la | |
2a1a6301 | 277 | %{_libdir}/librbd.la |
e5fc70df JB |
278 | %{_includedir}/cephfs |
279 | %{_includedir}/rados | |
280 | %{_includedir}/rbd | |
2a1a6301 JR |
281 | |
282 | %files static | |
283 | %defattr(644,root,root,755) | |
284 | %{_libdir}/libcephfs.a | |
285 | %{_libdir}/librados.a | |
2a1a6301 JR |
286 | %{_libdir}/librbd.a |
287 | ||
e5fc70df JB |
288 | %files -n python-ceph |
289 | %defattr(644,root,root,755) | |
290 | %{py_sitescriptdir}/rados.py* | |
291 | %{py_sitescriptdir}/rbd.py* | |
292 | ||
293 | %files fuse | |
294 | %defattr(644,root,root,755) | |
295 | %doc COPYING | |
296 | %attr(755,root,root) %{_bindir}/ceph-fuse | |
297 | %{_mandir}/man8/ceph-fuse.8* | |
298 | ||
2a1a6301 JR |
299 | %files radosgw |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) %{_bindir}/radosgw | |
302 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
303 | %{_sysconfdir}/bash_completion.d/radosgw-admin | |
304 | ||
305 | %files obsync | |
306 | %defattr(644,root,root,755) | |
307 | %attr(755,root,root) %{_bindir}/obsync | |
308 | %attr(755,root,root) %{_bindir}/boto_tool | |
60d5543f | 309 | %{_mandir}/man1/obsync.1* |