Skip to content

Commit

Permalink
librdkafka: New package
Browse files Browse the repository at this point in the history
Change-Id: Id211815ac40e4507dacd83928840d813a47faaec
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/9220
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: Anish Swaminathan <[email protected]>
  • Loading branch information
jaankit authored and suezzelur committed Mar 20, 2020
1 parent b24ae14 commit 135ef66
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions SPECS/librdkafka/librdkafka.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Summary: C library implementation of the Apache Kafka protocol
Name: librdkafka
Version: 1.3.0
Release: 1%{?dist}
License: BSD
URL: https://github.com/edenhill/librdkafka
Group: System Environment/Development
Vendor: VMware, Inc.
Distribution: Photon
Source0: %{name}-%{version}.tar.gz
%define sha1 %{name}=20c4ddb2437fc875ba92777a3906fb3a375d7e7f

%description
librdkafka is a C library implementation of the Apache Kafka protocol, providing Producer, Consumer and Admin clients.

%package devel
Summary: Header and development files
Requires: %{name} = %{version}-%{release}
%description devel
It contains the libraries and header files

%prep
%setup -q -n %{name}-%{version}

%build
%configure

make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
find %{buildroot}%{_libdir} -name '*.a' -delete

%check
make %{?_smp_mflags} check

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md CONFIGURATION.md LICENSE
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/librdkafka
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon Mar 09 2020 Ankit Jain <[email protected]> 1.3.0-1
- Initial build. First version

0 comments on commit 135ef66

Please sign in to comment.