2014-07-14 14:54:12 -04:00
|
|
|
%define name confluent_client
|
|
|
|
%define version #VERSION#
|
|
|
|
%define release 1
|
|
|
|
|
|
|
|
Summary: Client libraries and utilities for confluent
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2020-07-16 08:25:15 -04:00
|
|
|
License: Apache2
|
2014-07-14 14:54:12 -04:00
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArch: noarch
|
2022-09-09 12:10:32 -04:00
|
|
|
Vendor: Lenovo
|
|
|
|
Url: http://github.com/lenovo/confluent
|
2015-03-25 13:52:59 -04:00
|
|
|
Obsoletes: confluent_common
|
2014-07-14 14:54:12 -04:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package enables python development and command line access to
|
|
|
|
a confluent server.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{name}-%{version} -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2022-06-17 12:10:44 -04:00
|
|
|
%if "%{dist}" == ".el7"
|
|
|
|
python2 setup.py build
|
2022-01-11 16:02:47 -05:00
|
|
|
%else
|
2022-06-15 15:00:19 -04:00
|
|
|
python3 setup.py build
|
2019-10-04 10:54:20 -04:00
|
|
|
%endif
|
2014-07-14 14:54:12 -04:00
|
|
|
|
|
|
|
%install
|
2022-06-17 12:10:44 -04:00
|
|
|
%if "%{dist}" == ".el7"
|
|
|
|
python2 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --install-scripts=/opt/confluent/bin --install-purelib=/opt/confluent/lib/python
|
2022-01-11 16:02:47 -05:00
|
|
|
%else
|
2022-06-15 15:00:19 -04:00
|
|
|
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --install-scripts=/opt/confluent/bin --install-purelib=/opt/confluent/lib/python
|
2019-10-04 10:54:20 -04:00
|
|
|
%endif
|
2014-11-04 10:41:22 -05:00
|
|
|
|
2014-07-14 14:54:12 -04:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
2022-04-25 17:02:35 -04:00
|
|
|
%license /opt/confluent/share/licenses/confluent_client/LICENSE
|
2022-09-30 11:02:55 -04:00
|
|
|
%license /opt/confluent/share/licenses/confluent_client/COPYRIGHT
|
2014-07-14 14:54:12 -04:00
|
|
|
%defattr(-,root,root)
|
2022-06-15 16:34:57 -04:00
|
|
|
/opt/confluent
|