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