Initial commit
This commit is contained in:
54
kafkacat/kafkacat.spec
Normal file
54
kafkacat/kafkacat.spec
Normal file
@@ -0,0 +1,54 @@
|
||||
Name: kafkacat
|
||||
Version: 1.3.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Generic non-JVM producer and consumer for Apache Kafka
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/edenhill/kafkacat
|
||||
Source: %{version}.tar.gz
|
||||
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: librdkafka-devel
|
||||
BuildRequires: yajl-devel
|
||||
|
||||
%description
|
||||
kafkacat is a generic non-JVM producer and consumer for Apache Kafka 0.8,
|
||||
think of it as a netcat for Kafka.
|
||||
|
||||
In producer mode kafkacat reads messages from stdin, delimited with a
|
||||
configurable delimeter (-D, defaults to newline), and produces them to the
|
||||
provided Kafka cluster (-b), topic (-t) and partition (-p).
|
||||
|
||||
In consumer mode kafkacat reads messages from a topic and partition and prints
|
||||
them to stdout using the configured message delimiter.
|
||||
|
||||
kafkacat also features a Metadata list (-L) mode to display the current state
|
||||
of the Kafka cluster and its topics and partitions.
|
||||
|
||||
kafkacat is fast and lightweight; statically linked it is no more than 150Kb.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%configure
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
DESTDIR=%{buildroot} make install
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/kafkacat
|
||||
|
||||
%changelog
|
||||
* Wed Jun 03 2015 Magnus Edenhill <magnus@edenhill.se> 1.2.0-1
|
||||
- Relase 1.2.0
|
||||
|
||||
* Fri Dec 19 2014 François Saint-Jacques <fsaintjacques@gmail.com> 1.1.0-1
|
||||
- Initial RPM package
|
||||
168
kafkacat/librdkafka.spec
Normal file
168
kafkacat/librdkafka.spec
Normal file
@@ -0,0 +1,168 @@
|
||||
# remirepo/fedora spec file for librdkafka
|
||||
#
|
||||
# Copyright (c) 2015-2017 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
%global libname librdkafka
|
||||
%global gh_commit 44242a464c43e09c685f47a7f3dca2963b10e2a9
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner edenhill
|
||||
%global gh_project %{libname}
|
||||
|
||||
%global upstream_version 0.11.5
|
||||
#global upstream_prever RC1
|
||||
|
||||
Name: %{libname}
|
||||
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
|
||||
Release: 1%{?dist}
|
||||
Group: System Environment/Libraries
|
||||
Summary: Apache Kafka C/C++ client library
|
||||
|
||||
# librdkafka is BSD-2, pycrc is MIT, snappy/crc32 are BSD-3
|
||||
License: BSD and MIT
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tar.gz
|
||||
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: cyrus-sasl-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: lz4-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python
|
||||
|
||||
|
||||
%description
|
||||
librdkafka is a 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 msgs/second for the producer
|
||||
and 3 million msgs/second for the consumer.
|
||||
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qn %{gh_project}-%{gh_commit}
|
||||
# no backup to avoid old version inclusion
|
||||
|
||||
mkdir rpmdocs
|
||||
cp -pr examples rpmdocs/examples
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--enable-lz4 \
|
||||
--enable-ssl \
|
||||
--enable-sasl
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
rm %{buildroot}%{_libdir}/*.a
|
||||
rm %{buildroot}%{_libdir}/pkgconfig/*static.pc
|
||||
|
||||
|
||||
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE*
|
||||
%{_libdir}/%{libname}.so.1
|
||||
%{_libdir}/%{libname}++.so.1
|
||||
|
||||
%files devel
|
||||
%doc *md
|
||||
%doc rpmdocs/examples
|
||||
%{_includedir}/%{libname}/
|
||||
%{_libdir}/%{libname}.so
|
||||
%{_libdir}/%{libname}++.so
|
||||
%{_libdir}/pkgconfig/rdkafka.pc
|
||||
%{_libdir}/pkgconfig/rdkafka++.pc
|
||||
|
||||
|
||||
### NOTICE: available in EPEL-7 so not in remi
|
||||
|
||||
%changelog
|
||||
* Thu Jul 19 2018 Remi Collet <remi@remirepo.net> - 0.11.5-1
|
||||
- update to 0.11.5
|
||||
|
||||
* Thu Mar 29 2018 Remi Collet <remi@remirepo.net> - 1.11.4-1
|
||||
- update to 1.11.4
|
||||
|
||||
* Wed Dec 6 2017 Remi Collet <remi@remirepo.net> - 0.11.3-1
|
||||
- update to 0.11.3
|
||||
|
||||
* Wed Oct 18 2017 Remi Collet <remi@remirepo.net> - 0.11.1-1
|
||||
- update to 0.11.1
|
||||
|
||||
* Thu Oct 5 2017 Remi Collet <remi@remirepo.net> - 0.11.1~RC1-1
|
||||
- update to 0.11.1-RC1
|
||||
|
||||
* Tue Aug 1 2017 Remi Collet <remi@remirepo.net> - 0.11.0-1
|
||||
- update to 0.11.0
|
||||
|
||||
* Thu Jun 29 2017 Remi Collet <remi@remirepo.net> - 0.11.0~RC2-1
|
||||
- update to 0.11.0-RC2
|
||||
|
||||
* Thu Jun 29 2017 Remi Collet <remi@remirepo.net> - 0.11.0~RC1-1
|
||||
- update to 0.11.0-RC1
|
||||
- open https://github.com/edenhill/librdkafka/issues/1290
|
||||
broken build on 32-bit architecture
|
||||
- add upstream for i686 build
|
||||
|
||||
* Fri Apr 21 2017 Remi Collet <remi@remirepo.net> - 0.9.5-1
|
||||
- update to 0.9.5 (no change since RC2)
|
||||
|
||||
* Wed Apr 12 2017 Remi Collet <remi@remirepo.net> - 0.9.5~RC2-1
|
||||
- update to 0.9.5-RC2
|
||||
|
||||
* Mon Apr 10 2017 Remi Collet <remi@remirepo.net> - 0.9.5~RC1-1
|
||||
- update to 0.9.5-RC1
|
||||
|
||||
* Mon Feb 27 2017 Remi Collet <remi@remirepo.net> - 0.9.4-1
|
||||
- update to 0.9.4
|
||||
|
||||
* Fri Feb 24 2017 Remi Collet <remi@remirepo.net> - 0.9.4-0.3.RC2
|
||||
- update to 0.9.4RC2 for test
|
||||
|
||||
* Fri Feb 17 2017 Remi Collet <remi@remirepo.net> - 0.9.4-0.2.RC1
|
||||
- enable lz4
|
||||
|
||||
* Thu Feb 16 2017 Remi Collet <remi@remirepo.net> - 0.9.4-0.1.RC1
|
||||
- update to 0.9.4RC1 for test
|
||||
|
||||
* Mon Jan 23 2017 Remi Collet <remi@fedoraproject.org> - 0.9.3-1
|
||||
- update to 0.9.3
|
||||
|
||||
* Wed Nov 9 2016 Remi Collet <remi@fedoraproject.org> - 0.9.2-1
|
||||
- update to 0.9.2
|
||||
|
||||
* Sun May 29 2016 Remi Collet <remi@fedoraproject.org> - 0.9.1-1
|
||||
- update to 0.9.1
|
||||
|
||||
* Sat Jan 9 2016 Remi Collet <remi@fedoraproject.org> - 0.9.0-1
|
||||
- update to 0.9.0
|
||||
- add upstream patch for old glibc (RHEL-5)
|
||||
|
||||
* Thu May 14 2015 Remi Collet <remi@fedoraproject.org> - 0.8.6-1
|
||||
- initial package
|
||||
Reference in New Issue
Block a user