## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global sname aiokafka %global owner aio-libs # crc32c does not support big-endian arch: # https://github.com/aio-libs/aiokafka/blob/bb15ecfb4c85026b2bded912ab7ba7c7e1db3271/aiokafka/record/_crecords/crc32c.c#L101 %bcond c_extensions %["%{_arch}" != "s390x"] %{!?with_c_extensions:%global debug_package %{nil}} Name: python-%{sname} Version: 0.10.0 Release: %autorelease Summary: Asyncio client for Kafka License: ASL 2.0 Source0: https://github.com/%{owner}/%{sname}/archive/v%{version}/%{sname}-%{version}.tar.gz URL: https://github.com/%{owner}/%{sname} BuildRequires: python3-devel BuildRequires: gcc BuildRequires: python3dist(docker) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) BuildRequires: python3dist(pytest-mock) BuildRequires: snappy-devel BuildRequires: zlib-devel %description %{summary} %package -n python3-%{sname} Summary: %{summary} %description -n python3-%{sname} %{summary} %prep %autosetup -p1 -n %{sname}-%{version} # According to pyproject.toml, Cython is too old on Fedora 38, however it builds fine %if 0%{?fedora} == 38 sed -i 's/Cython >=.*"\]/Cython"\]/' pyproject.toml %endif %if %{without c_extensions} sed -i "s/ ext_modules/# ext_modules/" setup.py %endif %generate_buildrequires %pyproject_buildrequires -x snappy,lz4,zstd,gssapi,all %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{sname} %check # The flag 'no:warnings' was added since the 'distutils' is now deprecated in Python 3.10 and 3.11, to be removed in Python 3.12 %{!?with_c_extensions:AIOKAFKA_NO_EXTENSIONS=1} %pytest --import-mode append -p no:warnings ${tests_dir} %files -n python3-%{sname} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog ## START: Generated by rpmautospec * Mon Feb 26 2024 Roman Inflianskas - 0.10.0-5 - Fix Cython version unpinning * Mon Feb 19 2024 Roman Inflianskas - 0.10.0-4 - Disable building extensions on s390x * Mon Feb 19 2024 Roman Inflianskas - 0.10.0-3 - Enable all extras and tests * Thu Feb 15 2024 Roman Inflianskas - 0.10.0-2 - Cleanup dependencies * Thu Feb 15 2024 Roman Inflianskas - 0.10.0-1 - Update to 0.10.0 (fedora#2250920) * Thu Feb 15 2024 Roman Inflianskas - 0.8.1-7 - Use autorelease macro -* Fri Jan 26 2024 Fedora Release Engineering - 0.8.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 0.8.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jul 21 2023 Fedora Release Engineering - 0.8.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Thu Jul 13 2023 Roman Inflianskas - 0.8.1-2 -- Rebuilt for Python 3.12 (fedora#2220104) - -* Thu Jun 29 2023 Roman Inflianskas - 0.8.1-1 -- Update to 0.8.1 (resolve rhbz#2211696) - -* Fri Jan 20 2023 Fedora Release Engineering - 0.8.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Tue Jan 10 2023 Italo Garcia - 0.8.0-1 -- Update to version 0.8.0 - -* Tue Jul 12 2022 Italo Garcia - 0.7.2-1 -- Initial package ## END: Generated by rpmautospec