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
|
2015-03-25 17:52:59 +00:00
|
|
|
Vendor: Jarrod Johnson <jjohnson2@lenovo.com>
|
2014-07-14 18:54:12 +00:00
|
|
|
Url: http://xcat.sf.net/
|
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
|
|
|
|
%setup -n %{name}-%{version} -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-10-04 14:54:20 +00:00
|
|
|
%if "%{dist}" == ".el8"
|
|
|
|
python3 setup.py build
|
|
|
|
%else
|
2022-01-11 21:02:47 +00:00
|
|
|
%if "%{dist}" == ".el9"
|
|
|
|
python3 setup.py build
|
|
|
|
%else
|
2022-06-15 19:00:19 +00:00
|
|
|
python3 setup.py build
|
2019-10-04 14:54:20 +00:00
|
|
|
%endif
|
2022-01-11 21:02:47 +00:00
|
|
|
%endif
|
2014-07-14 18:54:12 +00:00
|
|
|
|
|
|
|
%install
|
2019-10-04 14:54:20 +00:00
|
|
|
%if "%{dist}" == ".el8"
|
|
|
|
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
|
|
|
|
%else
|
2022-01-11 21:02:47 +00:00
|
|
|
%if "%{dist}" == ".el9"
|
|
|
|
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
|
|
|
|
%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
|
2022-01-11 21:02:47 +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
|
2014-07-14 18:54:12 +00:00
|
|
|
%defattr(-,root,root)
|
2022-06-15 20:34:57 +00:00
|
|
|
/opt/confluent
|