kafkacat-fedora/kafkacat.spec

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-07-14 13:48:18 +03:00
Name: kafkacat
Version: 1.7.0
Release: 1%(?dist)
Summary: kafkacat is a generic non-JVM producer and consumer for Apache Kafka 0.8, think of it as a netcat for Kafka.
License: BSD-2-Clause
URL: https://github.com/edenhill/kafkacat
Source: kafkacat-%{version}.tar
2021-07-14 16:26:24 +03:00
BuildRequires: zlib-devel
BuildRequires: gcc >= 4.1
BuildRequires: librdkafka-devel
2021-07-14 13:48:18 +03:00
%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
2021-07-14 16:26:24 +03:00
%autosetup
2021-07-14 13:48:18 +03:00
%configure
%build
2021-07-14 16:26:24 +03:00
%make_build
2021-07-14 13:48:18 +03:00
%install
2021-07-14 16:26:24 +03:00
%make_install
2021-07-14 13:48:18 +03:00
2021-07-14 16:26:24 +03:00
%files
2021-07-14 13:48:18 +03:00
%{_bindir}/kafkacat
2021-07-14 16:26:24 +03:00
%doc README.md
%license LICENSE
%changelog CHANGELOG.md