forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |