]> git.pld-linux.org Git - packages/librdkafka.git/blame - librdkafka.spec
- updated to 2.2.0
[packages/librdkafka.git] / librdkafka.spec
CommitLineData
742cf07e
JB
1Summary: Apache Kafka C library
2Summary(pl.UTF-8): Biblioteka C do protokołu Apache Kafka
3Name: librdkafka
d48774a1
JB
4Version: 2.2.0
5Release: 1
742cf07e
JB
6License: BSD
7Group: Libraries
8#Source0Download: https://github.com/edenhill/librdkafka/releases
9Source0: https://github.com/edenhill/librdkafka/archive/v%{version}/%{name}-%{version}.tar.gz
d48774a1 10# Source0-md5: 02a54449e5ae1c7a7414fb09c2f94aaa
742cf07e
JB
11Patch0: %{name}-pc.patch
12URL: https://github.com/edenhill/librdkafka
13BuildRequires: cmake >= 3.2
14BuildRequires: cyrus-sasl-devel >= 2.1.26
15BuildRequires: libstdc++-devel
16BuildRequires: lz4-devel
17BuildRequires: openssl-devel
18BuildRequires: pkgconfig
19BuildRequires: zlib-devel
20BuildRequires: zstd-devel
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24librdkafka is the C/C++ client library implementation of the Apache
25Kafka protocol, containing both Producer and Consumer support.
26
27This package contains C library.
28
29%description -l pl.UTF-8
30librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
31Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
32
33Ten pakiet zawiera bibliotekę C.
34
35%package devel
36Summary: Header files for rdkafka library
37Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40Requires: cyrus-sasl-devel >= 2.1.26
41Requires: openssl-devel
42Requires: lz4-devel
43Requires: zlib-devel
44Requires: zstd-devel
45
46%description devel
47Header files for rdkafka library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki rdkafka.
51
52%package c++
53Summary: Apache Kafka C++ library
54Summary(pl.UTF-8): Biblioteka C++ do protokołu Apache Kafka
55Group: Libraries
56Requires: %{name} = %{version}-%{release}
57
58%description c++
59librdkafka is the C/C++ client library implementation of the Apache
60Kafka protocol, containing both Producer and Consumer support.
61
62This package contains C++ library.
63
64%description c++ -l pl.UTF-8
65librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
66Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
67
68Ten pakiet zawiera bibliotekę C++.
69
70%package c++-devel
71Summary: Header files for rdkafka library
72Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rdkafka
73Group: Development/Libraries
74Requires: %{name}-c++ = %{version}-%{release}
75Requires: %{name}-devel = %{version}-%{release}
76Requires: libstdc++-devel
77
78%description c++-devel
79Header files for rdkafka library.
80
81%description c++-devel -l pl.UTF-8
82Pliki nagłówkowe biblioteki rdkafka.
83
84%prep
85%setup -q
86%patch0 -p1
87
88%build
89install -d build
90cd build
91%cmake ..
92
93%{__make}
94
95%install
96rm -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
105rm -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
This page took 0.311706 seconds and 4 git commands to generate.