master
bvn13 2021-07-14 16:26:24 +03:00
parent 81b03850b0
commit 977336e0e2
1 changed files with 10 additions and 18 deletions

View File

@ -3,14 +3,13 @@ Version: 1.7.0
Release: 1%(?dist) 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. Summary: kafkacat is a generic non-JVM producer and consumer for Apache Kafka 0.8, think of it as a netcat for Kafka.
Group: Productivity/Networking/Other
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/edenhill/kafkacat URL: https://github.com/edenhill/kafkacat
Source: kafkacat-%{version}.tar Source: kafkacat-%{version}.tar
Requires: librdkafka
BuildRequires: zlib-devel gcc >= 4.1 librdkafka-devel BuildRequires: zlib-devel
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gcc >= 4.1
BuildRequires: librdkafka-devel
%description %description
kafkacat is a generic non-JVM producer and consumer for Apache Kafka >= 0.8, kafkacat is a generic non-JVM producer and consumer for Apache Kafka >= 0.8,
@ -29,26 +28,19 @@ of the Kafka cluster and its topics and partitions.
kafkacat is fast and lightweight; statically linked it is no more than 150Kb. kafkacat is fast and lightweight; statically linked it is no more than 150Kb.
%prep %prep
%setup -q %autosetup
%configure %configure
#./configure
./configure --prefix=/usr
%build %build
make %make_build
%install %install
rm -rf %{buildroot} %make_install
DESTDIR=%{buildroot} make install
%clean %files
rm -rf %{buildroot}
%files -n %{name}
%defattr(755,root,root)
%{_bindir}/kafkacat %{_bindir}/kafkacat
%defattr(644,root,root)
%doc README.md
%doc LICENSE
%doc README.md
%license LICENSE
%changelog CHANGELOG.md