## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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 # tests are enabled by default %bcond_without tests # The main source is the python wrapper. %global srcname google-crc32c %global reponame python-crc32c %global forgeurl https://github.com/googleapis/%{reponame} Version: 1.1.2 %forgemeta -a Name: python-%{srcname} Release: %autorelease Summary: Python wrapper for CRC32C hashing algorithm License: Apache-2.0 URL: %forgeurl0 Source0: %forgesource BuildRequires: gcc-c++ BuildRequires: google-crc32c BuildRequires: google-crc32c-devel BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) %endif %global _description %{expand: This package wraps the google/crc32c hardware-based implementation of the CRC32C hashing algorithm. Multiple wheels are distributed as well as source. If a wheel is not published for the python version and platform you are using, you will need to compile crc32c using a C toolchain.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{srcname} %{_description} %pyproject_extras_subpkg -n python3-%{srcname} testing %prep %forgesetup %generate_buildrequires %pyproject_buildrequires -r %build PIP_VERBOSE=1 %pyproject_wheel %install %pyproject_install %pyproject_save_files google_crc32c %if %{with tests} %check %pytest tests/test___init__.py %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md %changelog * Wed Feb 22 2023 Major Hayden - 1.1.2-7 - Set SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 1.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.2-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 09 2021 Major Hayden - 1.1.2-2 - Move to rpmautospec * Mon Aug 23 2021 Major Hayden - 1.1.2-1 - Initial import (#1983176)