%global pypi_name confluent-kafka Name: python-%{pypi_name} Version: 1.6.1 Release: 1%{?dist} Summary: Confluent's Apache Kafka client for Python License: ASL 2.0 URL: https://github.com/confluentinc/confluent-kafka-python Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz %description confluent-kafka-python is Confluent's Python client for Apache Kafka and the Confluent Platform. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: gcc BuildRequires: librdkafka-devel BuildRequires: python3-devel # Unit tests are present in the upstream repo, but not in the PyPi distribution # https://github.com/confluentinc/confluent-kafka-python/issues/508 #BuildRequires: python3dist(pytest) BuildRequires: python3-setuptools Requires: python3-fastavro Requires: python3-requests Requires: librdkafka >= 1.6.1 %description -n python3-%{pypi_name} confluent-kafka-python is Confluent's Python client for Apache Kafka and the Confluent Platform. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install # Remove license file installed in weird place rm -f %{buildroot}/%{_prefix}/LICENSE.txt %check # Unit tests are present in the upstream repo, but not in the PyPi distribution # So just import test %py3_check_import confluent_kafka #py.test-3 -v --ignore=tests/integration ./tests/ %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.md %{python3_sitearch}/confluent_kafka %{python3_sitearch}/confluent_kafka-%{version}-py%{python3_version}.egg-info %changelog * Wed Sep 21 2022 Javier Peña - 1.6.1-1 - Updated to version 1.6.1 - Removed Python 2 subpackage * Fri Jul 22 2022 Fedora Release Engineering - 0.11.6-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.11.6-15 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.11.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.11.6-13 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.11.6-12 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.11.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.11.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.11.6-9 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.11.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.11.6-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.11.6-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.11.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.11.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 24 2019 Javier Peña - 0.11.16-3 - Fix python2-futures requirement - Fix python2-enum34 for CentOS 7 * Fri Jan 11 2019 Javier Peña - 0.11.16-2 - Fixed ambiguous shebangs - Corrected description lines to avoid rpmlint errors * Wed Dec 12 2018 Javier Peña - 0.11.6-1 - Initial package.