]>
Commit | Line | Data |
---|---|---|
591b0ad2 JB |
1 | # $Revision: 1.8 $, $Date: 2011/07/23 06:34:38 $ |
2 | # TODO: | |
3 | # - qpidd user/group | |
4 | # - qpidd init script | |
899c5b1e | 5 | # - look at Fedora spec at: http://rrakus.fedorapeople.org/qpid-cpp.spec |
591b0ad2 JB |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without cman # cman quorum service | |
9 | %bcond_without corosync # CPG clustering | |
10 | %bcond_without rdma # Remote DMA protocol | |
11 | %bcond_without static_libs # static libraries | |
12 | # | |
13 | %include /usr/lib/rpm/macros.perl | |
14 | Summary: C++ implementation of the AMQP protocol | |
15 | Summary(pl.UTF-8): Implementacja protokołu AMQP w C++ | |
16 | Name: qpid-cpp | |
17 | Version: 0.16 | |
18 | Release: 0.1 | |
19 | License: Apache v2.0 | |
20 | Group: Libraries | |
21 | Source0: http://www.us.apache.org/dist/qpid/%{version}/%{name}-%{version}.tar.gz | |
22 | # Source0-md5: 0be857cfc7615763e9296955d33972d5 | |
23 | Patch0: %{name}-boost.patch | |
24 | Patch1: %{name}-link.patch | |
25 | Patch2: %{name}-perl.patch | |
26 | URL: http://qpid.apache.org/ | |
27 | BuildRequires: acl-devel | |
28 | BuildRequires: autoconf >= 2.59 | |
29 | BuildRequires: automake | |
30 | BuildRequires: boost-devel >= 1.33.1 | |
31 | %{?with_cman:BuildRequires: cman-devel} | |
32 | %{?with_corosync:BuildRequires: corosync-devel} | |
33 | BuildRequires: cyrus-sasl-devel >= 2.0 | |
34 | BuildRequires: doxygen | |
35 | BuildRequires: help2man | |
36 | BuildRequires: libstdc++-devel | |
37 | BuildRequires: libtool | |
38 | BuildRequires: libuuid-devel | |
39 | BuildRequires: nspr-devel | |
40 | BuildRequires: nss-devel | |
41 | BuildRequires: perl-devel | |
42 | BuildRequires: pkgconfig | |
43 | BuildRequires: python-devel >= 1:2.7 | |
44 | BuildRequires: rpm-perlprov | |
45 | BuildRequires: rpm-pythonprov | |
46 | BuildRequires: rpmbuild(macros) >= 1.219 | |
47 | BuildRequires: ruby-devel >= 1.8 | |
48 | BuildRequires: swig-python >= 1.3.26 | |
49 | BuildRequires: swig-ruby >= 1.3.26 | |
50 | BuildRequires: xerces-c-devel | |
899c5b1e | 51 | BuildRequires: xqilla-devel |
591b0ad2 JB |
52 | %if %{with rdma} |
53 | BuildRequires: libibverbs-devel | |
54 | BuildRequires: librdmacm-devel | |
55 | %endif | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
59 | Qpid/C++ is a C++ implementation of the AMQP protcol described at | |
60 | <http://amqp.org/>. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Qpid/C++ to implementacja w C++ protokołu AMQP opisanego pod | |
64 | <http://amqp.org/>. | |
65 | ||
66 | %package client | |
67 | Summary: AMQP client modules and configuration | |
68 | Summary(pl.UTF-8): Klient AMQP - moduły i konfiguracja | |
69 | Group: Libraries | |
70 | Requires: %{name}-libs = %{version}-%{release} | |
71 | ||
72 | %description client | |
73 | Qpid/C++ is a C++ implementation of the AMQP protcol described at | |
74 | <http://amqp.org/>. This package contains client modules and | |
75 | configuration. | |
76 | ||
77 | %description client -l pl.UTF-8 | |
78 | Qpid/C++ to implementacja w C++ protokołu AMQP opisanego pod | |
79 | <http://amqp.org/>. Ten pakiet zawiera moduły oraz konfigurację | |
80 | klienta. | |
81 | ||
82 | %package server | |
83 | Summary: AMQP server | |
84 | Summary(pl.UTF-8): Serwer AMQP | |
85 | Group: Daemons | |
86 | Requires: %{name}-libs = %{version}-%{release} | |
87 | ||
88 | %description server | |
89 | Qpid/C++ is a C++ implementation of the AMQP protcol described at | |
90 | <http://amqp.org/>. This package contains the server. | |
91 | ||
92 | %description server -l pl.UTF-8 | |
93 | Qpid/C++ to implementacja w C++ protokołu AMQP opisanego pod | |
94 | <http://amqp.org/>. Ten pakiet zawiera serwer. | |
95 | ||
96 | %package libs | |
97 | Summary: AMQP runtime libraries | |
98 | Summary(pl.UTF-8): Biblioteki uruchomieniowe AMQP | |
99 | Group: Libraries | |
100 | ||
101 | %description libs | |
102 | Qpid/C++ is a C++ implementation of the AMQP protcol described at | |
103 | <http://amqp.org/>. This package contains the runtime libraries. | |
104 | ||
105 | %description libs -l pl.UTF-8 | |
106 | Qpid/C++ to implementacja w C++ protokołu AMQP opisanego pod | |
107 | <http://amqp.org/>. Ten pakiet zawiera biblioteki uruchomieniowe. | |
108 | ||
109 | %package devel | |
110 | Summary: Header files for Qpid/C++ libraries | |
111 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Qpid/C++ | |
112 | Group: Development/Libraries | |
113 | Requires: %{name}-libs = %{version}-%{release} | |
114 | ||
115 | %description devel | |
116 | Header files for Qpid/C++ libraries. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Pliki nagłówkowe bibliotek Qpid/C++. | |
120 | ||
121 | %package static | |
122 | Summary: Static Qpid/C++ libraries | |
123 | Summary(pl.UTF-8): Statyczne biblioteki Qpid/C++ | |
124 | Group: Development/Libraries | |
125 | Requires: %{name}-devel = %{version}-%{release} | |
126 | ||
127 | %description static | |
128 | Static Qpid/C++ libraries. | |
129 | ||
130 | %description static -l pl.UTF-8 | |
131 | Statyczne biblioteki Qpid/C++. | |
132 | ||
133 | %package qmfgen | |
134 | Summary: QMF code generator | |
135 | Summary(pl.UTF-8): Generator kodu QMF | |
136 | Group: Development/Tools | |
137 | Requires: python-modules | |
138 | ||
139 | %description qmfgen | |
140 | QMF code generator. | |
141 | ||
142 | %description qmfgen -l pl.UTF-8 | |
143 | Generator kodu QMF. | |
144 | ||
145 | %package -n perl-%{name} | |
146 | Summary: Perl bindings for Qpid/C++ libraries | |
147 | Summary(pl.UTF-8): Wiązania Perla do bibliotek Qpid/C++ | |
148 | Group: Development/Languges/Perl | |
149 | Requires: %{name}-libs = %{version}-%{release} | |
150 | ||
151 | %description -n perl-%{name} | |
152 | Perl bindings for Qpid/C++ libraries. | |
153 | ||
154 | %description -n perl-%{name} -l pl.UTF-8 | |
155 | Wiązania Perla do bibliotek Qpid/C++. | |
156 | ||
157 | %package -n python-%{name} | |
158 | Summary: Python bindings for Qpid/C++ libraries | |
159 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Qpid/C++ | |
160 | Group: Libraries/Python | |
161 | Requires: %{name}-libs = %{version}-%{release} | |
162 | Requires: python-modules | |
163 | ||
164 | %description -n python-%{name} | |
165 | Python bindings for Qpid/C++ libraries. | |
166 | ||
167 | %description -n python-%{name} -l pl.UTF-8 | |
168 | Wiązania Pythona do bibliotek Qpid/C++. | |
169 | ||
170 | %package -n ruby-%{name} | |
171 | Summary: Ruby bindings for Qpid/C++ libraries | |
172 | Summary(pl.UTF-8): Wiązania języka Ruby do bibliotek Qpid/C++ | |
173 | Group: Development/Languages | |
174 | Requires: %{name}-libs = %{version}-%{release} | |
175 | Requires: python-modules | |
176 | ||
177 | %description -n ruby-%{name} | |
178 | Ruby bindings for Qpid/C++ libraries. | |
179 | ||
180 | %description -n ruby-%{name} -l pl.UTF-8 | |
181 | Wiązania języka Ruby do bibliotek Qpid/C++. | |
182 | ||
183 | %prep | |
184 | %setup -q -n qpidc-%{version} | |
185 | %patch0 -p1 | |
186 | %patch1 -p1 | |
187 | %patch2 -p1 | |
188 | ||
189 | %build | |
190 | %{__libtoolize} | |
191 | %{__aclocal} -I m4 | |
192 | %{__autoconf} | |
193 | %{__autoheader} | |
194 | %{__automake} | |
195 | %configure \ | |
196 | %{?with_static_libs:--enable-static} \ | |
197 | --with-cpg%{!?with_corosync:=no} \ | |
198 | --with-cman%{!?with_cman:=no} \ | |
199 | --with-rdma%{!?with_rdma:=no} \ | |
200 | %{__make} | |
201 | ||
202 | %install | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
205 | %{__make} install \ | |
206 | DESTDIR=$RPM_BUILD_ROOT | |
207 | ||
208 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la \ | |
209 | $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.la \ | |
210 | $RPM_BUILD_ROOT%{_libdir}/qpid/{client,daemon}/*.la | |
211 | %if %{with static_libs} | |
212 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/qpid/{client,daemon}/*.a | |
213 | %endif | |
214 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/qpid/tests | |
215 | ||
216 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
217 | mv $RPM_BUILD_ROOT%{_datadir}/qpidc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
218 | ||
219 | %py_postclean | |
220 | ||
221 | %clean | |
222 | rm -rf $RPM_BUILD_ROOT | |
223 | ||
224 | %post libs -p /sbin/ldconfig | |
225 | %postun libs -p /sbin/ldconfig | |
226 | ||
227 | %files client | |
228 | %defattr(644,root,root,755) | |
229 | %dir %{_sysconfdir}/qpid | |
230 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qpid/qpidc.conf | |
231 | %dir %{_libdir}/qpid/client | |
232 | %attr(755,root,root) %{_libdir}/qpid/client/rdmaconnector.so | |
233 | %attr(755,root,root) %{_libdir}/qpid/client/sslconnector.so | |
234 | ||
235 | %files server | |
236 | %defattr(644,root,root,755) | |
237 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qpidd.conf | |
238 | %config(noreplace) %verify(not md5 mtime size) /etc/sasl2/qpidd.conf | |
239 | %attr(755,root,root) %{_sbindir}/qpidd | |
240 | %attr(755,root,root) %{_libdir}/qpid/qpidd_watchdog | |
241 | %dir %{_libdir}/qpid/daemon | |
242 | %attr(755,root,root) %{_libdir}/qpid/daemon/acl.so | |
243 | %attr(755,root,root) %{_libdir}/qpid/daemon/cluster.so | |
244 | %attr(755,root,root) %{_libdir}/qpid/daemon/ha.so | |
245 | %attr(755,root,root) %{_libdir}/qpid/daemon/rdma.so | |
246 | %attr(755,root,root) %{_libdir}/qpid/daemon/replicating_listener.so | |
247 | %attr(755,root,root) %{_libdir}/qpid/daemon/replication_exchange.so | |
248 | %attr(755,root,root) %{_libdir}/qpid/daemon/ssl.so | |
249 | %attr(755,root,root) %{_libdir}/qpid/daemon/watchdog.so | |
899c5b1e | 250 | %attr(755,root,root) %{_libdir}/qpid/daemon/xml.so |
591b0ad2 JB |
251 | %{_mandir}/man1/qpidd.1* |
252 | %attr(755,qpidd,qpidd) %dir /var/lib/qpidd | |
253 | ||
254 | %files libs | |
255 | %defattr(644,root,root,755) | |
256 | %doc NOTICE README.txt RELEASE_NOTES SSL | |
257 | %attr(755,root,root) %{_libdir}/libqmf.so.*.*.* | |
258 | %attr(755,root,root) %ghost %{_libdir}/libqmf.so.1 | |
259 | %attr(755,root,root) %{_libdir}/libqmf2.so.*.*.* | |
260 | %attr(755,root,root) %ghost %{_libdir}/libqmf2.so.1 | |
261 | %attr(755,root,root) %{_libdir}/libqmfconsole.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/libqmfconsole.so.2 | |
263 | %attr(755,root,root) %{_libdir}/libqmfengine.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libqmfengine.so.1 | |
265 | %attr(755,root,root) %{_libdir}/libqpidbroker.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libqpidbroker.so.2 | |
267 | %attr(755,root,root) %{_libdir}/libqpidclient.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libqpidclient.so.2 | |
269 | %attr(755,root,root) %{_libdir}/libqpidcommon.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libqpidcommon.so.2 | |
271 | %attr(755,root,root) %{_libdir}/libqpidmessaging.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libqpidmessaging.so.2 | |
273 | %attr(755,root,root) %{_libdir}/libqpidtypes.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libqpidtypes.so.1 | |
275 | %attr(755,root,root) %{_libdir}/librdmawrap.so.*.*.* | |
276 | %attr(755,root,root) %ghost %{_libdir}/librdmawrap.so.2 | |
277 | %attr(755,root,root) %{_libdir}/libsslcommon.so.*.*.* | |
278 | %attr(755,root,root) %ghost %{_libdir}/libsslcommon.so.2 | |
279 | %dir %{_libdir}/qpid | |
280 | ||
281 | %files devel | |
282 | %defattr(644,root,root,755) | |
283 | %doc DESIGN | |
284 | %attr(755,root,root) %{_libdir}/libqmf.so | |
285 | %attr(755,root,root) %{_libdir}/libqmf2.so | |
286 | %attr(755,root,root) %{_libdir}/libqmfconsole.so | |
287 | %attr(755,root,root) %{_libdir}/libqmfengine.so | |
288 | %attr(755,root,root) %{_libdir}/libqpidbroker.so | |
289 | %attr(755,root,root) %{_libdir}/libqpidclient.so | |
290 | %attr(755,root,root) %{_libdir}/libqpidcommon.so | |
291 | %attr(755,root,root) %{_libdir}/libqpidmessaging.so | |
292 | %attr(755,root,root) %{_libdir}/libqpidtypes.so | |
293 | %attr(755,root,root) %{_libdir}/librdmawrap.so | |
294 | %attr(755,root,root) %{_libdir}/libsslcommon.so | |
295 | %{_libdir}/libqmf.la | |
296 | %{_libdir}/libqmf2.la | |
297 | %{_libdir}/libqmfconsole.la | |
298 | %{_libdir}/libqmfengine.la | |
299 | %{_libdir}/libqpidbroker.la | |
300 | %{_libdir}/libqpidclient.la | |
301 | %{_libdir}/libqpidcommon.la | |
302 | %{_libdir}/libqpidmessaging.la | |
303 | %{_libdir}/libqpidtypes.la | |
304 | %{_libdir}/librdmawrap.la | |
305 | %{_libdir}/libsslcommon.la | |
306 | %{_includedir}/qmf | |
307 | %{_includedir}/qpid | |
308 | %{_pkgconfigdir}/qmf2.pc | |
309 | %{_pkgconfigdir}/qpid.pc | |
310 | %{_examplesdir}/%{name}-%{version} | |
311 | ||
312 | %files static | |
313 | %defattr(644,root,root,755) | |
314 | %{_libdir}/libqmf.a | |
315 | %{_libdir}/libqmf2.a | |
316 | %{_libdir}/libqmfconsole.a | |
317 | %{_libdir}/libqmfengine.a | |
318 | %{_libdir}/libqpidbroker.a | |
319 | %{_libdir}/libqpidclient.a | |
320 | %{_libdir}/libqpidcommon.a | |
321 | %{_libdir}/libqpidmessaging.a | |
322 | %{_libdir}/libqpidtypes.a | |
323 | %{_libdir}/librdmawrap.a | |
324 | %{_libdir}/libsslcommon.a | |
325 | ||
326 | %files qmfgen | |
327 | %defattr(644,root,root,755) | |
328 | %attr(755,root,root) %{_bindir}/qmf-gen | |
329 | %dir %{py_sitescriptdir}/qmfgen | |
330 | %{py_sitescriptdir}/qmfgen/*.py[co] | |
331 | %{py_sitescriptdir}/qmfgen/management-types.xml | |
332 | %{py_sitescriptdir}/qmfgen/templates | |
333 | ||
334 | %files -n perl-%{name} | |
335 | %defattr(644,root,root,755) | |
336 | %{perl_vendorarch}/cqpid_perl.pm | |
337 | %dir %{perl_vendorarch}/auto/cqpid_perl | |
338 | %{perl_vendorarch}/auto/cqpid_perl/cqpid_perl.bs | |
339 | %attr(755,root,root) %{perl_vendorarch}/auto/cqpid_perl/cqpid_perl.so | |
340 | ||
341 | %files -n python-%{name} | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{py_sitedir}/_cqmf2.so | |
344 | %attr(755,root,root) %{py_sitedir}/_cqpid.so | |
345 | %attr(755,root,root) %{py_sitedir}/_qmfengine.so | |
346 | %{py_sitescriptdir}/cqmf2.py[co] | |
347 | %{py_sitescriptdir}/cqpid.py[co] | |
348 | %{py_sitescriptdir}/qmf.py[co] | |
349 | %{py_sitescriptdir}/qmf2.py[co] | |
350 | %{py_sitescriptdir}/qmfengine.py[co] | |
351 | ||
352 | %files -n ruby-%{name} | |
353 | %defattr(644,root,root,755) | |
354 | %attr(755,root,root) %{ruby_sitearchdir}/cqmf2.so | |
355 | %attr(755,root,root) %{ruby_sitearchdir}/cqpid.so | |
356 | %attr(755,root,root) %{ruby_sitearchdir}/qmfengine.so | |
357 | %{ruby_sitelibdir}/qmf.rb | |
358 | %{ruby_sitelibdir}/qmf2.rb |