python-google-crc32c/python-google-crc32c.spec
Robert Schweikert 628c9ade89 Accepting request 967467 from home:glaubitz:branches:devel:languages:python
- Update to version 1.3.0
  Features
  * add support for Python 3.10 (#116)
- from version 1.2.0
  Features
  * build wheels using CIBuildWheel (#103)
  Documentation
  * update list of supported wheel platforms / architectures (#105)
- from version 1.1.5
  Bug Fixes
  * revert to silent fallback to pure-Python build (#93)
  * fix segfault on MacOS 11 ("Big Sur") for Python < 3.9 (#93)
- from version 1.1.4
  Bug Fixes
  * advise setting 'CRC32C_PURE_PYTHON' after build failure (#84)
  * restore building 'manylinux1' wheels (#87)
  * use correct Python 3.10 specifier (#88)
- from version 1.1.3
  Performance Improvements
  * replace CFFI with a native C extension (#76)

OBS-URL: https://build.opensuse.org/request/show/967467
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-crc32c?expand=0&rev=4
2022-04-07 11:21:57 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-google-crc32c
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname google-crc32c
Name: python-google-crc32c
Version: 1.3.0
Release: 0
Summary: A python wrapper of the C library 'Google CRC32C'
License: Apache-2.0
URL: https://github.com/googleapis/python-crc32c
Source: https://github.com/googleapis/python-crc32c/archive/refs/tags/v%{version}.tar.gz#/python-crc32c-%{version}.tar.gz
BuildRequires: %{python_module cffi >= 1.0.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libcrc32c-devel
BuildRequires: python-rpm-macros
Requires: python-cffi >= 1.0.0
Suggests: python-pytest
# SECTION test requirements
BuildRequires: %{python_module cffi >= 1.0.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
A python wrapper of the C library 'Google CRC32C'
%prep
%autosetup -p1 -n python-crc32c-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitearch}/*
%changelog