]>
Commit | Line | Data |
---|---|---|
742cf07e JB |
1 | Summary: Apache Kafka C library |
2 | Summary(pl.UTF-8): Biblioteka C do protokołu Apache Kafka | |
3 | Name: librdkafka | |
83e6de1c | 4 | Version: 2.4.0 |
d48774a1 | 5 | Release: 1 |
742cf07e JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/edenhill/librdkafka/releases | |
9 | Source0: https://github.com/edenhill/librdkafka/archive/v%{version}/%{name}-%{version}.tar.gz | |
83e6de1c | 10 | # Source0-md5: 60a275ced5c23308e16347c0a3b941f0 |
742cf07e JB |
11 | Patch0: %{name}-pc.patch |
12 | URL: https://github.com/edenhill/librdkafka | |
13 | BuildRequires: cmake >= 3.2 | |
83e6de1c | 14 | BuildRequires: curl-devel |
742cf07e JB |
15 | BuildRequires: cyrus-sasl-devel >= 2.1.26 |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: lz4-devel | |
18 | BuildRequires: openssl-devel | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: zlib-devel | |
21 | BuildRequires: zstd-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | librdkafka is the C/C++ client library implementation of the Apache | |
26 | Kafka protocol, containing both Producer and Consumer support. | |
27 | ||
28 | This package contains C library. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache | |
32 | Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta. | |
33 | ||
34 | Ten pakiet zawiera bibliotekę C. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for rdkafka library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
83e6de1c | 41 | Requires: curl-devel |
742cf07e JB |
42 | Requires: cyrus-sasl-devel >= 2.1.26 |
43 | Requires: openssl-devel | |
44 | Requires: lz4-devel | |
45 | Requires: zlib-devel | |
46 | Requires: zstd-devel | |
47 | ||
48 | %description devel | |
49 | Header files for rdkafka library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki rdkafka. | |
53 | ||
54 | %package c++ | |
55 | Summary: Apache Kafka C++ library | |
56 | Summary(pl.UTF-8): Biblioteka C++ do protokołu Apache Kafka | |
57 | Group: Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | ||
60 | %description c++ | |
61 | librdkafka is the C/C++ client library implementation of the Apache | |
62 | Kafka protocol, containing both Producer and Consumer support. | |
63 | ||
64 | This package contains C++ library. | |
65 | ||
66 | %description c++ -l pl.UTF-8 | |
67 | librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache | |
68 | Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta. | |
69 | ||
70 | Ten pakiet zawiera bibliotekę C++. | |
71 | ||
72 | %package c++-devel | |
73 | Summary: Header files for rdkafka library | |
74 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-c++ = %{version}-%{release} | |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | Requires: libstdc++-devel | |
79 | ||
80 | %description c++-devel | |
81 | Header files for rdkafka library. | |
82 | ||
83 | %description c++-devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe biblioteki rdkafka. | |
85 | ||
86 | %prep | |
87 | %setup -q | |
88 | %patch0 -p1 | |
89 | ||
90 | %build | |
91 | install -d build | |
92 | cd build | |
93 | %cmake .. | |
94 | ||
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} -C build install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | # packaged as %doc | |
104 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/licenses/librdkafka/LICENSES.txt | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %post c++ -p /sbin/ldconfig | |
113 | %postun c++ -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc INTRODUCTION.md LICENSES.txt README.md | |
118 | %attr(755,root,root) %{_libdir}/librdkafka.so.1 | |
119 | ||
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{_libdir}/librdkafka.so | |
123 | %dir %{_includedir}/librdkafka | |
124 | %{_includedir}/librdkafka/rdkafka.h | |
125 | %{_includedir}/librdkafka/rdkafka_mock.h | |
126 | %{_pkgconfigdir}/rdkafka.pc | |
127 | %{_libdir}/cmake/RdKafka | |
128 | ||
129 | %files c++ | |
130 | %defattr(644,root,root,755) | |
131 | %attr(755,root,root) %{_libdir}/librdkafka++.so.1 | |
132 | ||
133 | %files c++-devel | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/librdkafka++.so | |
136 | %{_includedir}/librdkafka/rdkafkacpp.h | |
137 | %{_pkgconfigdir}/rdkafka++.pc |