2014-07-14 18:54:12 +00: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 12:25:15 +00:00
|
|
|
License: Apache2
|
2014-07-14 18:54:12 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArch: noarch
|
2022-09-09 16:10:32 +00:00
|
|
|
Vendor: Lenovo
|
|
|
|
Url: http://github.com/lenovo/confluent
|
2015-03-25 17:52:59 +00:00
|
|
|
Obsoletes: confluent_common
|
2014-07-14 18:54:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package enables python development and command line access to
|
|
|
|
a confluent server.
|
|
|
|
|
|
|
|
%prep
|
2024-09-04 14:11:47 +00:00
|
|
|
%setup -n %{name}-%{lua: print(string.gsub("#VERSION#", "[~+]", "-"))}
|
2014-07-14 18:54:12 +00:00
|
|
|
|
|
|
|
%build
|
2022-06-17 16:10:44 +00:00
|
|
|
%if "%{dist}" == ".el7"
|
|
|
|
python2 setup.py build
|
2022-01-11 21:02:47 +00:00
|
|
|
%else
|
2022-06-15 19:00:19 +00:00
|
|
|
python3 setup.py build
|
2019-10-04 14:54:20 +00:00
|
|
|
%endif
|
2014-07-14 18:54:12 +00:00
|
|
|
|
|
|
|
%install
|
2022-06-17 16:10:44 +00: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 21:02:47 +00:00
|
|
|
%else
|
2022-06-15 19:00:19 +00: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 14:54:20 +00:00
|
|
|
%endif
|
2014-11-04 15:41:22 +00:00
|
|
|
|
2014-07-14 18:54:12 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
2022-04-25 21:02:35 +00:00
|
|
|
%license /opt/confluent/share/licenses/confluent_client/LICENSE
|
2022-09-30 15:02:55 +00:00
|
|
|
%license /opt/confluent/share/licenses/confluent_client/COPYRIGHT
|
2014-07-14 18:54:12 +00:00
|
|
|
%defattr(-,root,root)
|
2022-06-15 20:34:57 +00:00
|
|
|
/opt/confluent
|