3 %bcond_without static_libs # don't build static libraries
5 Summary: RabbitMQ C AMQP client library
6 Summary(pl.UTF-8): Biblioteka kliencka C RabbitMQ AMQP
12 #Source0Download: https://github.com/alanxz/rabbitmq-c
13 Source0: https://github.com/alanxz/rabbitmq-c/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 6f09f0cb07cea221657a768bd9c7dff7
15 URL: https://github.com/alanxz/rabbitmq-c
16 BuildRequires: cmake >= 2.8.12
17 BuildRequires: openssl-devel >= 0.9.8
18 BuildRequires: popt-devel
19 BuildRequires: pkgconfig >= 1:0.17
21 Requires: openssl >= 0.9.8
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This is a C-language AMQP client library for use with AMQP servers
26 speaking protocol versions 0-9-1.
28 %description -l pl.UTF-8
29 Ten pakiet zawiera bibliotekę kliencką AMQP dla języka C, przeznaczoną
30 do użycia z serwerami AMQP obsługującymi protokół w wersjach 0-9-1.
33 Summary: Header files for rabbitmq-c library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rabbitmq-c
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: openssl-devel >= 0.9.8
40 Header files for rabbitmq-c library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki rabbitmq-c.
46 Summary: Static rabbitmq-c library
47 Summary(pl.UTF-8): Statyczna biblioteka rabbitmq-c
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static rabbitmq-c library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka rabbitmq-c.
58 Summary: Example tools utilizing the rabbitmq-c library
59 Summary(pl.UTF-8): Przykładowe narzędzia wykorzystujące bibliotekę rabbitmq-c
61 Requires: %{name} = %{version}-%{release}
64 Example tools utilizing the rabbitmq-c library.
66 %description tools -l pl.UTF-8
67 Przykładowe narzędzia wykorzystujące bibliotekę rabbitmq-c.
76 %{!?with_static_libs:-DBUILD_STATIC_LIBS=OFF} \
82 rm -rf $RPM_BUILD_ROOT
84 %{__make} -C build install \
85 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS CONTRIBUTING.md LICENSE-MIT README.md THANKS TODO
96 %attr(755,root,root) %{_libdir}/librabbitmq.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/librabbitmq.so.4
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/librabbitmq.so
102 %{_includedir}/amqp.h
103 %{_includedir}/amqp_framing.h
104 %{_includedir}/amqp_ssl_socket.h
105 %{_includedir}/amqp_tcp_socket.h
106 %{_pkgconfigdir}/librabbitmq.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)
111 %{_libdir}/librabbitmq.a
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/amqp-consume
117 %attr(755,root,root) %{_bindir}/amqp-declare-queue
118 %attr(755,root,root) %{_bindir}/amqp-delete-queue
119 %attr(755,root,root) %{_bindir}/amqp-get
120 %attr(755,root,root) %{_bindir}/amqp-publish
121 %{_mandir}/man1/amqp-consume.1*
122 %{_mandir}/man1/amqp-declare-queue.1*
123 %{_mandir}/man1/amqp-delete-queue.1*
124 %{_mandir}/man1/amqp-get.1*
125 %{_mandir}/man1/amqp-publish.1*
126 %{_mandir}/man7/librabbitmq-tools.7*