commit 0fa85564565225b9c46f55487651e3f80d9c38db Author: bvn13 Date: Thu Apr 14 17:01:51 2022 +0300 kcat 1.7.0 diff --git a/.tito/packages/.readme b/.tito/packages/.readme new file mode 100644 index 0000000..b9411e2 --- /dev/null +++ b/.tito/packages/.readme @@ -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. diff --git a/.tito/tito.props b/.tito/tito.props new file mode 100644 index 0000000..eab3f19 --- /dev/null +++ b/.tito/tito.props @@ -0,0 +1,5 @@ +[buildconfig] +builder = tito.builder.Builder +tagger = tito.tagger.VersionTagger +changelog_do_not_remove_cherrypick = 0 +changelog_format = %s (%ae) diff --git a/README.md b/README.md new file mode 100644 index 0000000..96a6e6e --- /dev/null +++ b/README.md @@ -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 +``` + +... 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) diff --git a/build-f34.sh b/build-f34.sh new file mode 100755 index 0000000..7ae1e67 --- /dev/null +++ b/build-f34.sh @@ -0,0 +1,4 @@ +#/bin/bash + +spectool -g kafkacat.spec +fedpkg --release f34 local diff --git a/build-f35.sh b/build-f35.sh new file mode 100755 index 0000000..69eb81a --- /dev/null +++ b/build-f35.sh @@ -0,0 +1,4 @@ +#/bin/bash + +spectool -g kcat.spec +fedpkg --release f35 local diff --git a/kcat.spec b/kcat.spec new file mode 100644 index 0000000..5f604ca --- /dev/null +++ b/kcat.spec @@ -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