]>
Commit | Line | Data |
---|---|---|
2a1a6301 JR |
1 | Summary: User space components of the Ceph file system |
2 | Name: ceph | |
041b9abb | 3 | Version: 0.51 |
72daa1da | 4 | Release: 1 |
2a1a6301 JR |
5 | License: LGPLv2 |
6 | Group: Base | |
7 | Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2 | |
041b9abb | 8 | # Source0-md5: e4d07eccd79c9a4a9eeee4066f2a13a3 |
2a1a6301 JR |
9 | Patch0: %{name}-init-fix.patch |
10 | Patch1: %{name}.logrotate.patch | |
041b9abb | 11 | Patch2: %{name}-link.patch |
2a1a6301 JR |
12 | URL: http://ceph.newdream.net/ |
13 | BuildRequires: boost-devel | |
14 | BuildRequires: cryptopp-devel | |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: expat-devel | |
17 | BuildRequires: fcgi-devel | |
18 | BuildRequires: gdbm-devel | |
19 | BuildRequires: google-perftools-devel | |
20 | BuildRequires: gtk+2-devel | |
21 | BuildRequires: gtkmm-devel | |
22 | BuildRequires: keyutils-devel | |
23 | BuildRequires: libatomic_ops | |
24 | BuildRequires: libedit-devel | |
25 | BuildRequires: libfuse-devel | |
26 | BuildRequires: libltdl-devel | |
27 | BuildRequires: libstdc++-devel | |
28 | BuildRequires: libtcmalloc-devel | |
29 | BuildRequires: libtool | |
30 | BuildRequires: libuuid-devel | |
31 | BuildRequires: perl | |
32 | BuildRequires: pkgconfig | |
33 | BuildRequires: rpmbuild(macros) >= 1.228 | |
34 | Requires(post,preun): /sbin/chkconfig | |
35 | Requires(preun): rc-scripts | |
36 | Requires: %{name}-libs = %{version}-%{release} | |
60d5543f | 37 | Obsoletes: gcephtool |
2a1a6301 JR |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %define skip_post_check_so libcls_.*.so.* | |
41 | ||
42 | %description | |
43 | Ceph is a distributed network file system designed to provide | |
44 | excellent performance, reliability, and scalability. | |
45 | ||
46 | %package libs | |
47 | Summary: Ceph shared libraries | |
48 | Group: Libraries | |
49 | ||
50 | %description libs | |
51 | Ceph shared libraries. | |
52 | ||
53 | %package -n python-ceph | |
54 | Summary: Ceph python bindings | |
55 | Group: Development/Languages/Python | |
56 | Requires: %{name}-libs = %{version}-%{release} | |
57 | ||
58 | %description -n python-ceph | |
59 | Ceph python bindings. | |
60 | ||
61 | %package fuse | |
62 | Summary: Ceph fuse-based client | |
63 | Group: Base | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description fuse | |
67 | FUSE based client for Ceph distributed network file system | |
68 | ||
69 | %package devel | |
70 | Summary: Ceph headers | |
71 | License: LGPLv2 | |
72 | Group: Development/Libraries | |
73 | Requires: %{name}-libs = %{version}-%{release} | |
74 | ||
75 | %description devel | |
76 | This package contains the headers needed to develop programs that use | |
77 | Ceph. | |
78 | ||
79 | %package static | |
80 | Summary: Ceph static libraries | |
81 | License: LGPLv2 | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | This package contains static Ceph libraries. | |
87 | ||
88 | %package radosgw | |
89 | Summary: rados REST gateway | |
90 | Group: Development/Libraries | |
91 | #Requires: apache-mod_fcgid | |
92 | ||
93 | %description radosgw | |
94 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
95 | implemented as a FastCGI module using libfcgi, and can be used in | |
96 | conjunction with any FastCGI capable web server. | |
97 | ||
98 | %package obsync | |
99 | Summary: synchronize data between cloud object storage providers or a local directory | |
100 | License: LGPLv2 | |
101 | Group: Applications/Networking | |
102 | Requires: python | |
103 | Requires: python-boto | |
104 | ||
105 | %description obsync | |
106 | obsync is a tool to synchronize objects between cloud object storage | |
107 | providers, such as Amazon S3 (or compatible services), a Ceph RADOS | |
108 | cluster, or a local directory. | |
109 | ||
2a1a6301 JR |
110 | %prep |
111 | %setup -q | |
112 | %patch0 -p1 | |
113 | %patch1 -p0 | |
114 | %patch2 -p1 | |
2a1a6301 JR |
115 | |
116 | %build | |
117 | %{__libtoolize} | |
118 | %{__aclocal} | |
119 | %{__autoconf} | |
120 | %{__autoheader} | |
121 | %{__automake} | |
122 | %configure \ | |
123 | --sbindir=/sbin \ | |
124 | --without-hadoop \ | |
125 | --with-radosgw \ | |
126 | --with-gtk2 | |
127 | ||
128 | %{__make} V=1 | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \ | |
133 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d} | |
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
138 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
139 | ||
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la} | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post | |
146 | /sbin/chkconfig --add ceph | |
147 | %service ceph restart | |
148 | ||
149 | %preun | |
150 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
151 | %service ceph stop |
152 | /sbin/chkconfig --del ceph | |
2a1a6301 JR |
153 | fi |
154 | ||
155 | %post libs -p /sbin/ldconfig | |
156 | %postun libs -p /sbin/ldconfig | |
157 | ||
158 | %files | |
159 | %defattr(644,root,root,755) | |
160 | %doc README src/sample.ceph.conf src/sample.fetch_config | |
161 | %attr(754,root,root) /etc/rc.d/init.d/ceph | |
162 | %dir %{_sysconfdir}/ceph | |
163 | %attr(755,root,root) %{_bindir}/ceph | |
164 | %attr(755,root,root) %{_bindir}/cephfs | |
165 | %attr(755,root,root) %{_bindir}/ceph-conf | |
166 | %attr(755,root,root) %{_bindir}/ceph-clsinfo | |
60d5543f | 167 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
2a1a6301 JR |
168 | %attr(755,root,root) %{_bindir}/crushtool |
169 | %attr(755,root,root) %{_bindir}/monmaptool | |
170 | %attr(755,root,root) %{_bindir}/osdmaptool | |
171 | %attr(755,root,root) %{_bindir}/ceph-authtool | |
172 | %attr(755,root,root) %{_bindir}/ceph-syn | |
173 | %attr(755,root,root) %{_bindir}/ceph-run | |
174 | %attr(755,root,root) %{_bindir}/ceph-mon | |
175 | %attr(755,root,root) %{_bindir}/ceph-mds | |
176 | %attr(755,root,root) %{_bindir}/ceph-osd | |
177 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer | |
178 | %attr(755,root,root) %{_bindir}/librados-config | |
179 | %attr(755,root,root) %{_bindir}/rados | |
180 | %attr(755,root,root) %{_bindir}/rbd | |
181 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
182 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
183 | %dir %{_libdir}/rados-classes | |
60d5543f | 184 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* |
2a1a6301 JR |
185 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
186 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* | |
60d5543f PS |
187 | %attr(755,root,root) /sbin/ceph-disk-activate |
188 | %attr(755,root,root) /sbin/ceph-disk-prepare | |
2a1a6301 JR |
189 | %attr(755,root,root) /sbin/mkcephfs |
190 | %attr(755,root,root) /sbin/mount.ceph | |
191 | %dir %{_libdir}/ceph | |
192 | %attr(755,root,root) %{_libdir}/ceph/ceph_common.sh | |
193 | %config(noreplace) /etc/logrotate.d/ceph | |
194 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
195 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
196 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
197 | %{_mandir}/man8/ceph.8* | |
198 | %{_mandir}/man8/ceph-authtool.8* | |
199 | %{_mandir}/man8/ceph-clsinfo.8* | |
200 | %{_mandir}/man8/ceph-conf.8* | |
201 | %{_mandir}/man8/ceph-debugpack.8* | |
60d5543f | 202 | %{_mandir}/man8/ceph-dencoder.8* |
2a1a6301 JR |
203 | %{_mandir}/man8/ceph-mds.8* |
204 | %{_mandir}/man8/ceph-mon.8* | |
205 | %{_mandir}/man8/ceph-osd.8* | |
60d5543f | 206 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
207 | %{_mandir}/man8/ceph-run.8* |
208 | %{_mandir}/man8/ceph-syn.8* | |
209 | %{_mandir}/man8/cephfs.8* | |
210 | %{_mandir}/man8/crushtool.8* | |
211 | %{_mandir}/man8/librados-config.8* | |
212 | %{_mandir}/man8/mkcephfs.8* | |
213 | %{_mandir}/man8/monmaptool.8* | |
214 | %{_mandir}/man8/mount.ceph.8* | |
215 | %{_mandir}/man8/osdmaptool.8* | |
216 | %{_mandir}/man8/rados.8* | |
217 | %{_mandir}/man8/radosgw.8* | |
218 | %{_mandir}/man8/radosgw-admin.8* | |
219 | %{_mandir}/man8/rbd.8* | |
60d5543f | 220 | |
2a1a6301 JR |
221 | %dir %{_localstatedir}/lib/ceph |
222 | %dir %{_localstatedir}/lib/ceph/tmp | |
223 | %dir %{_localstatedir}/log/ceph | |
224 | ||
225 | %files libs | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
229 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* | |
230 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
231 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* | |
232 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
2a1a6301 JR |
233 | |
234 | %files -n python-ceph | |
235 | %defattr(644,root,root,755) | |
236 | %{py_sitescriptdir}/rados.py* | |
2a1a6301 JR |
237 | %{py_sitescriptdir}/rbd.py* |
238 | ||
239 | %files fuse | |
240 | %defattr(644,root,root,755) | |
241 | %doc COPYING | |
242 | %attr(755,root,root) %{_bindir}/ceph-fuse | |
243 | %{_mandir}/man8/ceph-fuse.8* | |
244 | ||
245 | %files devel | |
246 | %defattr(644,root,root,755) | |
247 | %{_includedir}/cephfs | |
2a1a6301 JR |
248 | %{_includedir}/rados |
249 | %{_includedir}/rbd | |
250 | %attr(755,root,root) %{_libdir}/libcephfs.so | |
251 | %attr(755,root,root) %{_libdir}/librados.so | |
2a1a6301 JR |
252 | %attr(755,root,root) %{_libdir}/librbd.so |
253 | %{_libdir}/libcephfs.la | |
254 | %{_libdir}/librados.la | |
2a1a6301 JR |
255 | %{_libdir}/librbd.la |
256 | ||
257 | %files static | |
258 | %defattr(644,root,root,755) | |
259 | %{_libdir}/libcephfs.a | |
260 | %{_libdir}/librados.a | |
2a1a6301 JR |
261 | %{_libdir}/librbd.a |
262 | ||
2a1a6301 JR |
263 | %files radosgw |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_bindir}/radosgw | |
266 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
267 | %{_sysconfdir}/bash_completion.d/radosgw-admin | |
268 | ||
269 | %files obsync | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_bindir}/obsync | |
272 | %attr(755,root,root) %{_bindir}/boto_tool | |
60d5543f | 273 | %{_mandir}/man1/obsync.1* |