1 Summary: Apache Kafka C library
2 Summary(pl.UTF-8): Biblioteka C do protokołu Apache Kafka
8 #Source0Download: https://github.com/edenhill/librdkafka/releases
9 Source0: https://github.com/edenhill/librdkafka/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: c0120dc32acc129bfb4656fe17568da1
11 Patch0: %{name}-pc.patch
12 URL: https://github.com/edenhill/librdkafka
13 BuildRequires: cmake >= 3.2
14 BuildRequires: cyrus-sasl-devel >= 2.1.26
15 BuildRequires: libstdc++-devel
16 BuildRequires: lz4-devel
17 BuildRequires: openssl-devel
18 BuildRequires: pkgconfig
19 BuildRequires: zlib-devel
20 BuildRequires: zstd-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 librdkafka is the C/C++ client library implementation of the Apache
25 Kafka protocol, containing both Producer and Consumer support.
27 This package contains C library.
29 %description -l pl.UTF-8
30 librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
31 Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
33 Ten pakiet zawiera bibliotekę C.
36 Summary: Header files for rdkafka library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: cyrus-sasl-devel >= 2.1.26
41 Requires: openssl-devel
47 Header files for rdkafka library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki rdkafka.
53 Summary: Apache Kafka C++ library
54 Summary(pl.UTF-8): Biblioteka C++ do protokołu Apache Kafka
56 Requires: %{name} = %{version}-%{release}
59 librdkafka is the C/C++ client library implementation of the Apache
60 Kafka protocol, containing both Producer and Consumer support.
62 This package contains C++ library.
64 %description c++ -l pl.UTF-8
65 librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
66 Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
68 Ten pakiet zawiera bibliotekę C++.
71 Summary: Header files for rdkafka library
72 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka
73 Group: Development/Libraries
74 Requires: %{name}-c++ = %{version}-%{release}
75 Requires: %{name}-devel = %{version}-%{release}
76 Requires: libstdc++-devel
78 %description c++-devel
79 Header files for rdkafka library.
81 %description c++-devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki rdkafka.
96 rm -rf $RPM_BUILD_ROOT
98 %{__make} -C build install \
99 DESTDIR=$RPM_BUILD_ROOT
102 %{__rm} $RPM_BUILD_ROOT%{_datadir}/licenses/librdkafka/LICENSES.txt
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
110 %post c++ -p /sbin/ldconfig
111 %postun c++ -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %doc INTRODUCTION.md LICENSES.txt README.md
116 %attr(755,root,root) %{_libdir}/librdkafka.so.1
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/librdkafka.so
121 %dir %{_includedir}/librdkafka
122 %{_includedir}/librdkafka/rdkafka.h
123 %{_includedir}/librdkafka/rdkafka_mock.h
124 %{_pkgconfigdir}/rdkafka.pc
125 %{_libdir}/cmake/RdKafka
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/librdkafka++.so.1
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/librdkafka++.so
134 %{_includedir}/librdkafka/rdkafkacpp.h
135 %{_pkgconfigdir}/rdkafka++.pc