diff --git a/librdkafka-0.11.4.tar.gz b/librdkafka-0.11.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3db4d76791d223cbd8f62f71e2544d087e768bdb Binary files /dev/null and b/librdkafka-0.11.4.tar.gz differ diff --git a/librdkafka.spec b/librdkafka.spec new file mode 100644 index 0000000000000000000000000000000000000000..dfbd2e20adcf24c02677e0096b35d8bc84566b64 --- /dev/null +++ b/librdkafka.spec @@ -0,0 +1,59 @@ +Name: librdkafka +Version: 0.11.4 +Release: 3 +Summary: C library implementation of the Apache Kafka protocol +License: BSD +URL: https://github.com/edenhill/librdkafka +Source0: https://github.com/edenhill/librdkafka/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: gcc-c++ python2 openssl-devel cyrus-sasl-devel lz4-devel + +%description +ibrdkafka is a C library implementation of the Apache Kafka protocol, providing Producer, Consumer +and Admin clients. It was designed with message delivery reliability and high performance in mind, +current figures exceed 1 million msgs/second for the producer and 3 million msgs/second for the consumer. + +%package devel +Summary: Development files for the Kafka C/C++ library +Requires: %{name} = %{version}-%{release} + +%description devel +librdkafka is a C library implementation of the Apache Kafka protocol,containing both Producer and +Consumer support. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --enable-lz4 --enable-ssl --enable-sasl +%make_build + +%check +make check + +%install +%make_install +%delete_la_and_a + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc README.md CONFIGURATION.md +%license LICENSE LICENSE.snappy LICENSE.pycrc +%{_libdir}/{librdkafka.so.*,librdkafka++.so.*} + +%files devel +%dir %{_includedir}/librdkafka +%attr(0644,root,root) %{_includedir}/librdkafka/* +%attr(0755,root,root) %{_libdir}/{librdkafka.so,librdkafka++.so} +%{_libdir}/pkgconfig/* + +%changelog +* Fri Dec 20 2019 daiqianwen - 0.11.4-3 +- Package init + +