]>
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 | |
d48774a1 JB |
4 | Version: 2.2.0 |
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 | |
d48774a1 | 10 | # Source0-md5: 02a54449e5ae1c7a7414fb09c2f94aaa |
742cf07e JB |
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) | |
22 | ||
23 | %description | |
24 | librdkafka is the C/C++ client library implementation of the Apache | |
25 | Kafka protocol, containing both Producer and Consumer support. | |
26 | ||
27 | This package contains C library. | |
28 | ||
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. | |
32 | ||
33 | Ten pakiet zawiera bibliotekę C. | |
34 | ||
35 | %package devel | |
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 | |
42 | Requires: lz4-devel | |
43 | Requires: zlib-devel | |
44 | Requires: zstd-devel | |
45 | ||
46 | %description devel | |
47 | Header files for rdkafka library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki rdkafka. | |
51 | ||
52 | %package c++ | |
53 | Summary: Apache Kafka C++ library | |
54 | Summary(pl.UTF-8): Biblioteka C++ do protokołu Apache Kafka | |
55 | Group: Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description c++ | |
59 | librdkafka is the C/C++ client library implementation of the Apache | |
60 | Kafka protocol, containing both Producer and Consumer support. | |
61 | ||
62 | This package contains C++ library. | |
63 | ||
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. | |
67 | ||
68 | Ten pakiet zawiera bibliotekę C++. | |
69 | ||
70 | %package c++-devel | |
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 | |
77 | ||
78 | %description c++-devel | |
79 | Header files for rdkafka library. | |
80 | ||
81 | %description c++-devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe biblioteki rdkafka. | |
83 | ||
84 | %prep | |
85 | %setup -q | |
86 | %patch0 -p1 | |
87 | ||
88 | %build | |
89 | install -d build | |
90 | cd build | |
91 | %cmake .. | |
92 | ||
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} -C build install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | # packaged as %doc | |
102 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/licenses/librdkafka/LICENSES.txt | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %post c++ -p /sbin/ldconfig | |
111 | %postun c++ -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc INTRODUCTION.md LICENSES.txt README.md | |
116 | %attr(755,root,root) %{_libdir}/librdkafka.so.1 | |
117 | ||
118 | %files devel | |
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 | |
126 | ||
127 | %files c++ | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/librdkafka++.so.1 | |
130 | ||
131 | %files c++-devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/librdkafka++.so | |
134 | %{_includedir}/librdkafka/rdkafkacpp.h | |
135 | %{_pkgconfigdir}/rdkafka++.pc |