diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6e29d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/librdkafka-0.11.4.tar.gz diff --git a/.librdkafka.metadata b/.librdkafka.metadata new file mode 100644 index 0000000..510f50e --- /dev/null +++ b/.librdkafka.metadata @@ -0,0 +1 @@ +00e5b9c610697a0f32910fd1ef19e9b2c684824e SOURCES/librdkafka-0.11.4.tar.gz diff --git a/SPECS/librdkafka.spec b/SPECS/librdkafka.spec new file mode 100644 index 0000000..c949414 --- /dev/null +++ b/SPECS/librdkafka.spec @@ -0,0 +1,78 @@ +Name: librdkafka +Version: 0.11.4 +Release: 1%{?dist} +Summary: The Apache Kafka C library + +Group: Development/Libraries +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 +BuildRequires: gcc-c++ +BuildRequires: python +BuildRequires: openssl-devel +BuildRequires: cyrus-sasl-devel +BuildRequires: lz4-devel + +%description +Librdkafka is a C/C++ library implementation of the Apache Kafka protocol, +containing both Producer and Consumer support. +It was designed with message delivery reliability and high performance in mind, +current figures exceed 800000 messages/second for the producer and 3 million +messages/second for the consumer. + +%package devel +Summary: The Apache Kafka C library (Development Environment) +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +librdkafka is a C/C++ library implementation of the Apache Kafka protocol, +containing both Producer and Consumer support. +This package contains headers and libraries required to build applications +using librdkafka. + +%prep +%setup -q + +%build +%configure --enable-lz4 \ + --enable-ssl \ + --enable-sasl + +%make_build + +%check +make check + +%install +%make_install +find %{buildroot} -name '*.a' -delete -print + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%{_libdir}/librdkafka.so.* +%{_libdir}/librdkafka++.so.* +%doc README.md CONFIGURATION.md INTRODUCTION.md +%license LICENSE LICENSE.pycrc LICENSE.snappy +%{_libdir}/pkgconfig/rdkafka.pc +%{_libdir}/pkgconfig/rdkafka++.pc + +%files devel +%dir %{_includedir}/librdkafka +%attr(0644,root,root) %{_includedir}/librdkafka/* +%attr(0755,root,root) %{_libdir}/librdkafka.so +%attr(0755,root,root) %{_libdir}/librdkafka++.so +%{_libdir}/pkgconfig/rdkafka.pc +%{_libdir}/pkgconfig/rdkafka++.pc +%{_libdir}/pkgconfig/rdkafka-static.pc +%{_libdir}/pkgconfig/rdkafka++-static.pc + + + +%changelog +* Mon Aug 28 2017 Jiri Vymazal - 0.11.4-1 +- Package creation