2 # - bindings and bconds for them
3 Summary: A high performance, lightweight messaging library
9 Source0: http://www.apache.org/dist/qpid/proton/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 48bfbd7ba5a639760bb28380f4d68208
11 Patch0001: 0001-PROTON-731-Installing-Python-requires-Proton-be-inst.patch
12 URL: http://qpid.apache.org/proton/
13 BuildRequires: cmake >= 2.6
14 BuildRequires: doxygen
16 BuildRequires: libuuid-devel
17 BuildRequires: openssl-devel
18 BuildRequires: pkgconfig
20 BuildRequires: python-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define proton_datadir %{_datadir}/proton-%{version}
27 Proton is a high performance, lightweight messaging library. It can be
28 used in the widest range of messaging applications including brokers,
29 client libraries, routers, bridges, proxies, and more. Proton is based
30 on the AMQP 1.0 messaging standard. Using Proton it is trivial to
31 integrate with the AMQP 1.0 ecosystem from any platform, environment,
35 Summary: C libraries for Qpid Proton
42 Summary: Development libraries for writing messaging apps with Qpid Proton
43 Group: Development/Libraries
44 Requires: qpid-proton-c = %{version}-%{release}
50 Summary: Documentation for the C development libraries for Qpid Proton
52 %if "%{_rpmversion}" >= "5"
56 %description c-devel-doc
59 %package -n python-%{name}
60 Summary: Python language bindings for the Qpid Proton messaging framework
61 Group: Libraries/Python
62 Requires: %{name}-c = %{version}-%{release}
64 %description -n python-%{name}
67 %package -n python-%{name}-doc
68 Summary: Documentation for the Python language bindings for Qpid Proton
70 %if "%{_rpmversion}" >= "5"
74 %description -n python-%{name}-doc
83 -DPROTON_DISABLE_RPATH=true \
84 -DPYTHON_SITEARCH_PACKAGES=%{python_sitearch} \
85 -DBINDING_LANGS="%{?with_perl:PERL} %{?with_php:PHP} %{?with_python:PYTHON} %{?with_ruby:RUBY}" \
91 -DSYSINSTALL_PYTHON=1 \
93 -DCHECK_SYSINSTALL_PYTHON=0 \
99 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
104 chmod +x $RPM_BUILD_ROOT%{py_sitedir}/_cproton.so
107 # clean up files that are not shipped
108 rm -rf $RPM_BUILD_ROOT%{_exec_prefix}/bindings
109 rm -rf $RPM_BUILD_ROOT%{_libdir}/java
110 rm -rf $RPM_BUILD_ROOT%{_libdir}/libproton-jni.so
111 rm -rf $RPM_BUILD_ROOT%{_datarootdir}/java
112 rm -rf $RPM_BUILD_ROOT%{_libdir}/proton.cmake
115 rm -rf $RPM_BUILD_ROOT
117 %post c -p /sbin/ldconfig
118 %postun c -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %dir %{proton_datadir}
123 %doc %{proton_datadir}/LICENSE
124 %doc %{proton_datadir}/README
125 %doc %{proton_datadir}/TODO
126 %attr(755,root,root) %{_libdir}/libqpid-proton.so.*.*.*
127 %ghost %{_libdir}/libqpid-proton.so.2
128 %attr(755,root,root) %{_bindir}/proton
129 %attr(755,root,root) %{_bindir}/proton-dump
130 %{_mandir}/man1/proton-dump.1*
131 %{_mandir}/man1/proton.1*
134 %defattr(644,root,root,755)
135 %{_includedir}/proton
136 %{_libdir}/libqpid-proton.so
137 %{_pkgconfigdir}/libqpid-proton.pc
138 %{_libdir}/cmake/Proton
139 %{_datadir}/proton/examples
142 %defattr(644,root,root,755)
143 %doc %{proton_datadir}/docs/api-c
146 %files -n python-%{name}
147 %defattr(644,root,root,755)
148 %{py_sitedir}/_cproton.so
149 %{py_sitedir}/cproton.*
150 %{py_sitedir}/proton.*
152 %files -n python-%{name}-doc
153 %defattr(644,root,root,755)
154 %doc %{proton_datadir}/docs/api-py