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