Commit 241485db authored by Geoff Simmons's avatar Geoff Simmons

inital commit

parents
Name: librdkafka
Version: %{_version}
Release: 1%{?dist}
Summary: The Apache Kafka C library
Group: Development/Libraries
License: BSD
URL: https://github.com/edenhill/librdkafka
Source0: https://github.com/edenhill/librdkafka/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: python3
BuildRequires: openssl-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: lz4-devel
%description
Librdkafka is a C/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 messages/second for the producer and 3 million
messages/second for the consumer.
%package devel
Summary: The Apache Kafka C library (Development Environment)
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains headers and libraries required to build applications
using librdkafka.
%prep
%setup -q
%build
%configure --enable-lz4 \
--enable-ssl \
--enable-sasl
%make_build
%check
make check
%install
%make_install
find %{buildroot} -name '*.a' -delete -print
rm -rf %{buildroot}/usr/share/doc/librdkafka
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/librdkafka.so*
%{_libdir}/librdkafka++.so*
%doc README.md CONFIGURATION.md INTRODUCTION.md STATISTICS.md
%license LICENSE LICENSES.txt
%files devel
%dir %{_includedir}/librdkafka
%attr(0644,root,root) %{_includedir}/librdkafka/*
%attr(0755,root,root) %{_libdir}/librdkafka.so.*
%attr(0755,root,root) %{_libdir}/librdkafka++.so.*
%{_libdir}/pkgconfig/rdkafka.pc
%{_libdir}/pkgconfig/rdkafka++.pc
%{_libdir}/pkgconfig/rdkafka-static.pc
%{_libdir}/pkgconfig/rdkafka++-static.pc
%changelog
* Tue Sep 08 2020 Geoff Simmons <geoff@uplex.de> - %{version}-%{release}
- Set version from the rpmbuild command line.
- Compatible with upstream 1.5.0
* Mon Sep 17 2018 Michal Luscon <mluscon@gmail.com> - 0.11.5-1
- Update to upstream 0.11.5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Apr 20 2018 Michal Luscon <mluscon@gmail.com> - 0.11.4-1
- Update to upstream 0.11.4
* Tue Jan 09 2018 Michal Luscon <mluscon@gmail.com> - 0.11.3-1
- Update to upstream 0.11.3
* Thu Nov 02 2017 Michal Luscon <mluscon@gmail.com> - 0.11.1-1
- Update to upstream 0.11.1
* Thu Aug 31 2017 Michal Luscon <mluscon@gmail.com> - 0.11.0-1
- Update to 0.11.0
* Mon May 22 2017 Radovan Sroka <rsroka@redhat.com> - 0.9.5-1
- Update to 0.9.4
* Sat Mar 11 2017 Michal Luscon <mluscon@gmail.com> - 0.9.4-1
- Update to 0.9.4
- enable lz4, ssl, sasl
* Sat Mar 11 2017 Michal Luscon <mluscon@gmail.com> 0.9.2-1
- epel package import
#! /bin/bash -ex
# Build script for a librdkafka el7 RPM
# to be run in the rpmbuild/centos7 docker container.
# Env variables VERSION and RELEASE MUST be set in the docker invocation.
# DIST is set by the rpmbuild/centos7 container.
# The directory mounted to /srv MUST contain these files:
# - this script (named pkg)
# - RPM spec file (librdkafka.spec)
# Sample docker invocation:
# $ docker run -t -v $PWD:/srv -e VERSION=47.1.1 -e RELEASE=815 \
# rpmbuild/centos7 /srv/pkg
# At the end of the run, binary, source and debuginfo RPMs are in the
# directory mounted to /srv.
if [ -z $VERSION ]; then
echo "Env variable VERSION MUST be set"
exit 1
fi
if [ -z $RELEASE ]; then
echo "Env variable RELEASE MUST be set"
exit 1
fi
# delete the peculiar macros from the rpmbuild/centos7 image
rm /home/builder/.rpmmacros
# set up the build environment
cd /home/builder
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
cp /srv/librdkafka.spec rpmbuild/SPECS
sudo yum -y -q upgrade
sudo yum -q makecache -y fast
# build requirements
sudo yum install -y -q wget gcc gcc-c++ python3 openssl-devel cyrus-sasl-devel \
lz4-devel
# fetch the source tarball
wget -O rpmbuild/SOURCES/librdkafka-${VERSION}.tar.gz https://github.com/edenhill/librdkafka/archive/v${VERSION}.tar.gz
# build RPMs
rpmbuild -ba -D "dist .${DIST}" \
-D "_version ${VERSION}" \
-D "_release ${RELEASE}" \
rpmbuild/SPECS/librdkafka.spec
sudo cp rpmbuild/RPMS/*/* /srv
sudo cp rpmbuild/SRPMS/* /srv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment