kcat 1.7.0

This commit is contained in:
bvn13 2022-04-14 17:01:51 +03:00
commit 0fa8556456
6 changed files with 105 additions and 0 deletions

3
.tito/packages/.readme Normal file
View File

@ -0,0 +1,3 @@
the .tito/packages directory contains metadata files
named after their packages. Each file has the latest tagged
version and the project's relative directory.

5
.tito/tito.props Normal file
View File

@ -0,0 +1,5 @@
[buildconfig]
builder = tito.builder.Builder
tagger = tito.tagger.VersionTagger
changelog_do_not_remove_cherrypick = 0
changelog_format = %s (%ae)

53
README.md Normal file
View File

@ -0,0 +1,53 @@
[![Copr build status](https://copr.fedorainfracloud.org/coprs/bvn13/kafkacat/package/kafkacat/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/bvn13/kafkacat/package/kafkacat/)
# kafkacat
This is a Fedora package repository of [kafkacat](https://github.com/edenhill/kafkacat) utility
# dependencies
1. librdkafka
```
# dnf install librdkafka
```
2. fedora build system
```
# dnf install fedora-packager fedora-review
# usermod -a -G mock <your-user-name>
```
... and perform a relogin to update user groups
# how to run
1. clone this repo
```
git clone https://github.com/bvn13/kafkacat.git
```
2. download dependencies
```
spectool -g kafkacat.spec
```
3. build fedora package
```
fedpkg --release f34 local
```
4. install built rpm
```
# rpm -i x86_64/kafkacat-1.7.0-1.x86_64.rpm
```
## or...
you may run `./build.sh` script to build rpm (steps 1-5)

4
build-f34.sh Executable file
View File

@ -0,0 +1,4 @@
#/bin/bash
spectool -g kafkacat.spec
fedpkg --release f34 local

4
build-f35.sh Executable file
View File

@ -0,0 +1,4 @@
#/bin/bash
spectool -g kcat.spec
fedpkg --release f35 local

36
kcat.spec Normal file
View File

@ -0,0 +1,36 @@
Name: kcat
Version: 1.7.0
Release: 1%{?dist}
Summary: kcat 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/kcat
Source0: %{version}.zip
Source: https://github.com/edenhill/kcat/archive/refs/tags/1.7.0.zip
BuildRequires: zlib-devel
BuildRequires: gcc >= 4.1
BuildRequires: librdkafka-devel
%description
kcat is a generic non-JVM producer and consumer for Apache Kafka
%prep
%autosetup
%configure
%build
%make_build
%install
%make_install
%files
%{_bindir}/kcat
%doc README.md
%license LICENSE
%changelog CHANGELOG.md