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/releases
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} \
77 -DBUILD_TOOLS_DOCS=ON \
78 -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
79 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}
84 rm -rf $RPM_BUILD_ROOT
86 %{__make} -C build install \
87 DESTDIR=$RPM_BUILD_ROOT
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc AUTHORS CONTRIBUTING.md LICENSE-MIT README.md THANKS TODO
98 %attr(755,root,root) %{_libdir}/librabbitmq.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/librabbitmq.so.4
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/librabbitmq.so
104 %{_includedir}/amqp.h
105 %{_includedir}/amqp_framing.h
106 %{_includedir}/amqp_ssl_socket.h
107 %{_includedir}/amqp_tcp_socket.h
108 %{_pkgconfigdir}/librabbitmq.pc
110 %if %{with static_libs}
112 %defattr(644,root,root,755)
113 %{_libdir}/librabbitmq.a
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/amqp-consume
119 %attr(755,root,root) %{_bindir}/amqp-declare-queue
120 %attr(755,root,root) %{_bindir}/amqp-delete-queue
121 %attr(755,root,root) %{_bindir}/amqp-get
122 %attr(755,root,root) %{_bindir}/amqp-publish
123 %{_mandir}/man1/amqp-consume.1*
124 %{_mandir}/man1/amqp-declare-queue.1*
125 %{_mandir}/man1/amqp-delete-queue.1*
126 %{_mandir}/man1/amqp-get.1*
127 %{_mandir}/man1/amqp-publish.1*
128 %{_mandir}/man7/librabbitmq-tools.7*